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

Code bug? #29

Closed
dodoflyy opened this issue May 31, 2018 · 2 comments
Closed

Code bug? #29

dodoflyy opened this issue May 31, 2018 · 2 comments

Comments

@dodoflyy
Copy link

hello,
I installed and tried to import demjson, but a python Error raised:

Traceback (most recent call last):
File "", line 1, in
File "/ifs1/Reotech/user/pengguoyu/software/demjson-2.2.4/demjson.py", line 645
class json_int( (1L).class ): # Have to specify base this way to satisfy 2to3
-----------------^
SyntaxError: invalid syntax

I don't know why this syntax error. My python version is:
Python 3.6.5

@dmeranda
Copy link
Owner

How did you install demjson? The original source file is meant to be run under Python 2.x. To use it under Python 3.x, it needs to be transformed using the 2to3 conversion program. This is normally done by the setup.py if you install it using a standard Python packager. If not you can easily run 2to3 yourself.

By the way I'm using demjson 2.2.4 under Python 3.6.5 just fine.

@dmeranda
Copy link
Owner

dmeranda commented Jun 2, 2018

Assuming poster solved the problem, if not open a new issue

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

No branches or pull requests

2 participants