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

Not working on py3 project #11

Open
ghost opened this issue Feb 20, 2019 · 6 comments
Open

Not working on py3 project #11

ghost opened this issue Feb 20, 2019 · 6 comments

Comments

@ghost
Copy link

ghost commented Feb 20, 2019

suiwenfeng@anonymous:~/project/xxx$ pycycle --here
Parsing of file failed: /home/suiwenfeng/project/xxx/rebuild_img_test.py
Parsing of file failed: /home/suiwenfeng/project/xxx/tests/test_build_util.py
Parsing of file failed: /home/suiwenfeng/project/xxx/jobs/rebuild_all.py
There were errors during the operation, perhaps you are trying to parse python 3 project, with python 2 version of the script? (or vice versa)
Project successfully transformed to AST, checking imports for cycles..
Cycle Found :(

Finished.

@grabear
Copy link

grabear commented Apr 29, 2019

I just got this same error.

@xaqbr
Copy link

xaqbr commented May 15, 2019

Uninstall your current pycycle with pip uninstall pycycle, then try using pip3 install pycycle.

@networkingguru
Copy link

I'm getting the same error. Fraedon's suggestion just results in the same error after installation.

@DomHudson
Copy link

What is the code in those files? What's the smallest amount of code that causes the error?

@ra-coder
Copy link

ra-coder commented May 31, 2020

For me problem was in different python3.* versions

pycycle was for python3.5
and code was for python3.7

I think, good idea to add python version to output
pycycle --version
and
ability to run with proper python via command
python3.7 -m pycycle --here
like it works for -m pip and -m piptools

@HumanBot000
Copy link

python3.7 -m pycycle --here

No module named pycycle.main; 'pycycle' is a package and cannot be directly executed

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

6 participants