Skip to content

Will not import #22

@JoshuaC3

Description

@JoshuaC3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions