maposmatic-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Maposmatic-dev] [bug #36253] /apis/papersize/ failure: float() argument


From: David Mentré
Subject: [Maposmatic-dev] [bug #36253] /apis/papersize/ failure: float() argument must be a string or a number
Date: Thu, 19 Apr 2012 13:53:40 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0

URL:
  <http://savannah.nongnu.org/bugs/?36253>

                 Summary: /apis/papersize/ failure: float() argument must be a
string or a number
                 Project: MapOSMatic
            Submitted by: dmentre
            Submitted on: jeu. 19 avril 2012 15:53:39 CEST
                Category: maposmatic
                Severity: 4 - Important
                Priority: 5 - Normal
                  Status: Confirmed
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
         Planned Release: None

    _______________________________________________________

Details:

Sometimes, the /apis/papersize/ handler fails with an exception, like this
one:
"""
Traceback (most recent call last):

 File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 100,
in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File "/home/maposmatic/maposmatic-prod/maposmatic/www/maposmatic/views.py",
line 247, in query_papersize
   lat_bottom_right, lon_bottom_right)

 File "/home/maposmatic/maposmatic-prod/ocitysmap/ocitysmap2/coords.py", line
86, in __init__
   (self._lat1, self._long1) = float(lat1), float(long1)

TypeError: float() argument must be a string or a number


<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {u'lat_bottom_right': [u''], u'layout':
[u'single_page_index_bottom'], u'lat_upper_left': [u''], u'lon_upper_left':
[u''], u'stylesheet': [u'Default'], u'lon_bottom_right': [u'']}>,
COOKIES:{XXXXXXXXXXXXXXXXXXXXX},
META:{'CONTENT_LENGTH': '118',
 'CONTENT_TYPE': 'application/x-www-form-urlencoded; charset=UTF-8',
 'DOCUMENT_ROOT': '/home/maposmatic/public_html/www.maposmatic.org',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': '*/*',
 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
 'HTTP_ACCEPT_LANGUAGE': 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3',
 'HTTP_CACHE_CONTROL': 'no-cache',
 'HTTP_CONNECTION': 'Keep-Alive',
 'HTTP_COOKIE': XXXXXXXXXXXXXXXXXXXXX,
 'HTTP_HOST': 'www.maposmatic.org',
 'HTTP_PRAGMA': 'no-cache',
 'HTTP_REFERER': 'http://www.maposmatic.org/new/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20100101
Firefox/11.0',
 'HTTP_VIA': '1.0 PROXY',
 'HTTP_X_BLUECOAT_VIA': 'CD965CDC93882071',
 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
 'PATH_INFO': u'/apis/papersize/',
 'PATH_TRANSLATED':
'/home/maposmatic/public_html/www.maposmatic.org/maposmatic.wsgi/apis/papersize/',
 'QUERY_STRING': '',
 'REMOTE_ADDR': 'XXXXXXXXXXXXXXXXXXXXX',
 'REMOTE_PORT': 'XXXXXXXXXXXXXXXXXXXXX',
 'REQUEST_METHOD': 'POST',
 'REQUEST_URI': '/apis/papersize/',
 'SCRIPT_FILENAME':
'/home/maposmatic/public_html/www.maposmatic.org/maposmatic.wsgi',
 'SCRIPT_NAME': u'',
 'SERVER_ADDR': '193.19.209.9',
 'SERVER_ADMIN': 'address@hidden',
 'SERVER_NAME': 'www.maposmatic.org',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '<address>Apache/2.2.16 (Debian) Server at
www.maposmatic.org Port 80</address>\n',
 'SERVER_SOFTWARE': 'Apache/2.2.16 (Debian)',
 'mod_wsgi.application_group': 'maposmatic.org|',
 'mod_wsgi.callable_object': 'application',
 'mod_wsgi.handler_script': '',
 'mod_wsgi.input_chunked': '0',
 'mod_wsgi.listener_host': '',
 'mod_wsgi.listener_port': '80',
 'mod_wsgi.process_group': '',
 'mod_wsgi.request_handler': 'wsgi-script',
 'mod_wsgi.script_reloading': '1',
 'mod_wsgi.version': (3, 2),
 'wsgi.errors': <mod_wsgi.Log object at 0x7f0449698ab0>,
 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object
at 0x7f04496aab70>,
 'wsgi.input': <mod_wsgi.Input object at 0x7f0449698470>,
 'wsgi.multiprocess': True,
 'wsgi.multithread': False,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 1)}>
"""





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?36253>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]