Pydeps not working: NameError: global name 'c' is not defined

Viewed 17

In Short: Pydeps is not working: NameError: global name 'c' is not defined

Details:

There is a test.py file with one line of code:

import pandas as pd

when I enter

pydeps test.py

in the terminal I get as error message:

Traceback (most recent call last):
  File "/opt/conda/envs/main/bin/pydeps", line 10, in <module>
    sys.exit(pydeps())
  File "/opt/conda/envs/main/lib/python2.7/site-packages/pydeps/pydeps.py", line 150, in pydeps
    return _pydeps(inp, **_args)
  File "/opt/conda/envs/main/lib/python2.7/site-packages/pydeps/pydeps.py", line 32, in _pydeps
    dep_graph = py2depgraph.py2dep(trgt, **kw)
  File "/opt/conda/envs/main/lib/python2.7/site-packages/pydeps/py2depgraph.py", line 221, in py2dep
    mf.run_script(dummy.fname)
  File "/opt/conda/envs/main/lib/python2.7/modulefinder.py", line 133, in run_script
    self.load_module('__main__', fp, pathname, stuff)
  File "/opt/conda/envs/main/lib/python2.7/site-packages/pydeps/py2depgraph.py", line 146, in load_module
    self, fqname, fp, pathname, (suffix, mode, kind)
  File "/opt/conda/envs/main/lib/python2.7/site-packages/pydeps/mf27.py", line 82, in load_module
    self.scan_code(co, m)
  File "/opt/conda/envs/main/lib/python2.7/site-packages/pydeps/mf27.py", line 95, in scan_code
    for what, args in scanner(co):
  File "/opt/conda/envs/main/lib/python2.7/modulefinder.py", line 369, in scan_opcodes
    if c in STORE_OPS:
NameError: global name 'c' is not defined

OS: debian-9.5' Python: 2.7

Graphviz installed.

0 Answers
Related