Installation of a python package vsm not working

Hi, I have a problem when I try to install a python package for doing NLP named vsm in the environment section of the notebook (yet vsm is in the list of packages that can be download).

Here is a error that I get in the console :
Installing… Collecting vsm==0.4.15 Using cached vsm-0.4.15.tar.gz (240 kB) Preparing metadata ( started Preparing metadata ( finished with status ‘error’ ERROR: Command errored out with exit status 1: command: /opt/python/envs/default/bin/python -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-vu5dnzf5/vsm_d90ac47b12d64c29b22309afd8e5d0ee/’"’"’; file=’"’"’/tmp/pip-install-vu5dnzf5/vsm_d90ac47b12d64c29b22309afd8e5d0ee/’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code =’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ egg_info --egg-base /tmp/pip-pip-egg-info-_qp41ara cwd: /tmp/pip-install-vu5dnzf5/vsm_d90ac47b12d64c29b22309afd8e5d0ee/ Complete output (5 lines): Traceback (most recent call last): File “”, line 1, in File “/tmp/pip-install-vu5dnzf5/vsm_d90ac47b12d64c29b22309afd8e5d0ee/”, line 5, in from Cython.Build import cythonize ModuleNotFoundError: No module named ‘Cython’ ---------------------------------------- WARNING: Discarding (from Links for vsm). Command errored out with exit status 1: python egg_info Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement vsm==0.4.15 (from versions: 0.3.macosx-10.5-x86_64, 0.2, 0.2.1, 0.3a1, 0.3a2, 0.3a3, 0.3, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.4.0a1, 0.4.0a2, 0.4.0a3, 0.4.0a4, 0.4.0a5, 0.4.0a6, 0.4.0a7, 0.4.0a8, 0.4.0a10, 0.4.0a11, 0.4.0a12, 0.4.0a13, 0.4.0a14, 0.4.0a15, 0.4.0a16, 0.4.0a17, 0.4.0a18, 0.4.0a19, 0.4.0a20, 0.4.0a21, 0.4.0a22, 0.4.0a23, 0.4.0a24, 0.4.0a25, 0.4.0a26, 0.4.0a27, 0.4.0a28, 0.4.0a28.post1, 0.4.0a29, 0.4.0b1, 0.4.0b2, 0.4.0b3, 0.4.0b4, 0.4.0b5, 0.4.0b6, 0.4.0b7, 0.4.0b8, 0.4.0b9, 0.4.0rc1, 0.4.0rc1.post1, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.7, 0.4.9, 0.4.10, 0.4.11, 0.4.12, 0.4.13, 0.4.14, 0.4.15) ERROR: No matching distribution found for vsm==0.4.15 WARNING: You are using pip version 21.3.1; however, version 22.0.4 is available. You should consider upgrading via the ‘/opt/python/envs/default/bin/python -m pip install --upgrade pip’ command.

Do you please have a solution to solve this problem ?
Thanks in advance.

Hi @lolodino77,

The vsm module’s has a dependency on cython:, but the project misses cython in minimal build requirements, (see PEP-518, pyproject.toml, similar issue with another project)

so the solution would be to install cython before installing vsm.

It also probably deserves an issue on github: the problem is not specific to Datalore

1 Like

Thanks, in fact the real problem was that the code that I was executing (from a course from a course) imported a made-home library with the same name vsm.