LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   python/wicd is broken in Slackware 14.0 on my system, and I can't figure out why. (http://www.linuxquestions.org/questions/slackware-14/python-wicd-is-broken-in-slackware-14-0-on-my-system-and-i-cant-figure-out-why-4175434459/)

darkstarbyte 10-28-2012 05:06 AM

python/wicd is broken in Slackware 14.0 on my system, and I can't figure out why.
 
I tried to load wicd and this happened:

Traceback (most recent call last):
File "/usr/share/wicd/daemon/wicd-daemon.py", line 56, in <module>
from wicd import wpath
ImportError: No module named wicd


I googled for a couple of hours and I found it somewhere where it said to refresh the modules, but that was for debian and does not seem like an option here. If you know anything about this, please post and thanks in advanced.

sycamorex 10-28-2012 05:10 AM

How did you try to load wicd?

Try to load the daemon first:

Code:

# wicd
and start the client later:

Code:

$ wicd-client

darkstarbyte 10-28-2012 05:14 AM

root@darkstar:~# wicd
Traceback (most recent call last):
File "/usr/share/wicd/daemon/wicd-daemon.py", line 56, in <module>
from wicd import wpath
ImportError: No module named wicd


That is exactly what I did.

sycamorex 10-28-2012 05:26 AM

Is it a fresh slackware 14 install or an upgrade from 13.37? If it's an upgrade you might need to recompile wicd as Python was upgraded in the last current cycle.

What's the output of:

Code:

ls -l /usr/bin/python

darkstarbyte 10-28-2012 06:13 AM

lrwxrwxrwx 1 root root 9 Oct 28 03:58 /usr/bin/python -> python2.7*

sycamorex 10-28-2012 07:08 AM

By the lack of any response to my question I assume it is a fresh install.
Did you install wicd from /extra? Have you changed anything in you environment variables?

I also assume you installed wicd for the right architecture.

darkstarbyte 10-28-2012 07:19 AM

This is a fresh install, I installed the package form /extra, and it is the one from my architecture.

colucix 10-28-2012 09:23 AM

Moved: This thread is more suitable in Slackware and has been moved accordingly to help your thread/question get the exposure it deserves.

sycamorex 10-28-2012 09:26 AM

What's the content of /usr/lib(64)/python2.7/site-packages/wicd/ ? That's /usr/lib or /usr/lib64 depending on your architecture.

darkstarbyte 10-28-2012 09:40 AM

root@darkstar:~# ls /usr/lib64/python2.7/site-packages/
M2Crypto/ iobench/
M2Crypto-0.21.1-py2.7.egg-info libical/
PIL/ libproxy.py
PIL.pth libstdcxx/
PyKDE4/ libsvn/
PyQt4/ libxml2.py
Pyrex/ libxml2mod.a
Pyrex-0.9.9-py2.7.egg-info libxml2mod.la*
_LibicalWrap.la* libxml2mod.so*
_LibicalWrap.so* libxslt.py
_blueman.la* libxsltmod.a
_blueman.so* libxsltmod.la*
_dbus_bindings.la* libxsltmod.so*
_dbus_bindings.so* mercurial/
_dbus_glib_bindings.la* mercurial-2.2.2-py2.7.egg-info
_dbus_glib_bindings.so* msi/
_gamin.la* obexftp/
_gamin.so* obexftp-0.23-py2.7.egg-info
_pisock.so* pcardext.la*
_sane.so* pcardext.so*
aotcompile.py pisock.py
audiopy/ pisock.pyc
bgen/ pisockextras.py
blueman/ pisockextras.pyc
buildbot/ plist/
caca/ pssh-2.3.1-py2.7.egg-info
cairo/ psshlib/
ccbench/ pybench/
classfile.py pycups-1.9.61-py2.7.egg-info
compiler/ pycurl-7.19.0-py2.7.egg-info
cups.so* pycurl.so*
cupsext.la* pygtk.pth
cupsext.so* pygtk.py
cupshelpers/ pygtk.pyc
cupshelpers-1.0-py2.7.egg-info pygtk.pyo
curl/ pynche/
dbus/ pysane-2.0-py2.7.egg-info
drv_libxml2.py python_libpisock-0.12.5-py2.7.egg-info
faqwiz/ radialnet/
fetchmailconf.py rpm/
fetchmailconf.pyc sane.py
fetchmailconf.pyo sane.pyc
framer/ scanext.la*
freeze/ scanext.so*
gamin.py scripts/
gamin.pyc sip.so*
gamin.pyo sipconfig.py
gdb/ sipdistutils.py
getmail-4.30.1-py2.7.egg-info ssl/
getmailcore/ svn/
git_remote_helpers/ unicode/
git_remote_helpers-0.1.0-py2.7.egg-info urwid/
glib/ urwid-1.0.1-py2.7.egg-info
gobject/ versioncheck/
gsf/ webchecker/
gtk-2.0/ world/
hgext/ xcb/
hpmudext.la* xcbgen/
hpmudext.so* xml2po/
i18n/ zenmap-6.01-py2.7.egg-info
ieee1284module.a zenmapCore/
ieee1284module.la* zenmapGUI/
ieee1284module.so*

sycamorex 10-28-2012 09:47 AM

It seems like wicd hasn't been correctly installed. You should have the wicd directory in site-packages. Have you installed any other version of Python on top of the stock one?

What's the output of:

Code:

# find / -name wicd 2>/dev/null

darkstarbyte 10-28-2012 10:25 AM

root@darkstar:~# find / -name wicd 2>/dev/null
/etc/wicd
/usr/share/pixmaps/wicd
/usr/share/wicd
/usr/lib64/wicd
/usr/lib64/python2.6/site-packages/wicd
/usr/sbin/wicd
/var/lib/wicd
/var/log/wicd

sycamorex 10-28-2012 10:32 AM

It looks like it's not a fresh install after all. You installed wicd before the upgrade of Python from 2.6 to 2.7. The upgrade took place a few months ago before the release of Slackware 14. Uninstall wicd and install it from /extra in Slackware64 14.

darkstarbyte 10-28-2012 10:38 AM

I deleted everything today, so I can guarantee that is a fresh install. Though the iso I made might have not been, so I will download the package from a new source, considering that this iso I made could have been from a bad mirror from what you said.

darkstarbyte 10-28-2012 10:43 AM

Yeah it is a bad mirror, so I guess I am going to have to reinstall everything and delete the scripts and get the official iso. Sorry for wasting anyone's time.


All times are GMT -5. The time now is 02:33 AM.