Export to GitHub

pydbgr - issue #8

Cannot install pydbgr -- no module named "import_relative"


Posted on Sep 14, 2010 by Grumpy Kangaroo

$ sudo python setup.py install Traceback (most recent call last): File "setup.py", line 12, in <module> from pkginfo import \ File "/home/ben/.local/src/pydbgr/pkginfo.py", line 64, in <module> from import_relative import get_srcdir ImportError: No module named import_relative

Not sure what import_relative is, but it seems to be used in a lot of places in this code. Is this a required external package?

Comment #1

Posted on Sep 24, 2010 by Swift Hippo

Sorry for the delayed reply.

"import_relative" is one of the packages pydbgr depends on.

Other packages needed are listed in pkginfo.py :

install_requires = ['columnize >= 0.3.2', 'import_relative >= 0.1.0', 'pyficache >= 0.1.0', # or 0.1.1? 'tracer >= 0.2.2']

which is used in setup() of setup.py

I am not sure why easy_install does not pick these up.

For now just easy_install them.

Comment #2

Posted on Sep 24, 2010 by Swift Hippo

Comment deleted

Comment #3

Posted on Oct 15, 2010 by Swift Hippo

(No comment was entered for this change.)

Comment #4

Posted on Nov 23, 2010 by Quick Bear

Also seeing this with pip install.

Comment #5

Posted on Mar 31, 2011 by Happy Dog

http://code.google.com/p/pyimport-relative/

Comment #6

Posted on Apr 26, 2011 by Swift Bird

easy_install doesn't pick it up because pkginfo is never successfully loaded, because it tries to load import_relative. You have a chicken-and-egg problem here. You can't import dependencies from within things that are imported by setup.py.

Status: Invalid

Labels:
Type-Defect Priority-Medium