Skip to content

Instantly share code, notes, and snippets.

@l34marr
Last active February 14, 2020 02:54
Show Gist options
  • Save l34marr/e276e195b19bab05959301d2ed0a0f46 to your computer and use it in GitHub Desktop.
Save l34marr/e276e195b19bab05959301d2ed0a0f46 to your computer and use it in GitHub Desktop.
Error Message
id name partner_id country_id activity_summary stage_id planned_revenue probability team_id
__export__.crm_lead_2_64f28df9 Data Scientist; Machine Learning Engineer Chang Amin Accessment New 0.0 Sales
2018-12-14T14:28:04 ERROR plone.app.viewletmanager Error while rendering viewlet-manager=plone.belowcontentbody, viewlet=collective.geo.leaflet.leafletbelowcontentviewlet
Traceback (most recent call last):
File "/home/marr/crgis_p511/buildout-cache/eggs/plone.app.viewletmanager-2.0.11-py2.7.egg/plone/app/viewletmanager/manager.py", line 112, in render
html.append(viewlet.render())
File "/home/marr/crgis_p511/zinstance/src/collective.geo.leaflet/src/collective/geo/leaflet/browser/viewlets.py", line 36, in render
return super(ContentViewlet, self).render()
File "/home/marr/crgis_p511/buildout-cache/eggs/plone.app.layout-2.7.5-py2.7.egg/plone/app/layout/viewlets/common.py", line 59, in render
return self.index()
File "/home/marr/crgis_p511/buildout-cache/eggs/Zope2-2.13.27-py2.7.egg/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
return self.im_func(im_self, *args, **kw)
File "/home/marr/crgis_p511/buildout-cache/eggs/Zope2-2.13.27-py2.7.egg/Products/Five/browser/pagetemplatefile.py", line 59, in __call__
sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
File "/home/marr/crgis_p511/buildout-cache/eggs/zope.pagetemplate-4.2.1-py2.7.egg/zope/pagetemplate/pagetemplate.py", line 137, in pt_render
strictinsert=0, sourceAnnotations=sourceAnnotations
File "/home/marr/crgis_p511/buildout-cache/eggs/five.pt-2.2.5-py2.7.egg/five/pt/engine.py", line 98, in __call__
return self.template.render(**kwargs)
File "/home/marr/crgis_p511/buildout-cache/eggs/z3c.pt-3.0.0a1-py2.7.egg/z3c/pt/pagetemplate.py", line 163, in render
return base_renderer(**context)
File "/home/marr/crgis_p511/buildout-cache/eggs/Chameleon-2.25-py2.7.egg/chameleon/zpt/template.py", line 261, in render
return super(PageTemplate, self).render(**vars)
File "/home/marr/crgis_p511/buildout-cache/eggs/Chameleon-2.25-py2.7.egg/chameleon/template.py", line 191, in render
raise_with_traceback(exc, tb)
File "/home/marr/crgis_p511/buildout-cache/eggs/Chameleon-2.25-py2.7.egg/chameleon/template.py", line 171, in render
self._render(stream, econtext, rcontext)
File "51bd67082b069adff52d20d3d13d943b.py", line 124, in render
File "8a9e97cd69c2b366b7392f76776e04e7.py", line 136, in render_map_div
File "/home/marr/crgis_p511/buildout-cache/eggs/five.pt-2.2.5-py2.7.egg/five/pt/expressions.py", line 154, in __call__
base = self.traverse(base, request, path_items)
File "/home/marr/crgis_p511/buildout-cache/eggs/five.pt-2.2.5-py2.7.egg/five/pt/expressions.py", line 126, in traverse
base, name, path_items[i:], request=request
File "/home/marr/crgis_p511/buildout-cache/eggs/zope.traversing-4.1.0-py2.7.egg/zope/traversing/adapters.py", line 142, in traversePathElement
return traversable.traverse(nm, further_path)
File "/home/marr/crgis_p511/buildout-cache/eggs/zope.traversing-4.1.0-py2.7.egg/zope/traversing/adapters.py", line 42, in traverse
attr = getattr(subject, name, _marker)
File "/home/marr/crgis_p511/zinstance/src/collective.geo.leaflet/src/collective/geo/leaflet/geomap.py", line 77, in json_coordinates
return json.dumps(self.coordinates)
File "/usr/lib/python2.7/json/__init__.py", line 244, in dumps
return _default_encoder.encode(obj)
File "/usr/lib/python2.7/json/encoder.py", line 207, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python2.7/json/encoder.py", line 270, in iterencode
return _iterencode(o, 0)
File "/usr/lib/python2.7/json/encoder.py", line 184, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: Decimal('121.736848') is not JSON serializable
- Expression: "geomap/json_coordinates"
- Filename: ... leaflet/browser/templates/collectivegeoleaflet_macros.pt
- Location: (line 21: col 43)
- Source: map_coordinates geomap/json_coordinates;
^^^^^^^^^^^^^^^^^^^^^^^
- Arguments: repeat: {...} (0)
template: <ViewPageTemplateFile - at 0x7f0da55bef10>
views: <ViewMapper - at 0x7f0da2ad3750>
modules: <instance - at 0x7f0dafd5bb90>
args: <tuple - at 0x7f0db7ec3050>
here: <ImplicitAcquisitionWrapper 1704022-SXG at 0x7f0da694faf0>
user: <ImplicitAcquisitionWrapper - at 0x7f0da6f5e5a0>
nothing: <NoneType - at 0x8f5320>
container: <ImplicitAcquisitionWrapper 1704022-SXG at 0x7f0da694faf0>
request: <instance - at 0x7f0da2ccda28>
wrapped_repeat: <SafeMapping - at 0x7f0da3a5ec00>
traverse_subpath: <list - at 0x7f0da326eb48>
default: <object - at 0x7f0db7de1540>
loop: {...} (0)
context: <ImplicitAcquisitionWrapper 1704022-SXG at 0x7f0da694faf0>
view: <ContentViewlet collective.geo.leaflet.leafletbelowcontentviewlet at 0x7f0da3029b90>
translate: <function translate at 0x7f0da2ae32a8>
root: <ImplicitAcquisitionWrapper Zope at 0x7f0da5cb1640>
options: {...} (0)
target_language: <NoneType - at 0x8f5320>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment