start-script picks wrong yade libraries in ubuntu 14.04

Bug #1254708 reported by Bruno Chareyre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Yade
Fix Released
Critical
Unassigned

Bug Description

If yade is compiled on 14.04 where yade stable is also installed, yade-mine executable will import the stable libraries present in /usr/lib/python2.7.
It makes it impossible to use compiled version (maybe also problems to expect if different binary packages are installed).

bchareyre@ubuntu:~$ yade/bin/yade-trunk
Welcome to Yade 2013-11-21.git-6927b03
TCP python prompt on localhost:9000, auth cookie `cessad'
XMLRPC info provider on http://localhost:21000
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view (use h-key for showing help), F10 both, F9 generator, F8 plot. ]]

Yade [1]: yade.config.revision
 -> [1]: '0.97.0'
Yade [2]: sys.modules['yade']
 -> [2]: <module 'yade' from '/usr/lib/python2.7/dist-packages/yade/__init__.pyc'>

Revision history for this message
Bruno Chareyre (bruno-chareyre) wrote :

Took me a while to figure out the problem. The reason is the split of yade package into different subpackages I think. Not sure about best solution.
Should it be fixed on the packaging side or code side?

Changed in yade:
importance: Undecided → Critical
Revision history for this message
Bruno Chareyre (bruno-chareyre) wrote :

I think we should fix that quickly, else we will have a significant flux of weird bugs/questions from people who don't realize they are not running what they think they are running.
It will be extremely difficult for us (repliers) to understand the problems since, as shown above, the "Welcome to Yade VXXX" is showing an irrelevant VXXX.

Not clear to me: can we revert the current model where some yade modules are installed in standard python paths /usr/lib/python2.7/?
This is the easiest fix, but I'm not sure what are the constraints from the packaging point of view.

Revision history for this message
Anton Gladky (gladky-anton) wrote :

Should be fixed in 1722651fc.
Please, reopen, if it is not.

Anton

Changed in yade:
status: New → Fix Released
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.