Results 1 to 7 of 7

Thread: PlayOnLinux claims it cannot import wxversion when it is installed

  1. #1
    Join Date
    Mar 2010
    Beans
    15

    PlayOnLinux claims it cannot import wxversion when it is installed

    I'm trying to get PlayOnLinux up and running on my computer. I have previously had it running with no problems at all, but now it claims it cannot import wxversion when I know for a fact that I have it installed. I have searched Google and UbuntuForums using various different search terms, but nothing I have found has been of any use to me. I have tried completely removing and reinstalling all of the python-wx[etc.] packages and the playonlinux package in Synaptic. No matter what I do, though, I still get the following error when I try to run PlayOnLinux in a terminal (nothing at all happens if I use a shortcut):

    Traceback (most recent call last):
    File "/usr/share/playonlinux/python/mainwindow.py", line 23, in <module>
    import wxversion
    ImportError: No module named wxversion

    Any help is greatly appreciated.

  2. #2
    Join Date
    Mar 2010
    Beans
    15

    Re: PlayOnLinux claims it cannot import wxversion when it is installed

    I got it working. Turns out it was a problem that arose because I had installed Python 2.7.1 from source code on top of 2.6.6 having been installed through Synaptic Package Manager. Although my fix was far from optimal and I'm likely to catch crap for it later, PlayOnLinux runs fine. Let this be a lesson learned to never install from source when you can add the repository to your software sources.

    Solved. If anyone is interested in my (albeit clumsy) fix, I'd be happy to share.

  3. #3
    Join Date
    Dec 2010
    Beans
    16

    Re: PlayOnLinux claims it cannot import wxversion when it is installed

    I still get the following error when I try to run PlayOnLinux in a terminal.
    ----------
    Peter Fernandes

  4. #4
    Join Date
    Mar 2010
    Beans
    15

    Re: PlayOnLinux claims it cannot import wxversion when it is installed

    Have you installed Python from source code while also having Python installed in Synaptic? If that's what you've done, then I might be able to help you. Otherwise, it would probably be a different problem producing the same error. My fix involved replacing the binary in /usr/local/bin/ that was created from the source-code-installed Python with a copy of the python2.6 binary and putting a copy of the python2.6-config file in the same directory.

    As I said, probably not the best method, but it works. For now, at least.

  5. #5
    Join Date
    Jan 2011
    Beans
    3

    Re: PlayOnLinux claims it cannot import wxversion when it is installed

    Quote Originally Posted by Durandal512 View Post
    Have you installed Python from source code while also having Python installed in Synaptic? If that's what you've done, then I might be able to help you. Otherwise, it would probably be a different problem producing the same error. My fix involved replacing the binary in /usr/local/bin/ that was created from the source-code-installed Python with a copy of the python2.6 binary and putting a copy of the python2.6-config file in the same directory.

    As I said, probably not the best method, but it works. For now, at least.
    Hi,

    I have the same problem. Unfortunately I new in ubuntu. Could you please show me how to perform your fix?

    I installed python 2.7, since then, play on linux didn't work.

    Regards,

  6. #6
    Join Date
    Mar 2010
    Beans
    15

    Re: PlayOnLinux claims it cannot import wxversion when it is installed

    Before you try the following, make sure you have the package called "python" installed in Synaptic. Otherwise, you probably won't have the python2.6 files I mention.

    I'll explain this as best I can for a beginner, although if you aren't familiar with super-user privileges and using the file browser as root, you may want to look away (not too concerned with that, though; you did manage to install a program from source code, after all).

    Follow these instructions and things should work out:

    Open a terminal (Open Applications menu, Accessories, Terminal). Run "sudo nautilus" (no quotes), giving your password when prompted.

    Using the file browser that opens, navigate to /usr/local/bin/

    Delete the file called "python" (again, no quotes)

    Go to /usr/bin/

    Right-click the file called "python" and click copy. Paste it into /usr/local/bin/

    Go back to /usr/bin/ and copy "python2.6" and paste it into /usr/local/bin/

    Do the same with the file called "python2.6-config"

    Hope this helps. Good luck to anyone who tries this.

  7. #7
    Join Date
    Jan 2011
    Beans
    3

    Smile Re: PlayOnLinux claims it cannot import wxversion when it is installed

    Quote Originally Posted by Durandal512 View Post
    Before you try the following, make sure you have the package called "python" installed in Synaptic. Otherwise, you probably won't have the python2.6 files I mention.

    I'll explain this as best I can for a beginner, although if you aren't familiar with super-user privileges and using the file browser as root, you may want to look away (not too concerned with that, though; you did manage to install a program from source code, after all).

    Follow these instructions and things should work out:

    Open a terminal (Open Applications menu, Accessories, Terminal). Run "sudo nautilus" (no quotes), giving your password when prompted.

    Using the file browser that opens, navigate to /usr/local/bin/

    Delete the file called "python" (again, no quotes)

    Go to /usr/bin/

    Right-click the file called "python" and click copy. Paste it into /usr/local/bin/

    Go back to /usr/bin/ and copy "python2.6" and paste it into /usr/local/bin/

    Do the same with the file called "python2.6-config"

    Hope this helps. Good luck to anyone who tries this.
    It worked fine for me also. Thanks!!

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
  •