pomegranate: Pip installation issues ValueError: 'pomegranate/*.pyx' doesn't match any files
Hello everyone,
First I wanted to say that this repo looks really well done, and I am excited about using the probabilistic models. I know that the maintainers are probably pretty busy, so I am willing to help out where it makes sense with this issue. On my mac OSX, I ran into an issue where I can’t pip install pomegranate. When running both pip install pomegranate and pip install pomegranate --no-cache-dir, I get the following error:
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/jp/sh4l4l4x4vb216bqy49y87v00000gn/T/pip-build-DG1HK3/pomegranate/setup.py", line 34, in <module>
extensions = cythonize( extensions )
File "/usr/local/lib/python2.7/site-packages/Cython/Build/Dependencies.py", line 908, in cythonize
aliases=aliases)
File "/usr/local/lib/python2.7/site-packages/Cython/Build/Dependencies.py", line 778, in create_extension_list
for file in nonempty(sorted(extended_iglob(filepattern)), "'%s' doesn't match any files" % filepattern):
File "/usr/local/lib/python2.7/site-packages/Cython/Build/Dependencies.py", line 124, in nonempty
raise ValueError(error_msg)
ValueError: 'pomegranate/*.pyx' doesn't match any files
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/jp/sh4l4l4x4vb216bqy49y87v00000gn/T/pip-build-DG1HK3/pomegranate/
I looked at the readme, and it mentioned demoting a couple of libraries, but that didn’t seem to do the trick. Do you have any other thoughts?
EDIT:
here is my pip list in my virtual environment:
Cython (0.27.1)
decorator (4.1.2)
joblib (0.11)
networkx (1.11)
numpy (1.11.3)
pip (9.0.1)
scipy (0.19.1)
setuptools (36.6.0)
wheel (0.30.0)
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (5 by maintainers)
After installing dependencies, this line will solve your problems. I have tested that command on OSX on both
pip3andpip.I have updated the README file and submitted a pull request.
Just hit this problem, trying to install pomegranate on windows (appveyor). Checking the source distribution for 0.10.0, the .pyx files are not included, only the .c files. Looking at MANIFEST.in, the .pyx files are not included there, only .pxd and .c, which is probably why the .pyx files are not ending up in the source distribution.
So if someone tries to install pomegranate on windows but doesn’t have cython installed, it will probably work (build from .c), but if cython is present then it won’t work (attempt to build from .pyx but .pyx are missing from source distribution).
This doesn’t crop up on Linux because by default a prebuilt wheel gets installed. If you to
pip install --no-binarythen you get the problem reported here.Surely the right thing to do here is add:
…to MANIFEST.in and issue a new source release.
Happy to submit a PR to that effect.