Opened 12 years ago
Last modified 12 years ago
#1223 new Defect
Improper invocation of setup.py during build with configure --prefix leads to "ImportError: No module named boinc_path_config"
Reported by: | boinc_of_an_eye | Owned by: | davea |
---|---|---|---|
Priority: | Undetermined | Milestone: | Undetermined |
Component: | Server - Setup | Version: | |
Keywords: | python boinc_path_config make install | Cc: |
Description
Many people have reported "ImportError?: No module named boinc_path_config" when trying to set up the Boinc server software [1] [2] [3].
I believe the problem is due to "make install" running this command:
python setup.py install --prefix=/home/username/opt/boinc --root=
Specifically, if you're compiling this in /home/username/src/boinc with a configure --prefix of /home/username/opt/boinc, these parameters cause the target to be created in /home/username/src/boinc/py/home/username/opt/boinc/lib/python2.7/site-packages. This is clearly wrong!
A workaround is to run in the py/ subdirectory of the boinc source tree:
python setup.py install --prefix=/home/username/opt/boinc
The problem can be worked around by running the above command manually. But it should really be fixed in the build scripts, so I'm filing this report.
I'm building from git commit 99eef6305535612137842ed9e5d5edc0057b1e8c on a new Ubuntu 12.10 server install in a Virtualbox VM using the following procedure:
./_autosetup ./configure --disable-client --disable-manager --prefix=$HOME/opt/boinc make make install
The "Version" field of this Trac ticket doesn't have 7.1.0 (the number in version.h) as an option, so it should be ignored.
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657036
[2] https://bugs.launchpad.net/ubuntu/+source/boinc/+bug/920554
[3] http://article.gmane.org/gmane.comp.distributed.boinc.devel/1999/match=boinc_path_config
Change History (1)
comment:1 Changed 12 years ago by
Component: | Undetermined → Server - Setup |
---|---|
Keywords: | python boinc_path_config make install added |
Owner: | set to davea |
Version: | 7.0.42 |