Giter Site home page Giter Site logo

Comments (15)

snare avatar snare commented on May 7, 2024

I'll spin up a VM and give it a try.

from voltron.

snare avatar snare commented on May 7, 2024

What version of GDB?

from voltron.

blacktop avatar blacktop commented on May 7, 2024

GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7
Thanks!

from voltron.

snare avatar snare commented on May 7, 2024

Seems that 14.04 comes with Python 2.7 and Python 3.4, GDB is linked with 3.4 but /usr/bin/python is 2.7 (and going to stay that way).

I got voltron installed into the 3.4 site-packages by:

$ sudo apt-get install lib64readline6-dev python3-dev python3-setuptools
$ cd voltron
$ sudo python3 setup.py install

There was a small Python 3 incompatibility in scruffy so you'll need to grab the new version from my github and install it (though that should happen when you install voltron into python3's site-packages.)

GDB should then load voltron.

New version with a full core rewrite and new API coming very soon :)

from voltron.

snare avatar snare commented on May 7, 2024

I'm hitting this on exit as well:

Python Exception <class 'TypeError'> 'str' does not support the buffer interface:

I'll look into it later but I won't spend too much time on it since the rewrite is almost ready.

from voltron.

blacktop avatar blacktop commented on May 7, 2024

Thanks, ya no rush on my end. I think this is a great project and am excited to try the rewrite. When I installed it and tried to import it to test it I got this error:

user@ubuntu:~$ python3
Python 3.4.0 (default, Apr 11 2014, 13:05:11) 
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import voltron
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.4/dist-packages/voltron-0.1-py3.4.egg/voltron/__init__.py", line 4, in <module>
    from .cmd import *
  File "/usr/local/lib/python3.4/dist-packages/voltron-0.1-py3.4.egg/voltron/cmd.py", line 7, in <module>
    from .comms import *
  File "/usr/local/lib/python3.4/dist-packages/voltron-0.1-py3.4.egg/voltron/comms.py", line 16, in <module>
    from .env import *
  File "/usr/local/lib/python3.4/dist-packages/voltron-0.1-py3.4.egg/voltron/env.py", line 34, in <module>
    'basename': 'voltron'
  File "/usr/local/lib/python3.4/dist-packages/scruffy-0.1-py3.4.egg/scruffy/env.py", line 34, in __init__
  File "/usr/local/lib/python3.4/dist-packages/scruffy-0.1-py3.4.egg/scruffy/env.py", line 52, in init_files
TypeError: unsupported operand type(s) for +: 'filter' and 'filter'

from voltron.

snare avatar snare commented on May 7, 2024

Ahh seems I didn't push it to github. If you grab scruffy from here: https://github.com/snarez/scruffy

and install it the same way, that should fix that problem.

from voltron.

snare avatar snare commented on May 7, 2024

Glad you like it :)

from voltron.

blasty avatar blasty commented on May 7, 2024

Ubuntu 14.04 (or some abomination thereof, this box went through quite some quirky dist-upgrades :-/)

  File "/usr/local/lib/python3.4/dist-packages/scruffy-0.1-py3.4.egg/scruffy/env.py", line 7, in 
    from plugin import PluginManager
ImportError: No module named 'plugin'
$ ls -la /usr/local/lib/python3.4/dist-packages/scruffy-0.1-py3.4.egg/scruffy/plugin.py 
-rw-r--r-- 1 root staff 2190 Sep 26 19:39 /usr/local/lib/python3.4/dist-packages/scruffy-0.1-py3.4.egg/scruffy/plugin.py

PYTHON IMPORT PATHS, HOW DO THEY WORK ???

from voltron.

snare avatar snare commented on May 7, 2024

(╯°□°)╯︵ ┻━┻

from voltron.

snare avatar snare commented on May 7, 2024

Maybe drop into python-interactive and poke around in sys.path etc? I have no idea :\

Or try changing that to a relative import?

from .plugin import PluginManager

from voltron.

blasty avatar blasty commented on May 7, 2024

Hah, that totally helped/worked. (the relative import thing) Voltron works now. Not sure who's to blame here.

from voltron.

blasty avatar blasty commented on May 7, 2024

Also hitting the "Python Exception <class 'TypeError'> 'str' does not support the buffer interface:" thing on exit here. How's that rewrite coming along, snare? ;)

from voltron.

snare avatar snare commented on May 7, 2024

Haha rewrite is actually almost done. I got the GDB support working on a plane today. Will push it out tonight and merge it into master soon.

On 28 Sep 2014, at 10:58 pm, blasty [email protected] wrote:

Also hitting the "Python Exception 'str' does not support the buffer interface:" thing on exit here. How's that rewrite coming along, snare? ;)


Reply to this email directly or view it on GitHub.

from voltron.

snare avatar snare commented on May 7, 2024

Yeah GDB seems to do weird shit with module paths, I’ve had that problem before and using a relative import “fixed” it so I left it alone. I’ll add that in scruffy because it might as well be relative.

On 28 Sep 2014, at 10:39 pm, blasty [email protected] wrote:

Hah, that totally helped/worked. (the relative import thing) Voltron works now. Not sure who's to blame here.


Reply to this email directly or view it on GitHub.

from voltron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.