Open scls19fr opened 9 years ago
@scls19fr If don't really know how to immediately solve this problem but I'm happy to implement it if you found a solution! Let me know or create a pull request :)
The particular ImportError that @scls19fr mentioned can be fixed in python3 by using relative paths to modules, like shown here http://stackoverflow.com/questions/14216200/force-importing-module-from-current-directory
However, after fixing that, there are still many other problems in python3, including all of the print statements and SimpleHTTPServer being replaced by http.server. There may be others, but i'm not sure. Have you tried running the 2to3 tool just to see if that works? https://docs.python.org/2/library/2to3.html I'm not sure how you're supposed to maintain backwards compatibility once you convert to python3, though.
six can help to maintain backward compatibility
an other approach is to maintain backward compatibility by yourself in a compat.py
file with try / except.
Anyway six code can help https://github.com/kelp404/six/blob/master/six.py
Hello,
I think
python-highcharts
doesn't support Python 3because same import with Python 2 works fine
I'm using Anaconda Python with Python 3 as default Python install and I can switch to Python 2 using
Inspired from http://continuum.io/blog/anaconda-python-3
Any idea ?