Project

General

Profile

Actions

Bug #1076

closed

babeltrace does not add itself to the correct python3 site-packages for certain installations

Added by Daniel U. Thibault over 7 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
11/04/2016
Due date:
% Done:

0%

Estimated time:

Description

Ubuntu 14.04.2 LTS Trusty with a Python3/Anaconda installation (using Anaconda3-4.0.0-Linux-x86_64.sh, python3 and ipython3 from apt), the site-packages used by the PyCharm IDE (PyCharm Community Edition 2016.1.3) is /home/<username>/anaconda3/lib/python3.5/site-packages, while babeltrace installs itself in /usr/local/lib/python3.5/site-packages only. To be able to 'import babeltrace', one must add symbolic links in a subdir of the first path to the second path's files:

# mkdir ~/anaconda3/lib/python3.5/site-packages/babeltrace
# ln -s /usr/local/lib/python3.5/site-packages/babeltrace.py        ~/anaconda3/lib/python3.5/site-packages/babeltrace/babeltrace.py
# ln -s /usr/local/lib/python3.5/site-packages/_babeltrace.a        ~/anaconda3/lib/python3.5/site-packages/babeltrace/_babeltrace.a
# ln -s /usr/local/lib/python3.5/site-packages/_babeltrace.la       ~/anaconda3/lib/python3.5/site-packages/babeltrace/_babeltrace.la
# ln -s /usr/local/lib/python3.5/site-packages/_babeltrace.so.0.0.0 ~/anaconda3/lib/python3.5/site-packages/babeltrace/_babeltrace.so
# ln -s /usr/local/lib/python3.5/site-packages/_babeltrace.so.0.0.0 ~/anaconda3/lib/python3.5/site-packages/babeltrace/_babeltrace.so.0
# ln -s /usr/local/lib/python3.5/site-packages/_babeltrace.so.0.0.0 ~/anaconda3/lib/python3.5/site-packages/babeltrace/_babeltrace.so.0.0.0

$ conda --version
conda 4.0.5
$ python --version
Python 3.5.1 :: Anaconda 4.0.0 (64-bit)
$ python3 --version
Python 3.5.1 :: Anaconda 4.0.0 (64-bit)
$ ipython --version
4.1.2
$ ipython3 --version
4.1.2

Mind you, this python setup is pretty messy, so I'm not sure what the portable approach is supposed to be. 'which python3' may be a start...


Files

Actions

Also available in: Atom PDF