LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 10-28-2012, 06:06 AM   #1
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 234

Rep: Reputation: 2
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.
 
Old 10-28-2012, 06:10 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,613
Blog Entries: 1

Rep: Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048
How did you try to load wicd?

Try to load the daemon first:

Code:
# wicd
and start the client later:

Code:
$ wicd-client
 
Old 10-28-2012, 06:14 AM   #3
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 234

Original Poster
Rep: Reputation: 2
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.
 
Old 10-28-2012, 06:26 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,613
Blog Entries: 1

Rep: Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048
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
 
Old 10-28-2012, 07:13 AM   #5
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 234

Original Poster
Rep: Reputation: 2
lrwxrwxrwx 1 root root 9 Oct 28 03:58 /usr/bin/python -> python2.7*
 
Old 10-28-2012, 08:08 AM   #6
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,613
Blog Entries: 1

Rep: Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048
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.

Last edited by sycamorex; 10-28-2012 at 08:11 AM.
 
Old 10-28-2012, 08:19 AM   #7
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 234

Original Poster
Rep: Reputation: 2
This is a fresh install, I installed the package form /extra, and it is the one from my architecture.

Last edited by darkstarbyte; 10-28-2012 at 08:24 AM.
 
Old 10-28-2012, 10:23 AM   #8
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Moved: This thread is more suitable in Slackware and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 10-28-2012, 10:26 AM   #9
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,613
Blog Entries: 1

Rep: Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048
What's the content of /usr/lib(64)/python2.7/site-packages/wicd/ ? That's /usr/lib or /usr/lib64 depending on your architecture.
 
Old 10-28-2012, 10:40 AM   #10
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 234

Original Poster
Rep: Reputation: 2
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*
 
Old 10-28-2012, 10:47 AM   #11
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,613
Blog Entries: 1

Rep: Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048
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
 
Old 10-28-2012, 11:25 AM   #12
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 234

Original Poster
Rep: Reputation: 2
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
 
Old 10-28-2012, 11:32 AM   #13
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,613
Blog Entries: 1

Rep: Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048
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.
 
Old 10-28-2012, 11:38 AM   #14
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 234

Original Poster
Rep: Reputation: 2
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.
 
Old 10-28-2012, 11:43 AM   #15
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 234

Original Poster
Rep: Reputation: 2
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.
 
  


Reply

Tags
python, slackware, wicd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] wicd broken after latest -current upgrade the_penguinator Slackware 2 06-29-2012 02:29 PM
Broken YUM and Possibly Python nikunjbadjatya Linux - Software 3 06-17-2010 01:55 AM
Python 2.6 - cannot figure out how to get it to find its own library files rylan76 Linux - Newbie 3 10-16-2009 02:22 AM
A script that could figure out whether a file is tracked by slackware pkg system or n grissiom Slackware 4 07-29-2009 12:04 AM
python, os.system() function. howto use python variables? jhwilliams Programming 5 07-28-2007 02:56 AM


All times are GMT -5. The time now is 08:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration