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

twistedchecker installation fails with Python3 #58

Closed
ghost opened this issue Apr 16, 2014 · 4 comments
Closed

twistedchecker installation fails with Python3 #58

ghost opened this issue Apr 16, 2014 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 16, 2014

I tried installing with Python3 but got various warnings and errors before it eventually failed.

Given that its a brand new tool with no backwards compatibility requirements, it would be nice if it worked on Python3 as soon as possible.

Here are some of the errors (I've attached the full install log)

  File "/home/richard/.virtualenvs/twistedchecker3/lib/python3.3/site-packages/twistedchecker/core/runner.py", line 304
    except SystemExit, exc:
                     ^
SyntaxError: invalid syntax

  File "/home/richard/.virtualenvs/twistedchecker3/lib/python3.3/site-packages/twistedchecker/functionaltests/maxlinelength.py", line 3
    print "this line is long long  long  long long long long long ends at column 80"
                                                                                   ^
SyntaxError: invalid syntax

  File "/home/richard/.virtualenvs/twistedchecker3/lib/python3.3/site-packages/twistedchecker/functionaltests/py3_exceptions.py", line 18
    except Exception, e:
                    ^
SyntaxError: invalid syntax

  File "/home/richard/.virtualenvs/twistedchecker3/lib/python3.3/site-packages/twistedchecker/functionaltests/trailingspace.py", line 4
    print "this line has trailing space"
                                       ^
SyntaxError: invalid syntax

  File "/home/richard/.virtualenvs/twistedchecker3/lib/python3.3/site-packages/twistedchecker/functionaltests/py3_print_fail.py", line 4
    print "a print statement"
                            ^
SyntaxError: invalid syntax

Imported from Launchpad using lp2gh.

@ghost
Copy link
Author

ghost commented Apr 16, 2014

(by richardw)

@adiroiban
Copy link
Member

I tried porting twistedchecker on Python3.3 but I got stuck since the following twisted depenencies are not yet ported to python 3 ... as of Twisted-14.0.0pre2

  • twisted.python.filepath

Also pylint 0.26.0 is not ported on python 3.3 ... only pylint 1.0 and newer support python 3.3

... one task is to update twistedchecker to use latest pylint #65

My work in progress is here https://github.com/chevah/twistedchecker/tree/58-python-3.3

@glyph
Copy link
Member

glyph commented Jun 29, 2016

See #113

@rodrigc
Copy link
Contributor

rodrigc commented Aug 21, 2017

twistedchecker works with Python 3.4 and Python 3.5

@rodrigc rodrigc closed this as completed Aug 21, 2017
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

3 participants