Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu update; printrun not working. #235

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

Ubuntu update; printrun not working. #235

lemio opened this issue Jun 6, 2012 · 6 comments

Comments

@lemio
Copy link

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'

@kliment
Copy link
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
Copy link
Author

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
Copy link

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)

@kliment
Copy link
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
Copy link

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
Copy link
Author

lemio commented Jun 13, 2012

Thanks it is working now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants