pycycle icon indicating copy to clipboard operation
pycycle copied to clipboard

Not working on py3 project

Open ghost opened this issue 6 years ago • 6 comments

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.

ghost avatar Feb 20 '19 03:02 ghost

I just got this same error.

grabear avatar Apr 29 '19 23:04 grabear

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

xaqbr avatar May 15 '19 07:05 xaqbr

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

networkingguru avatar Oct 25 '19 19:10 networkingguru

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

DomHudson avatar Apr 02 '20 16:04 DomHudson

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

ra-coder avatar May 31 '20 18:05 ra-coder