Skip to content

Updating from msgpack-python from 0.4.2 to 0.5.0 produces a unusable library #266

@vEpiphyte

Description

@vEpiphyte

Installing msgpack-python 0.5.0 from pip produces a non-working msgpack installation.
It appears the installation of msgpack=0.5.0 from msgpack-python 0.5.0 isn't actually installing msgpack.
Installing msgpack==0.5.0 works fine.

Steps to reproduce (using pyenv):

pyenv virtualenv --copies 3.6.1 msgpack_test
pyenv shell msgpack_test
python -m pip install msgpack-python==0.4.2
python -m pip install msgpack-python==0.5.0

Importing msgpack then fails

python -c "import msgpack"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'msgpack'``

Checking the site packages directory between package installations shows the msgpack package
code is disspearing


(msgpack_test) someuser@someplace:~$ ls ~/.pyenv/versions/msgpack_test/lib/python3.6/site-packages/msgpack*
/home/someuser/.pyenv/versions/msgpack_test/lib/python3.6/site-packages/msgpack:
exceptions.py  fallback.py  __init__.py  _packer.cpython-36m-x86_64-linux-gnu.so  __pycache__  _unpacker.cpython-36m-x86_64-linux-gnu.so  _version.py

/home/someuser/.pyenv/versions/msgpack_test/lib/python3.6/site-packages/msgpack_python-0.4.2.dist-info:
DESCRIPTION.rst  INSTALLER  METADATA  metadata.json  RECORD  top_level.txt  WHEEL

(msgpack_test) someuser@someplace:~$ python -m pip install msgpack-python==0.5.0
Collecting msgpack-python==0.5.0
  Using cached msgpack_python-0.5.0-py3-none-any.whl
Collecting msgpack>=0.5 (from msgpack-python==0.5.0)
Installing collected packages: msgpack, msgpack-python
  Found existing installation: msgpack-python 0.4.2
    Uninstalling msgpack-python-0.4.2:
      Successfully uninstalled msgpack-python-0.4.2
Successfully installed msgpack-0.5.0 msgpack-python-0.5.0

(msgpack_test) someuser@someplace:~$ ls ~/.pyenv/versions/msgpack_test/lib/python3.6/site-packages/msgpack*
/home/someuser/.pyenv/versions/msgpack_test/lib/python3.6/site-packages/msgpack-0.5.0.dist-info:
DESCRIPTION.rst  INSTALLER  METADATA  metadata.json  RECORD  top_level.txt  WHEEL

/home/someuser/.pyenv/versions/msgpack_test/lib/python3.6/site-packages/msgpack_python-0.5.0.dist-info:
DESCRIPTION.rst  INSTALLER  METADATA  metadata.json  RECORD  top_level.txt  WHEEL


(msgpack_test) someuser@someplace:~$ ls ~/.pyenv/versions/msgpack_test/lib/python3.6/site-packages/msgpack*
/home/someuser/.pyenv/versions/msgpack_test/lib/python3.6/site-packages/msgpack-0.5.0.dist-info:
DESCRIPTION.rst  INSTALLER  METADATA  metadata.json  RECORD  top_level.txt  WHEEL

/home/someuser/.pyenv/versions/msgpack_test/lib/python3.6/site-packages/msgpack_python-0.5.0.dist-info:
DESCRIPTION.rst  INSTALLER  METADATA  metadata.json  RECORD  top_level.txt  WHEEL

Pip is using version 9.0.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions