pyedflib: Error installing pyEDFlib 0.1.22 with python3.9
Trying to install pyedflib
Collecting pyEDFlib
Using cached pyEDFlib-0.1.22.tar.gz (1.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: numpy>=1.9.1 in ./opt/anaconda3/envs/testing38/lib/python3.9/site-packages (from pyEDFlib) (1.21.2)
Building wheels for collected packages: pyEDFlib
Building wheel for pyEDFlib (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /Users/andrea/opt/anaconda3/envs/testing38/bin/python /Users/andrea/opt/anaconda3/envs/testing38/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /var/folders/1f/swwy4vk91v36xryz9j1j6p7c0000gp/T/tmpkw53khr3
cwd: /private/var/folders/1f/swwy4vk91v36xryz9j1j6p7c0000gp/T/pip-install-mquo9wan/pyedflib_d378ea58a8de4cacb6159039f373d2ab
Complete output (53 lines):
setup.py:132: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.9
creating build/lib.macosx-10.9-x86_64-3.9/pyedflib
copying pyedflib/version.py -> build/lib.macosx-10.9-x86_64-3.9/pyedflib
copying pyedflib/highlevel.py -> build/lib.macosx-10.9-x86_64-3.9/pyedflib
copying pyedflib/__init__.py -> build/lib.macosx-10.9-x86_64-3.9/pyedflib
copying pyedflib/edfreader.py -> build/lib.macosx-10.9-x86_64-3.9/pyedflib
copying pyedflib/edfwriter.py -> build/lib.macosx-10.9-x86_64-3.9/pyedflib
creating build/lib.macosx-10.9-x86_64-3.9/pyedflib/_extensions
copying pyedflib/_extensions/__init__.py -> build/lib.macosx-10.9-x86_64-3.9/pyedflib/_extensions
creating build/lib.macosx-10.9-x86_64-3.9/pyedflib/data
copying pyedflib/data/_readers.py -> build/lib.macosx-10.9-x86_64-3.9/pyedflib/data
copying pyedflib/data/__init__.py -> build/lib.macosx-10.9-x86_64-3.9/pyedflib/data
package init file 'pyedflib/tests/__init__.py' not found (or not a regular file)
creating build/lib.macosx-10.9-x86_64-3.9/pyedflib/tests
copying pyedflib/tests/test_edfwriter.py -> build/lib.macosx-10.9-x86_64-3.9/pyedflib/tests
copying pyedflib/tests/test_edfreader.py -> build/lib.macosx-10.9-x86_64-3.9/pyedflib/tests
copying pyedflib/tests/test_doc.py -> build/lib.macosx-10.9-x86_64-3.9/pyedflib/tests
copying pyedflib/tests/test_highlevel.py -> build/lib.macosx-10.9-x86_64-3.9/pyedflib/tests
package init file 'pyedflib/tests/data/__init__.py' not found (or not a regular file)
copying pyedflib/data/test_generator.edf -> build/lib.macosx-10.9-x86_64-3.9/pyedflib/data
creating build/lib.macosx-10.9-x86_64-3.9/pyedflib/tests/data
copying pyedflib/tests/data/test_generator.edf -> build/lib.macosx-10.9-x86_64-3.9/pyedflib/tests/data
copying pyedflib/tests/data/test_subsecond.edf -> build/lib.macosx-10.9-x86_64-3.9/pyedflib/tests/data
running build_clib
building 'c_edf' library
creating build/temp.macosx-10.9-x86_64-3.9
creating build/temp.macosx-10.9-x86_64-3.9/pyedflib
creating build/temp.macosx-10.9-x86_64-3.9/pyedflib/_extensions
creating build/temp.macosx-10.9-x86_64-3.9/pyedflib/_extensions/c
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/andrea/opt/anaconda3/envs/testing38/include -arch x86_64 -I/Users/andrea/opt/anaconda3/envs/testing38/include -fPIC -O2 -isystem /Users/andrea/opt/anaconda3/envs/testing38/include -arch x86_64 -DPY_EXTENSION -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -Ipyedflib/_extensions/c -I/Users/andrea/opt/anaconda3/envs/testing38/include/python3.9 -c pyedflib/_extensions/c/edflib.c -o build/temp.macosx-10.9-x86_64-3.9/pyedflib/_extensions/c/edflib.o
pyedflib/_extensions/c/edflib.c:39:9: warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma warning( disable : 4996 ) // ignore unsafe strncpy
^
pyedflib/_extensions/c/edflib.c:40:9: warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma warning( disable : 4244 ) // ignore precision loss
^
pyedflib/_extensions/c/edflib.c:2647:37: warning: format specifies type 'int' but the argument has type 'off_t' (aka 'long long') [-Wformat]
printf("filesize %d != %d*%d+%d ",ftello(inputfile),edfhdr->recordsize, edfhdr->datarecords, edfhdr->hdrsize);
~~ ^~~~~~~~~~~~~~~~~
%lld
pyedflib/_extensions/c/edflib.c:2647:75: warning: format specifies type 'int' but the argument has type 'long long' [-Wformat]
printf("filesize %d != %d*%d+%d ",ftello(inputfile),edfhdr->recordsize, edfhdr->datarecords, edfhdr->hdrsize);
~~ ^~~~~~~~~~~~~~~~~~~
%lld
4 warnings generated.
/opt/concourse/worker/volumes/live/c1a1a6ef-e724-4ad9-52a7-d6d68451dacb/volume/python-split_1631807121927/_build_env/bin/llvm-ar rcs build/temp.macosx-10.9-x86_64-3.9/libc_edf.a build/temp.macosx-10.9-x86_64-3.9/pyedflib/_extensions/c/edflib.o
error: command '/opt/concourse/worker/volumes/live/c1a1a6ef-e724-4ad9-52a7-d6d68451dacb/volume/python-split_1631807121927/_build_env/bin/llvm-ar' failed: No such file or directory
----------------------------------------
ERROR: Failed building wheel for pyEDFlib
Failed to build pyEDFlib
ERROR: Could not build wheels for pyEDFlib which use PEP 517 and cannot be installed directly
Version 0.1.22 OS: MacOS Big Sur (v 11.5.2) Python-3.9
Installation works when using python 3.7
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 19 (4 by maintainers)
Works for me as well. Thanks.
I just retried and installation was successful on my M1 MacBook Pro 🎉
Sure,