snare / voltron

A hacky debugger UI for hackers
MIT License
6.18k stars 414 forks source link

Install into the user directory #55

Closed erthalion closed 10 years ago

erthalion commented 10 years ago

I'm trying to install voltran with the --user key:

$ python setup.py install --user

running install
running bdist_egg
running egg_info
writing requirements to voltron.egg-info/requires.txt
writing voltron.egg-info/PKG-INFO
writing top-level names to voltron.egg-info/top_level.txt
writing dependency_links to voltron.egg-info/dependency_links.txt
writing entry points to voltron.egg-info/entry_points.txt
reading manifest file 'voltron.egg-info/SOURCES.txt'
writing manifest file 'voltron.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
warning: build_py: byte-compiling is disabled, skipping.

warning: install_lib: byte-compiling is disabled, skipping.

installing package data to build/bdist.linux-x86_64/egg
running install_data
warning: install_data: setup script did not provide a directory for 'voltron.gdb' -- installing right in 'build/bdist.linux-x86_64/egg'

error: can't copy 'voltron.gdb': doesn't exist or not a regular file

There is no voltran.gdb file in the repository. Maybe I've missed something?

snare commented 10 years ago

Ah that was for the old GDB 6 support which I removed. Try 4f58354652b88402bc514d5f52e4b5f01a01a9fd

erthalion commented 10 years ago

Yes, voltron has been installed successfully now, but when I'm trying to import dbgentry.py in lldb, an error appears:

>>> command script import /path/to/package/voltron-0.1-py2.7.egg/dbgentry.py
Exception <type 'exceptions.OSError'> raised while loading Voltron: [Errno 2] No such file or directory: '/path/to/package/voltron-0.1-py2.7.egg/voltron/plugins'
snare commented 10 years ago

You need to replace /path/to/package with the path to the voltron package on your system (e.g. /Library/Python/2.7/site-packages/voltron-0.1-py2.7.egg/dbgentry.py

erthalion commented 10 years ago

Emm... /path/to/package/ is an abstraction in this case to hide my real path =) If you want more precisely /path/to/package == /home/erthalion/.local/lib64/python2.7/site-packages for me.

snare commented 10 years ago

Oh sorry haha. OK I'll investigate.

snare commented 10 years ago

Try the latest commit, looks like my setup.py was kinda broken.

erthalion commented 10 years ago

I'm now on this commit, and after the reinstallation I have this error:

>>> command script import /home/erthalion/.local/lib64/python2.7/site-packages/voltron-0.1-py2.7.egg/dbgentry.py
Traceback (most recent call last):
  File "/home/erthalion/.local/lib64/python2.7/site-packages/voltron-0.1-py2.7.egg/dbgentry.py", line 120, in __lldb_init_module
    env_dict['cmd'] = VoltronLLDBCommand(debugger, env_dict)
  File "/home/erthalion/.local/lib64/python2.7/site-packages/voltron-0.1-py2.7.egg/dbgentry.py", line 84, in __init__
    self.adaptor = self.pm.debugger_plugin_for_host('lldb').adaptor_class()
AttributeError: 'NoneType' object has no attribute 'adaptor_class'
snare commented 10 years ago

What platform are you on?

snare commented 10 years ago

Ah never mind, I can reproduce it. Had to rush out before but I've got more time now so I'll fix it properly.

snare commented 10 years ago

OK, this time for sure. I've been using setup.py develop so I never noticed this issue :(

erthalion commented 10 years ago

Now everything is good, thanks =)

snare commented 10 years ago

Excellent :)