Ubuntu update; printrun not working. #235

Closed
lemio opened this Issue Jun 6, 2012 · 6 comments

Comments

Projects
None yet
3 participants

lemio commented Jun 6, 2012

Hey,

I don´t know what changed exectually on my PC, but now printrface is not working any more. I get this error:

Traceback (most recent call last):
File "pronterface.py", line 1888, in
main = PronterWindow()
File "pronterface.py", line 141, in init
self.popmenu()
File "pronterface.py", line 389, in popmenu
m.AppendSubMenu(self.macros_menu, _("&Macros"))
AttributeError: 'Menu' object has no attribute 'AppendSubMenu'

Owner

kliment commented Jun 6, 2012

On 06/06/2012 04:37 PM, Geert Roumen wrote:

Hey,

I don´t know what changed exectually on my PC, but now printrface is not working any more. I get this error:

Traceback (most recent call last):
File "pronterface.py", line 1888, in
main = PronterWindow()
File "pronterface.py", line 141, in init
self.popmenu()
File "pronterface.py", line 389, in popmenu
m.AppendSubMenu(self.macros_menu, _("&Macros"))
AttributeError: 'Menu' object has no attribute 'AppendSubMenu'


Reply to this email directly or view it on GitHub:
#235
Hello Geert,

This is a really weird error. Can you run python from the console and
tell me the output of the following commands:
import wx
wx.version()
print wx.Menu
print wx.Menu.AppendSubMenu

Kliment

lemio commented Jun 6, 2012

import wx
wx.version()
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'version'
print wx.Menu
<class 'wx._core.Menu'>
print wx.Menu.AppendSubMenu
Traceback (most recent call last):
File "", line 1, in
AttributeError: type object 'Menu' has no attribute 'AppendSubMenu'

bernt commented Jun 8, 2012

I have the same Problem with one ubuntu PC.
$ python
Python 2.7.3 (default, Apr 20 2012, 22:39:59)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import wx
print wx.version()
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'version'

luckily I dont have this Problem with my subnetbook. Here it gives:
Python 2.7.3
and wx.version = 2.8.12.1

But I would like to know, how to get the PC to do the "import wx" correctly.
(Both machines with ubuntu 12.04)

Owner

kliment commented Jun 8, 2012

Can you please try sudo apt-get install libwxgtk2.8-dev ?

On 06/08/2012 07:33 AM, bernt wrote:

I have the same Problem with one ubuntu PC.
$ python
Python 2.7.3 (default, Apr 20 2012, 22:39:59)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import wx
print wx.version()
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'version'
luckily I dont have this Problem with my subnetbook. Here it gives:
Python 2.7.3
and wx.version = 2.8.12.1

But I would like to know, how to get the PC to do the "import wx" correctly.
(Both machines with ubuntu 12.04)


Reply to this email directly or view it on GitHub:
#235 (comment)

bernt commented Jun 8, 2012

I have this installed, but then I have seen that there is gtk2.6 and gtk2.8 stuff installed
So I get the solution of this problem with:

  • first uninstalling all wxgtk2.6, wx2.6 and all python-wx (2.6 and 2.8, ...) stuff.
  • then installing python-wxversion
  • then installing python-wxtools -> needs python-wxgtk2.8
    and now, it works :-)

lemio commented Jun 13, 2012

Thanks it is working now!

@lemio lemio closed this Jun 13, 2012

@sayhellotovanessa sayhellotovanessa referenced this issue in Metamaquina/Printrun Aug 7, 2013

Open

Ubuntu Precise: problemas com pythonwx #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment