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

Doesn't work with Python3 plus broken/missing deps #3

Open
barseghyanartur opened this issue Jan 15, 2020 · 0 comments
Open

Doesn't work with Python3 plus broken/missing deps #3

barseghyanartur opened this issue Jan 15, 2020 · 0 comments

Comments

@barseghyanartur
Copy link

OS: Fedora 31
Used Python version: 3.7

After fixing a couple of obvious Python2 to Python3 transition errors...

Such as this:

Traceback (most recent call last):
  File "/home/me/repos/myproj/venv/bin/sfood", line 5, in <module>
    from snakefood.gendeps import main
  File "/home/me/repos/myproj/venv/lib64/python3.7/site-packages/snakefood/gendeps.py", line 26, in <module>
    from snakefood.depends import output_depends, output_depends_inverted
  File "/home/me/repos/myproj/venv/lib64/python3.7/site-packages/snakefood/depends.py", line 53
    print json.dumps(output_dict)
             ^
SyntaxError: invalid syntax

And this:

Traceback (most recent call last):
  File "/home/me/repos/myproj/venv/bin/sfood", line 5, in <module>
    from snakefood.gendeps import main
  File "/home/me/repos/myproj/venv/lib64/python3.7/site-packages/snakefood/gendeps.py", line 27, in <module>
    from snakefood.find import find_dependencies
  File "/home/me/repos/myproj/venv/lib64/python3.7/site-packages/snakefood/find.py", line 267
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax

I bumped into this:

$ sfood .
Traceback (most recent call last):
  File "/home/me/repos/myproj/venv/bin/sfood", line 5, in <module>
    from snakefood.gendeps import main
  File "/home/me/repos/myproj/venv/lib64/python3.7/site-packages/snakefood/gendeps.py", line 27, in <module>
    from snakefood.find import find_dependencies
  File "/home/me/repos/myproj/venv/lib64/python3.7/site-packages/snakefood/find.py", line 9, in <module>
    import compiler
ModuleNotFoundError: No module named 'compiler'

Then I did pip install comiler (first guess) and re-ran the command:

$ sfood .
Traceback (most recent call last):
  File "/home/me/repos/myproj/venv/bin/sfood", line 5, in <module>
    from snakefood.gendeps import main
  File "/home/me/repos/myproj/venv/lib64/python3.7/site-packages/snakefood/gendeps.py", line 27, in <module>
    from snakefood.find import find_dependencies
  File "/home/me/repos/myproj/venv/lib64/python3.7/site-packages/snakefood/find.py", line 10, in <module>
    from compiler.visitor import ASTVisitor
ModuleNotFoundError: No module named 'compiler.visitor'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant