kamawanu / googlecode-pydbgr

Automatically exported from code.google.com/p/pydbgr
GNU General Public License v3.0
0 stars 0 forks source link

Error when launching pydbgr (virtualenv installed) #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I've managed to install pydbgr in a virtualenv:

$ virtualenv pydbgr
$ easy_install pydbgr

but when running:

$ pydbgr
Traceback (most recent call last):
  File "/home/galois/.virtualenvs/dbgr/bin/pydbgr", line 8, in <module>
    load_entry_point('pydbgr==0.1.4', 'console_scripts', 'pydbgr')()
  File "/home/galois/.virtualenvs/dbgr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 318, in load_entry_point
    def has_metadata(name):
  File "/home/galois/.virtualenvs/dbgr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 2221, in load_entry_point
    def __getattr__(self,attr):
  File "/home/galois/.virtualenvs/dbgr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/home/galois/Downloads/pydbgr-0.1.4-py2.6.egg/pydbgr/cli.py", line 30, in <module>
  File "/home/galois/.virtualenvs/dbgr/lib/python2.6/site-packages/import_relative-0.1.0-py2.6.egg/import_relative.py", line 121, in import_relative
    fp, pathname, description = imp.find_module(top_module, [srcdir])
ImportError: No module named api

Maybe it's more related to import_relative than pydbgr.
Python version is 2.6
pydbgr the one easy_installed (0.1.4)

Original issue reported on code.google.com by gabriele...@gmail.com on 14 Oct 2010 at 10:51

GoogleCodeExporter commented 8 years ago
I can't reproduce this problem. I tried with both --no-site-packages and and 
without that option.

A suggestion is to do all over and record everything. As an example here is an 
example:

$ sudo easy_install virtualenv
/usr/lib/python2.6/dist-packages/setuptools/package_index.py:156: UserWarning: 
Unbuilt egg for setuptools [unknown version] (/usr/lib/python2.6/dist-packages)
  Environment.__init__(self,*args,**kw)
/usr/lib/python2.6/dist-packages/setuptools/command/easy_install.py:216: 
UserWarning: Unbuilt egg for setuptools [unknown version] 
(/usr/lib/python2.6/dist-packages)
  self.local_index = Environment(self.shadow_path+sys.path)
Searching for virtualenv
Reading http://pypi.python.org/simple/virtualenv/
Reading http://virtualenv.openplans.org
Best match: virtualenv 1.5.1
Downloading 
http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.5.1.tar.gz#md5=
3daa1f449d5d2ee03099484cecb1c2b7
Processing virtualenv-1.5.1.tar.gz
Running virtualenv-1.5.1/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-R77CCQ/virtualenv-1.5.1/egg-dist-tmp-FS6Z9r
warning: no previously-included files matching '*.*' found under directory 
'docs/_templates'
Adding virtualenv 1.5.1 to easy-install.pth file
Installing virtualenv script to /usr/local/bin

Installed /usr/local/lib/python2.6/dist-packages/virtualenv-1.5.1-py2.6.egg
Processing dependencies for virtualenv
Finished processing dependencies for virtualenv
$ virtualenv virtual-python
New python executable in virtual-python/bin/python
Installing setuptools.............done.
$ mkdir virtual-python
$ cd virtual-python
$ source ./bin/activate
(virtual-python)$ easy_install pydbgr
Searching for pydbgr
Reading http://pypi.python.org/simple/pydbgr/
Reading http://code.google.com/p/pydbgr/
Best match: pydbgr 0.1.4
Downloading http://pydbgr.googlecode.com/files/pydbgr-0.1.4-py2.6.egg
Processing pydbgr-0.1.4-py2.6.egg
creating 
/home/rocky/virtual-python/lib/python2.6/site-packages/pydbgr-0.1.4-py2.6.egg
Extracting pydbgr-0.1.4-py2.6.egg to 
/home/rocky/virtual-python/lib/python2.6/site-packages
Adding pydbgr 0.1.4 to easy-install.pth file
Installing pydbgrc script to /home/rocky/virtual-python/bin
Installing pydbgr script to /home/rocky/virtual-python/bin

Installed 
/home/rocky/virtual-python/lib/python2.6/site-packages/pydbgr-0.1.4-py2.6.egg
Processing dependencies for pydbgr
Searching for tracer>=0.2.2
Reading http://pypi.python.org/simple/tracer/
Reading http://code.google.com/p/pytracer
Best match: tracer 0.2.3
Downloading http://pytracer.googlecode.com/files/tracer-0.2.3-py2.6.egg
Processing tracer-0.2.3-py2.6.egg
creating 
/home/rocky/virtual-python/lib/python2.6/site-packages/tracer-0.2.3-py2.6.egg
Extracting tracer-0.2.3-py2.6.egg to 
/home/rocky/virtual-python/lib/python2.6/site-packages
Adding tracer 0.2.3 to easy-install.pth file

Installed 
/home/rocky/virtual-python/lib/python2.6/site-packages/tracer-0.2.3-py2.6.egg
Searching for pyficache>=0.1.0
Reading http://pypi.python.org/simple/pyficache/
Reading http://code.google.com/p/pyficache
Best match: pyficache 0.1.3
Downloading http://pyficache.googlecode.com/files/pyficache-0.1.3-py2.6.egg
Processing pyficache-0.1.3-py2.6.egg
creating 
/home/rocky/virtual-python/lib/python2.6/site-packages/pyficache-0.1.3-py2.6.egg
Extracting pyficache-0.1.3-py2.6.egg to 
/home/rocky/virtual-python/lib/python2.6/site-packages
Adding pyficache 0.1.3 to easy-install.pth file

Installed 
/home/rocky/virtual-python/lib/python2.6/site-packages/pyficache-0.1.3-py2.6.egg
Searching for import-relative>=0.1.0
Reading http://pypi.python.org/simple/import_relative/
Reading http://code.google.com/p/pyimport-relative
Best match: import-relative 0.1.0
Downloading 
http://pyimport-relative.googlecode.com/files/import_relative-0.1.0-py2.6.egg
Processing import_relative-0.1.0-py2.6.egg
creating 
/home/rocky/virtual-python/lib/python2.6/site-packages/import_relative-0.1.0-py2
.6.egg
Extracting import_relative-0.1.0-py2.6.egg to 
/home/rocky/virtual-python/lib/python2.6/site-packages
Adding import-relative 0.1.0 to easy-install.pth file

Installed 
/home/rocky/virtual-python/lib/python2.6/site-packages/import_relative-0.1.0-py2
.6.egg
Searching for columnize>=0.3.2
Reading http://pypi.python.org/simple/columnize/
Reading http://code.google.com/p/pycolumnize
Best match: columnize 0.3.2
Downloading http://pycolumnize.googlecode.com/files/columnize-0.3.2-py2.6.egg
Processing columnize-0.3.2-py2.6.egg
Moving columnize-0.3.2-py2.6.egg to 
/home/rocky/virtual-python/lib/python2.6/site-packages
Adding columnize 0.3.2 to easy-install.pth file

Installed 
/home/rocky/virtual-python/lib/python2.6/site-packages/columnize-0.3.2-py2.6.egg
Searching for coverage==2.85
Reading http://pypi.python.org/simple/coverage/
Reading http://nedbatchelder.com/code/modules/coverage.html
Reading http://nedbatchelder.com/code/coverage
Reading http://nedbatchelder.com/code/coverage/3.4b1
Reading http://nedbatchelder.com/code/coverage/3.4b2
Best match: coverage 2.85
Downloading http://nedbatchelder.com/code/modules/coverage-2.85.tar.gz
Processing coverage-2.85.tar.gz
Running coverage-2.85/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-wlEIUA/coverage-2.85/egg-dist-tmp-E5QDn4
Adding coverage 2.85 to easy-install.pth file
Installing coverage script to /home/rocky/virtual-python/bin

Installed 
/home/rocky/virtual-python/lib/python2.6/site-packages/coverage-2.85-py2.6.egg
Finished processing dependencies for pydbgr
(virtual-python)$ pydbgr
(Pydbgr) quit
(virtual-python)$ pydbgr ipython
(/usr/bin/ipython:24): <module>
-> 24 """
(Pydbgr) quit
(virtual-python)$ 

Original comment by rocky.bernstein on 15 Oct 2010 at 8:44

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I've tested in a clean environment (same as your steps) that it works 
correctly, there are some problems (various problems actually...) when playing 
in the source directory of pydbgr, it may be (or not) related to the original 
problem, there seems to be something strange with setuptools/distutils stuff:

wget http://pydbgr.googlecode.com/files/pydbgr-0.1.4.tar.gz
tar xvzf pydbgr-0.1.4.tar.gz
cd pydbgr-0.1.4
virtualenv virtual-python

Traceback (most recent call last):
  File "/usr/bin/virtualenv", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2691, in <module>
    add_activation_listener(lambda dist: dist.activate())
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 668, in subscribe
    callback(dist)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2691, in <lambda>
    add_activation_listener(lambda dist: dist.activate())
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2195, in activate
    map(declare_namespace, self._get_metadata('namespace_packages.txt'))
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1790, in declare_namespace
    _handle_ns(packageName, path_item)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1761, in _handle_ns
    loader.load_module(packageName); module.__path__ = path
  File "/usr/lib/python2.6/pkgutil.py", line 238, in load_module
    mod = imp.load_module(fullname, self.file, self.filename, self.etc)
  File "/home/galois/workspace/shit/test/pydbgr-0.1.4/pydbgr/lib/__init__.py", line 17, in <module>
    from import_relative import *
ImportError: No module named import_relative

Original comment by gabriele...@gmail.com on 16 Oct 2010 at 8:57

GoogleCodeExporter commented 8 years ago
I'm sorry but I just can't reproduce this. The traceback you show seems to show 
a problem in running virtualenv. Is import_relative installed in 
/usr/lib/python2.6/site-packages ? Because that's where the traceback show that 
virtualenv wants it installed.

For the record here's what I get when I try what you show:

$ wget http://pydbgr.googlecode.com/files/pydbgr-0.1.4.tar.gz
--2010-10-19 21:48:28--  http://pydbgr.googlecode.com/files/pydbgr-0.1.4.tar.gz
Resolving pydbgr.googlecode.com... 72.14.204.82
...[snip]
2010-10-19 21:48:28 (367 KB/s) - `pydbgr-0.1.4.tar.gz' saved [157870/157870]

$ tar xvzf pydbgr-0.1.4.tar.gz
pydbgr-0.1.4/
...[snip]
pydbgr-0.1.4/README
$ cd pydbgr-0.1.4
$ sudo apt-get install python-virtualenv
...[snip]
Processing triggers for python-support ...
$ virtualenv virtual-python
virtualenv virtual-python
New python executable in virtual-python/bin/python
Installing 
distribute......................................................................
................................................................................
............................done.
$ 

Original comment by rocky.bernstein on 20 Oct 2010 at 1:56

GoogleCodeExporter commented 8 years ago
In this case it's just a configuration problem of my own machine, since I 
managed to install successfully the program just feel free to close the bug.

Thank you for the attention and I'm very sorry for bothering!

Original comment by gabriele...@gmail.com on 20 Oct 2010 at 4:35

GoogleCodeExporter commented 8 years ago

Original comment by rocky.bernstein on 20 Oct 2010 at 4:44