You are not logged in.

#1 2007-01-23 03:01:15

Deciare
Member
From: UTC -8:00
Registered: 2005-05-05
Posts: 79

python: no module named struct

Ever since I performed an update (for x86_64, if that makes a difference) this afternoon, beryl-settings has failed to start for me. It always fails with this message:

Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Traceback (most recent call last):
  File "/usr/bin/beryl-settings", line 12, in ?
    import gettext
  File "/usr/lib/python2.4/gettext.py", line 49, in ?
    import locale, copy, os, re, struct, sys
ImportError: No module named struct

/usr/lib/python2.4/gettext.py belongs to the python package, so I'm supposing the breakage has something to do with that? Pacman says that I currently have python-2.4.4-1.1 installed.

Offline

#2 2007-01-23 15:43:41

perost
Member
Registered: 2007-01-23
Posts: 52

Re: python: no module named struct

I also have this problem after updating yesterday, and I'm also running Arch64. I get the exact same error when trying to run Listen. I checked the 32-bit python package for regular Arch, and it had the file struct.so, which the Arch64 package is missing. There is no struct.so or struct.py on my system, and I guess that's the file that is missing, so it seems like it was missed in the newest python-package.

Offline

#3 2007-01-23 23:25:07

Deciare
Member
From: UTC -8:00
Registered: 2005-05-05
Posts: 79

Re: python: no module named struct

A PKGBUILD for python-2.4.4-1.2 is now available via ABS. smile The only difference is that the patch introduced in 2.4.4-1.1 is not applied. That unbreaks the struct problem, and the comment in the PKGBUILD also suggests that it unbreaks quite a lot of other things.

Thank you!

Offline

#4 2007-01-24 00:28:46

firewalker
Member
From: Hellas (Greece).
Registered: 2006-06-05
Posts: 552

Re: python: no module named struct

When I try to run beryl-manager the next error occurs.

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "/usr/bin/beryl-settings", line 2, in ?
    import berylsettings
ImportError: No module named berylsettings

Γίνε ρεαλιστής, μείνε ονειροπόλος ...

Offline

#5 2007-01-24 04:03:32

Deciare
Member
From: UTC -8:00
Registered: 2005-05-05
Posts: 79

Re: python: no module named struct

You need to install the beryl-settings-bindings package. (It's called beryl-settings-bindings-svn in Arch's Unstable repository.)

Offline

#6 2007-01-24 14:38:30

firewalker
Member
From: Hellas (Greece).
Registered: 2006-06-05
Posts: 552

Re: python: no module named struct

Deciare wrote:

You need to install the beryl-settings-bindings package. (It's called beryl-settings-bindings-svn in Arch's Unstable repository.)

I had it installed. I had to reinstall the following packets. Now everything works just fine.

Python
Pygtk
Gtk2
Pycairo


Γίνε ρεαλιστής, μείνε ονειροπόλος ...

Offline

Board footer

Powered by FluxBB