Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will not import #22

Open
JoshuaC3 opened this issue Mar 1, 2016 · 1 comment
Open

Will not import #22

JoshuaC3 opened this issue Mar 1, 2016 · 1 comment

Comments

@JoshuaC3
Copy link

JoshuaC3 commented Mar 1, 2016

This is the full error Traceback

NameError                                 Traceback (most recent call last)
<ipython-input-7-ad38eef5e995> in <module>()
----> 1 import pyhighcharts

C:\Anaconda\envs\py35\lib\site-packages\pyhighcharts\__init__.py in <module>()
     14 
     15 # pyhighcharts Imports
---> 16 from chart import *
     17 from maps import *
     18 from util import JS_TYPE

C:\Anaconda\envs\py35\Lib\site-packages\pyhighcharts\chart.py in <module>()
     20 
     21 # pyhighcharts Imports
---> 22 from util import safe_update, format_script_tag, \
     23     format_options, JS_TYPE
     24 

C:\Anaconda\envs\py35\Lib\site-packages\pyhighcharts\util.py in <module>()
     76 FORMATTERS = {
     77     bool: lambda v: "true" if v else "false",
---> 78     NoneType: lambda _: "null",
     79     datetime: lambda d: "Date.UTC({}, {}, {})".format(d.year, (d.month - 1), d.day),
     80     JS_TYPE: lambda js: js.raw

NameError: name 'NoneType' is not defined

Not sure about this NoneType error.

@crbunney
Copy link
Collaborator

crbunney commented Mar 1, 2016

@fidyeates, typo? Should that just be None instead of NoneType?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants