Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Vpython

  1. #1
    Join Date
    Sep 2008
    Location
    Atlanta
    Beans
    84
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Vpython

    Does anyone know how to get vpython working under Ubuntu 9.10?
    I've got IDLE (using python-2.6) installed as my python shell window, but I can't seem to get visual python working.
    I know that there's a package in the repositories - visual python, which I've installed, but I can't seem to run it somehow. I've gone to their site with no luck on installation.

    Does anyone know anything that could help? Thanks in advance
    Ubuntu 11.04 Natty Narwhal with GNOME 3
    Dell Latitude E6400
    2.4 GHz * 2, 3 GB RAM, 320 GB HDD, 1440 x 900 Resolution

  2. #2
    Join Date
    Dec 2009
    Beans
    1

    Re: Vpython

    Bump

  3. #3
    Join Date
    Jul 2008
    Location
    Toronto
    Beans
    92
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Vpython

    I'll bump this thread as well.

    Just installed vpython on 9.10.

    When I try to run the simple code

    Code:
    from visual import *
    sphere()
    using IDLE, nothing happens. When I try to run the code using the command
    Code:
    python filename.py
    I get the error
    Code:
    Segmentation Fault
    With no other information.

  4. #4
    Join Date
    Jul 2008
    Location
    Toronto
    Beans
    92
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Vpython

    OK, the issue seems to be fixed by including the software source available here.

    However, you can't interact with the visualization window with the mouse. I'll try to sort this out tomorrow, but I think the initial issue might be taken care of.

  5. #5
    Join Date
    Sep 2008
    Location
    Atlanta
    Beans
    84
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Vpython

    Quote Originally Posted by marcusesses View Post
    OK, the issue seems to be fixed by including the software source available here.

    However, you can't interact with the visualization window with the mouse. I'll try to sort this out tomorrow, but I think the initial issue might be taken care of.
    I've added the software sources, but which packages do I install?
    My problem usually occurs when I want to run a python script like this one for testing:
    Code:
    from visual import *
    sphere()
    All of a sudden, both my script manager and the python shell crash
    Ubuntu 11.04 Natty Narwhal with GNOME 3
    Dell Latitude E6400
    2.4 GHz * 2, 3 GB RAM, 320 GB HDD, 1440 x 900 Resolution

  6. #6
    Join Date
    Sep 2009
    Location
    Pittsburgh
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Vpython

    Bump

    I also updated the sources. Removed and re-installed python-visual. Nothing new.

  7. #7
    Join Date
    Sep 2008
    Location
    Atlanta
    Beans
    84
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Vpython

    Quote Originally Posted by Gawains Green Knight View Post
    Bump

    I also updated the sources. Removed and re-installed python-visual. Nothing new.
    What's your problem.. is the python shell and vpython crashing when you try to run a test script?
    Ubuntu 11.04 Natty Narwhal with GNOME 3
    Dell Latitude E6400
    2.4 GHz * 2, 3 GB RAM, 320 GB HDD, 1440 x 900 Resolution

  8. #8
    Join Date
    Sep 2009
    Location
    Pittsburgh
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Vpython

    I saved

    from visual import *
    sphere()

    to a file named test.py and then ran

    python test.py

    to only receive a segmentation fault.

    Never used python before so I may be doing something stupid....

  9. #9
    Join Date
    Sep 2009
    Location
    Pittsburgh
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Vpython

    Anyone had any luck with this yet?

    Edit: Above fix seems to have worked on my xubuntu 9.04 (I'll have to see why it didn't work on my 10.04 at home), but now I'm seeing...

    python
    Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
    [GCC 4.4.1] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from visual import *
    >>> sphere()

    (<unknown>:8194): GdkGLExt-WARNING **: Cannot open \xa0\u001f\xc2\u0008L.so

    (<unknown>:8194): GdkGLExt-WARNING **: Cannot open \xa0\u001f\xc2\u0008L.so

    glibmm-ERROR **:
    unhandled exception (type std::exception) in signal handler:
    what: Unable to get extension function: glTexImage3D even though the extension is advertised.

    aborting...
    Aborted
    ....getting there!

    Edit:Edit:

    sudo apt-get install libgtkglextmm-x11-1.2-dev

    seems to fix it, but the window is a little messed up (no boundary or anything). But it works! Thanks!

    Edit:Edit: Edit: Didn't work on Ubuntu 10.04
    Last edited by Gawains Green Knight; February 4th, 2010 at 02:29 AM.

  10. #10
    Join Date
    Jul 2008
    Location
    Toronto
    Beans
    92
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Vpython

    Re: the fix above.

    For me, adding the source lists I mentioned in my previous post, then running
    Code:
    sudo apt-get update
    and
    Code:
    sudo apt-get upgrade
    Allowed me to run a vpython script and have it produce the desired result.

    I am unable to rotate or manipulate the figure produced with the mouse cursor, so perhaps an additional package that allows 3-d visualization (e.g. OpenGL) needs to be installed?

    I haven't really looked into the issue since my last post, so maybe I will do that in the next couple days.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •