module import issue when not using --prefix=/usr (eg. /usr/local)

Bug #1019583 reported by lainme
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rubber
Invalid
Undecided
Unassigned

Bug Description

I compiled rubber with

./configure
make
sudo make install

but found the following error

Traceback (most recent call last):
  File "/usr/bin/rubber", line 3, in <module>
    from rubber.cmdline import Main
ImportError: No module named rubber.cmdline

I checked the bug report https://bugs.launchpad.net/rubber/+bug/878623 and changed all the permissions but without lack.

After trying to install it into /usr, rubber works fine. The reason is /usr/loca/lib/pythonx.x/site-packages is not in the python search path. One solution is to set $PYTHONPATH manually, but it seems not a good idea if having multiple versions of python (e.g. 2.7 and 3.2)

I wounder whether this can be solved in the soruce code itself, by using the sys.path?

Revision history for this message
Sebastian Kapfer (caci) wrote :

The install scripts for Rubber were recently rewritten completely. I'm closing this bug, since it applies to the old code.

Please have a try with the new release, and see if the problem is solved. If not, I'll look into it.

Changed in rubber:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.