Yes, I have python3 installed. But pip and invenio both use python-2.7.6
$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:38)
[GCC 4.8.2] on linux2
Type help, copyright, credits or license for more information.
from msgpack import packb as serialize
/usr/lib/python2.7/dist-packages/pkg_resources.py:1031: UserWarning:
/home/angeli/.python-eggs is writable by group/others and vulnerable to
attack when used with get_resource_filename. Consider a more secure
location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment
variable).
warnings.warn(msg, UserWarning)
Ctrl-D
$ python3
Python 3.4.0 (default, Apr 11 2014, 13:05:18)
[GCC 4.8.2] on linux
Type help, copyright, credits or license for more information.
from msgpack import packb as serialize
Traceback (most recent call last):
File stdin, line 1, in module
ImportError: No module named 'msgpack'
Best Regards
On Wed, Mar 4, 2015 at 4:17 AM, Tibor Simko tibor.si...@cern.ch wrote:
On Wed, 04 Mar 2015, Surendran Karippadath wrote:
I do not understand how it gives the Import Error.No module named msgpack
when the previous command
$sudo pip install msgpack-python
messages
Successfully installed msgpack-python
Cleaning up...
Could it be that you have more than one Python installation on your
system, and that the Invenio configure command uses one Python
executable, while your system-wide `pip` command uses another?
You can try to manually confirm/infirm the presence of the msgpack
library:
$ /some/path/to/your/python
from msgpack import packb as serialize
Best regards
--
Tibor Simko
--
Surendran K.K.
020-27298293