Support #144

PYTHONPATH / LIBDIR unclear

Added by Florian Lier over 11 years ago. Updated over 11 years ago.

Status:NewStart date:2013-02-19
Priority:NormalDue date:
Assignee:Florian Lier% Done:

0%

Category:-Spent time:-
Target version:-

Description

If you configure RML using ./configure --prefix=/tmp (for instance) /tmp/bin/rml init will fail due to the std path for python libs, e.g.:


flier@m0thership:~/Projects/Ongoing/RML/data$ /tmp/bin/rml init
Traceback (most recent call last):
File "/tmp/bin/rml", line 4, in <module>
import pkg_resources
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2815, in <module>
working_set.require(__requires__)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 690, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 588, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: RobotMetaLogger==0.4

Shall we introduce a $prefix variable? Import paths on runtime using sys.append.path() ? Extend $PYTHONPATH ?

History

#1 Updated by Florian Lier over 11 years ago

  • Assignee set to Florian Lier

Also available in: Atom PDF