View previous topic :: View next topic |
Author |
Message |
Ellidi Apprentice
Joined: 22 Oct 2002 Posts: 204 Location: iceland
|
Posted: Sun Jan 19, 2003 3:52 am Post subject: Fluxspace trouble |
|
|
When I ran fluxspace for the first time I got an error
Code: |
Traceback (most recent call last):
File "/usr/local/bin/fluxspace", line 15, in ?
import fluxspace
ImportError: No module named fluxspace
|
I figured that this had something to do with python searchpath, so I located the
fluxspace.py file and moved all of the relative files from /usr/local/lib/python2.2/site-packages/ (this was the only thing there.. no other modules, just the ones connected to fluxspace(Yes, I know, I should've just added the path to the python search-path, but I wasn't really thinking at the time)) to a path which is included in the python search-path (/usr/lib/python2.2/site-packages/)
Anyway, Now I run # fluxspace
and guess what..
Code: | Traceback (most recent call last):
File "/usr/local/bin/fluxspace", line 16, in ?
import fluxspace.config
ImportError: No module named config
|
This is as far as my knowledge goes. please help :) _________________ What if God smoked cannabis...
What do you mean with 'What if' ? |
|
Back to top |
|
|
pgray n00b
Joined: 23 Apr 2002 Posts: 51
|
Posted: Mon Jan 20, 2003 11:51 pm Post subject: Same thing... |
|
|
I have the same problem. I hacked together a quick ebuild that compiles and installs Fluxspace based on the dependencies on its website. It works well, but the problem is that after I correct one symbolic link that is made incorrectly, this same error is generated. Fluxspace's files appear to be in the directory /usr/lib/python2.2/site-packages/ and /usr/lib/python2.2/site-packages/fluxspace (this is where the fluxspace.config python file exists). I don't understand why it can't see these python scripts. Can anyone tell me where to move the directory or where to move the individual files in order to make python be able to find the config file? This program seems like it could be a neat addon to fluxbox and blackbox clones.
pgray _________________ life is just a dream, you know? it's neverending. |
|
Back to top |
|
|
pgray n00b
Joined: 23 Apr 2002 Posts: 51
|
Posted: Tue Jan 21, 2003 9:03 pm Post subject: Bump |
|
|
Anyone even care to speculate on this issue? Thanks.
pgray _________________ life is just a dream, you know? it's neverending. |
|
Back to top |
|
|
Ellidi Apprentice
Joined: 22 Oct 2002 Posts: 204 Location: iceland
|
Posted: Wed Jan 22, 2003 6:58 pm Post subject: |
|
|
Doesn't seem so.. damn :) _________________ What if God smoked cannabis...
What do you mean with 'What if' ? |
|
Back to top |
|
|
Qweasda Apprentice
Joined: 04 Feb 2003 Posts: 152
|
Posted: Sun Feb 09, 2003 3:25 am Post subject: |
|
|
I'd love to get it working as well! I have the same problem. |
|
Back to top |
|
|
joehill n00b
Joined: 09 Feb 2003 Posts: 29 Location: Toronto, Canada
|
Posted: Sun Feb 09, 2003 9:16 am Post subject: |
|
|
I think you just have to copy the example config into your .fluxbox dir, it's an xml file.
been awhile since I set it up...
pretty late now, back in a bit.
cheers! |
|
Back to top |
|
|
Qweasda Apprentice
Joined: 04 Feb 2003 Posts: 152
|
Posted: Sun Feb 09, 2003 8:16 pm Post subject: |
|
|
No, I did that. I get the first error which he posted:
Code: | Traceback (most recent call last):
File "/usr/local/bin/fluxspace", line 15, in ?
import fluxspace
ImportError: No module named fluxspace |
|
|
Back to top |
|
|
joehill n00b
Joined: 09 Feb 2003 Posts: 29 Location: Toronto, Canada
|
|
Back to top |
|
|
Qweasda Apprentice
Joined: 04 Feb 2003 Posts: 152
|
Posted: Mon Feb 10, 2003 12:51 am Post subject: |
|
|
Hey, thanks!! I got it halfway working (well a different problem now at least) using the ./configure --prefix=/usr and changing \ to / in the Idesk section of fluxspace.xml.
But, now I get this error:
Code: | Traceback (most recent call last):
File "/usr/bin/fluxspace", line 115, in ?
config.Load()
File "/usr/lib/python2.2/site-packages/fluxspace/config.py", line 63, in Load
self.configDOM = xml.dom.minidom.parse(path)
File "/usr/lib/python2.2/site-packages/_xmlplus/dom/minidom.py", line 962, in parse
return _doparse(pulldom.parse, args, kwargs)
File "/usr/lib/python2.2/site-packages/_xmlplus/dom/minidom.py", line 954, in _doparse
toktype, rootNode = events.getEvent()
File "/usr/lib/python2.2/site-packages/_xmlplus/dom/pulldom.py", line 265, in getEvent
self.parser.feed(buf)
File "/usr/lib/python2.2/site-packages/_xmlplus/sax/expatreader.py", line 194, in feed
self.reset()
File "/usr/lib/python2.2/site-packages/_xmlplus/sax/expatreader.py", line 232, in reset
self._parser = expat.ParserCreate(None, " ", intern = self._interning)
TypeError: 'intern' is an invalid keyword argument for this function
|
Help would be apreciated, thanks! |
|
Back to top |
|
|
joehill n00b
Joined: 09 Feb 2003 Posts: 29 Location: Toronto, Canada
|
Posted: Mon Feb 10, 2003 8:39 am Post subject: |
|
|
aaaaaaaaaaah, the wonderful world of Python.
tis a bonnie thing, for certain
I would check with the author on that one, I never saw that error.
He would have a link to send him a question, probably on his Freshmeat page.
One thing I see from the output you posted is that my /usr/lib/python2.2 dir is very different from yours. For example, I do not have a directory named fluxspace in /usr/lib/python2.2/sitepackages.
did you try this stuff?:
Quote: |
Steven Cooper wrote: Hi,
Glad most of you are getting further at least. When you run "make
install" it should copy fluxspace.py from src/ to someplace like
/usr/local/lib/python2.2/site-packages. Check if it's there.
If it looks like fluxspace.py was copied correctly, try running
"python" stand-alone from the command line. Once you see the ">>> "
prompt, type "import fluxspace" and press Return. You will probably
see the same error as above. It would be interesting if you don't.
As a diagnostic run the following commands. Just enter the ones
preceded by ">>> ". I'm showing my output for reference.
Python 2.2.2 (#1, Dec 26 2002, 22:54:33)
[GCC 3.2.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.path
['', '/usr/local/lib/python2.2/site-packages', '/opt/debian/bin',
'/usr/local/bin', '/home/scooper/bin', '/usr/lib/python2.2',
'/usr/lib/python2.2/plat-linux2', '/usr/lib/python2.2/lib-tk',
'/usr/lib/python2.2/lib-dynload', '/usr/lib/python2.2/site-packages',
'/usr/lib/python2.2/site-packages/gtk-2.0']
>>>
Notice that '/usr/local/lib/python2.2/site-packages' is in my path.
Check that yours has what is needed to find fluxspace.py. If it
doesn't you may have to create or edit a sitecustomize.py file to add
your python library install path, e.g.
/usr/local/lib/python2.2/site-packages to the python path for loading
modules.
I've attached a copy of my sitecustomize.py. If you're installing
under /usr/local you should be able to just put this in
/usr/lib/python<version>, unless there's already one there.
Hope this helps. Please let me know how it goes.
Steve
|
|
|
Back to top |
|
|
pgray n00b
Joined: 23 Apr 2002 Posts: 51
|
Posted: Thu Feb 27, 2003 8:16 pm Post subject: Yea... |
|
|
I was struggling with this program earlier in the thread, and I kind of gave up for a while. I was having the problem of "module config not found" but now I am having Qweasada's problem where it spews a bunch of python gibberish to the console and unexpectedly dies a horrible death. I'm wondering if anyone has had any good experience with repairing this problem? Thanks.
pgray _________________ life is just a dream, you know? it's neverending. |
|
Back to top |
|
|
pgray n00b
Joined: 23 Apr 2002 Posts: 51
|
Posted: Thu Feb 27, 2003 8:34 pm Post subject: Ahh...fixed. |
|
|
YES! I do believe I've fixed it. The problem was with an outdated PyXML library. Doing a simple
fixed the problem. Hooray for that.
pgray _________________ life is just a dream, you know? it's neverending. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|