Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issue #2

Open
mcdoans opened this issue Feb 24, 2022 · 1 comment
Open

Installation issue #2

mcdoans opened this issue Feb 24, 2022 · 1 comment

Comments

@mcdoans
Copy link

mcdoans commented Feb 24, 2022

Hi @jove1, this is such a nice project! But I am still stuck as I wonder if I missed something in the installation.
I converted to python2, installing numpy scipy matplotlib, and it demanded C ++ 9.0 before i encountered this error.

Installing collected packages: ae
    Running setup.py install for ae ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\python27\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\dy~1\\appdata\\local\\temp\\pip-install-bqlgl2\\ae\\setup.py'"'"'; __file__='"'"'c:\\users\\dy~1\\appdata\\local\\temp\\pip-install-bqlgl2\\ae\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:\users\dy~1\appdata\local\temp\pip-record-qy3ook\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python27\Include\ae'
         cwd: c:\users\dy~1\appdata\local\temp\pip-install-bqlgl2\ae\
    Complete output (22 lines):
    fatal: not a git repository (or any of the parent directories): .git
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-2.7
    creating build\lib.win-amd64-2.7\ae
    copying src\ae\ae.py -> build\lib.win-amd64-2.7\ae
    copying src\ae\askc_wrap.py -> build\lib.win-amd64-2.7\ae
    copying src\ae\version.py -> build\lib.win-amd64-2.7\ae
    copying src\ae\__init__.py -> build\lib.win-amd64-2.7\ae
    copying src\ae\event_detector.doctest.rst -> build\lib.win-amd64-2.7\ae
    running build_ext
    building 'ae.event_detector' extension
    creating build\temp.win-amd64-2.7
    creating build\temp.win-amd64-2.7\Release
    creating build\temp.win-amd64-2.7\Release\src
    creating build\temp.win-amd64-2.7\Release\src\ae
    C:\Users\Dy\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -Ic:\python27\include -Ic:\python27\PC /Tcsrc/ae/event_detector.c /Fobuild\temp.win-amd64-2.7\Release\src/ae/event_detector.obj
    event_detector.c
    src/ae/event_detector.c(2) : fatal error C1083: Cannot open include file: 'numpy/arrayobject.h': No such file or directory
    error: command 'C:\\Users\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python27\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\dy~1\\appdata\\local\\temp\\pip-install-bqlgl2\\ae\\setup.py'"'"'; __file__='"'"'c:\\users\\dy~1\\appdata\\local\\temp\\pip-install-bqlgl2\\ae\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:\users\dy~1\appdata\local\temp\pip-record-qy3ook\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python27\Include\ae' Check the logs for full command output.

please advise, thank you.

@mcdoans mcdoans changed the title installation issue Installation issue Feb 24, 2022
@jove1
Copy link
Owner

jove1 commented Feb 24, 2022

I never tried compiling this on windows.
The error message says it needs numpy/arrayobject.h, indeed you need numpy development files.
On linux I would try to pass CFLAGS=-I/path/to/numpy/header/files environment variable.
I don't know what is visual c equivalent.

Myself, I've cross compiled the c module on linux. It has been painful to setup and I don't have the setup anymore.
For windows installs I use binary package. Its not up to date, but there were no changes in c module.
I just replace the python files with new versions.

Anyway the project is in need of some serious maintenance, which now I don't have time to do:
python3
get rid of bloated askc dependencies
find a portable way to distribute optimized code (maybe numba.jit instead of c module)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants