Issue
My system environment: Windows 8.1, WinPython 3.4.3.1, pandas 0.16, plotly 1.6.14, cufflinks 0.2
I have no idea what's causing the issue. I'm attempting to use the tutorial outlined here cufflinks nbviewer tutorial
However when I try to import the cufflinks module I get the following output.
That doesn't make sense to me because as far as I can tell the files are all set up correctly within the folder and I don't see any obvious errors within the files themselves. See below image:
I also looked at the __init__.py
file and didn't see anything unusual.
And lastly I looked at the actual plotlytools.py
file to see if anything looked odd and nothing jumped out at me.
Any help figuring this one out would be greatly appreciated. Thanks.
UPDATE: If this helps here is a print out of my sys.path
Solution
I was able to import the module after implementing the following workarounds:
- In the
utils.py
file I added()
to all theprint
statements, example:print 'string'
becameprint('string')
. - I copied then deleted the
utils.py
andcolors.py
files and pasted the contents into theplotlytools.py
file. - I updated all the import references in the remaining files.
- to use the pandastools functionality, specifically the
df.iplot
method, it was also necessary to update the encoding and decoding methods for thecolors.py
file fromstr.encode('hex') and str.decode('hex')
toimport codecs; codecs.encode(str,'hex'); codecs.decode(str,'hex')
- I also updated the generator methods from
gen_object.next()
tonext(gen_object)
At this point all the functionality of the module seems to be restored.
Answered By - BCR
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.