Results 1 to 5 of 5

Thread: wxPython in opensuse 13.1

  1. #1

    Default wxPython in opensuse 13.1

    I instal a Python based pakage (sfDM: https://pypi.python.org/pypi/sfDM )with all of its requirements. the program is working but I can not open the gui. when I try to open the gui I am getting this massages constantly:
    sfDM_gui
    Traceback (most recent call last):
    File "/usr/bin/sfDM_gui", line 5, in <module>
    pkg_resources.run_script('sfDM==0.3', 'sfDM_gui')
    File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 540, in run_script
    self.require(requires)[0].run_script(script_name, ns)
    File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1455, in run_script
    execfile(script_filename, namespace, namespace)
    File "/usr/lib/python2.7/site-packages/sfDM-0.3-py2.7.egg/EGG-INFO/scripts/sfDM_gui", line 2, in <module>
    import sfDM.ui.fdm_gui
    File "/usr/lib/python2.7/site-packages/sfDM-0.3-py2.7.egg/sfDM/ui/fdm_gui.py", line 11, in <module>
    raise ImportError,"wxPython module is required."
    ImportError: wxPython module is required.

    I have wxPython. it was installed through Yast. I think there is a problem between open suse and fdm_gui.py, which I do not know.
    I really appreciated any help
    Thanks alot, kolaleh

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,864
    Blog Entries
    15

    Default Re: wxPython in opensuse 13.1

    Hi
    I wonder if it's looking for python-matplotlib-wx since it uses python-matplotlib.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,864
    Blog Entries
    15

    Default Re: wxPython in opensuse 13.1

    Hi
    Just tested on Tumbleweed and installed python-wxWidgets and worked with the import in the gui app your using, as in;
    Code:
    import wx
    import wx.lib.scrolledpanel as scrolled
    Test based on http://wxpython.org/Phoenix/docs/htm...lledpanel.html

    So check python-wxWidgets is installed, else the version in 13.1 is not up to date with sfDM.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  4. #4

    Default Re: wxPython in opensuse 13.1

    Thank you very much for responding and sorry for taking so long to reply,
    I have all of them(wxPython, python-matplotlib-wx, python-wxWidgets ) but when i chehed the list of modules for Paython, i could not find the wx or wxPython in the list. I have wx-2.8-gtk2-unicode in the site package (/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode) which is includes wx and wx Python. please let me know how can i include the wxpython in Python modules.
    Thank you
    Kolaleh

  5. #5
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,864
    Blog Entries
    15

    Default Re: wxPython in opensuse 13.1

    Quote Originally Posted by kolaleh View Post
    Thank you very much for responding and sorry for taking so long to reply,
    I have all of them(wxPython, python-matplotlib-wx, python-wxWidgets ) but when i chehed the list of modules for Paython, i could not find the wx or wxPython in the list. I have wx-2.8-gtk2-unicode in the site package (/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode) which is includes wx and wx Python. please let me know how can i include the wxpython in Python modules.
    Thank you
    Kolaleh
    Hi
    If you download the test file I linked to does this work? Just copy the text and save as say wx-test, make it executable eg chmod 0700 wx-test then run from the command line;
    Code:
    ./wx-test
    Note change the /bin/python in the first line to /usr/bin/python, also this is done as your user, not root...
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

Posting Permissions

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