Discussion:
[bakefile-devel] bakefile xmlparser error
Paul Breen
2011-03-17 18:20:19 UTC
Permalink
Hello,

I'm getting the following error when I run bakefile_gen:

Traceback (most recent call last):
File "/usr/bin/bakefile_gen", line 37, in <module>
import xmlparser, dependencies, errors, portautils
ImportError: No module named xmlparser

I built bakefile from source using configure&&make&&sudo make install, and I got no complaints about unsatisfied dependencies. I don't know the first thing about python, so I'm not sure how to troubleshoot this. Does anyone have any idea what might be causing this? I'm using bakefile version 0.2.8 on Ubuntu 10.04. Thank!

--Paul Breen
Václav Slavík
2011-04-08 09:57:00 UTC
Permalink
Post by Paul Breen
File "/usr/bin/bakefile_gen", line 37, in <module>
import xmlparser, dependencies, errors, portautils
ImportError: No module named xmlparser
I built bakefile from source using configure&&make&&sudo make install,
That would install into /usr/local, not /usr as the error above shows. Are you sure you don't have another copy around or built it differently?
Post by Paul Breen
and I got no complaints about unsatisfied dependencies. I don't know the first thing about python, so I'm not sure how to troubleshoot this. Does anyone have any idea what might be causing this?
No, sorry. This file is part of Bakefile and is installed by `make install`. If it isn't for you, or if it cannot be found at runtime, then something went wrong, but you don't provide enough information to guess what. Was the file installed? Where? In /usr/lib/bakefile, /usr/local/lib/bakefile?

What's the output of

python -c "import os.path; print os.path.realpath('/usr/bin/bakefile_gen')"

? (Or with "/usr/local/bin/bakefile_gen", depending on where Bakefile really is.)

Regards,
Vaclav

Loading...