Closed kingaza closed 4 years ago
This is due to aftermath of #61. setup_helpers.py
is missing from MANIFEST.in
and so is not uploaded to pypi. Should be a quick fix
Fix has been uploaded to pypi, try installing again via pip (may have to ignore cache to get latest version, i.e. pip install pygrappa --no-cache-dir
).
There are CI tests on the git repo, but some files are not automatically included in PyPI distribution, so please let me know if you find anything else that is missing or breaks. I work primarily on Linux and don't have easy access to Mac
such a quick reply! thx very much~
and installation from source also fails. is it the same problem?
(base) abu:pygrappa abu$ python setup.py install Running cython... Warning: 'keywords' should be a list, got type 'tuple' running install running bdist_egg running egg_info running build_src build_src building extension "pygrappa.cgrappa" sources building extension "pygrappa.grog_powers" sources building extension "pygrappa.grog_gridding" sources build_src: building npy-pkg config files writing pygrappa.egg-info/PKG-INFO writing dependency_links to pygrappa.egg-info/dependency_links.txt writing requirements to pygrappa.egg-info/requires.txt writing top-level names to pygrappa.egg-info/top_level.txt reading manifest file 'pygrappa.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'pygrappa.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-10.7-x86_64/egg running install_lib running build_py running build_ext customize UnixCCompiler customize UnixCCompiler using build_ext customize UnixCCompiler customize UnixCCompiler using build_ext building 'pygrappa.cgrappa' extension compiling C++ sources C compiler: g++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/abu/anaconda3/include -arch x86_64 -I/Users/abu/anaconda3/include -arch x86_64
compile options: '-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I./src/ -I/Users/abu/anaconda3/lib/python3.7/site-packages/numpy/core/include -I/Users/abu/anaconda3/include/python3.7m -c'
g++: ./src/cgrappa.cpp
g++ -bundle -undefined dynamic_lookup -L/Users/abu/anaconda3/lib -arch x86_64 -L/Users/abu/anaconda3/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.7/src/cgrappa.o build/temp.macosx-10.7-x86_64-3.7/src/get_sampling_patterns.o -o build/lib.macosx-10.7-x86_64-3.7/pygrappa/cgrappa.cpython-37m-darwin.so
Traceback (most recent call last):
File "setup.py", line 90, in
Yep, this looks like it might be a chicken/egg dependency problem. Do you have scipy installed currently in your environment? If not, try installing scipy first (i.e., pip install scipy
), then install pygrappa
yes, I have installed scipy-1.3.0 already.
pip installation failed again. is the latest version 0.21.3?
ERROR: Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/my/s_lbvtcn6nb3mylc5cvtp0240000gn/T/pip-install-uljz74s4/pygrappa/
FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
Another missing entry from MANIFEST.in... I'll add that file in and we can give it another go.
yes, I have installed scipy-1.3.0 already.
Most recent should be scipy-1.4.1 -- can you try upgrading? (i.e., pip install --upgrade scipy
). There have been some recent changes to their build system that I am trying take advantage of and I don't know if those are present in scipy 1.3.*.
Latest pygrappa-0.21.5
should now be available including the missing file
great, 0.21.5 works! thx a lot~
env: macOS 1015.4 acOSX.sdk/usr/include/c++/4.2.1 Apple clang version 11.0.3 (clang-1103.0.32.59) Target: x86_64-apple-darwin19.4.0
(base) abu:~ abu$ pip install pygrappa Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting pygrappa Using cached https://pypi.tuna.tsinghua.edu.cn/packages/5c/c2/fd4532079321ae7cc88f8cf5fc96a96b00f918b162d803011d8f83e017c4/pygrappa-0.21.1.tar.gz ERROR: Complete output from command python setup.py egg_info: ERROR: Traceback (most recent call last): File "", line 1, in
File "/private/var/folders/my/s_lbvtcn6nb3mylc5cvtp0240000gn/T/pip-install-xg7ghxo8/pygrappa/setup.py", line 8, in
from setup_helpers import get_build_ext_override
ModuleNotFoundError: No module named 'setup_helpers'
ERROR: Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/my/s_lbvtcn6nb3mylc5cvtp0240000gn/T/pip-install-xg7ghxo8/pygrappa/