htm-community / htm.core

Actively developed Hierarchical Temporal Memory (HTM) community fork (continuation) of NuPIC. Implementation for C++ and Python
http://numenta.org
GNU Affero General Public License v3.0
150 stars 74 forks source link

setup.py install cryptic error when cmake is missing #436

Closed bhargav-95 closed 4 years ago

bhargav-95 commented 5 years ago

Traceback (most recent call last): File "setup.py", line 57, in

File "C:\ProgramData\Anaconda3\lib\runpy.py", line 263, in run_path pkg_name=pkg_name, script_name=fname) File "C:\ProgramData\Anaconda3\lib\runpy.py", line 96, in _run_module_code mod_name, mod_spec, pkg_name, script_name) File "C:\ProgramData\Anaconda3\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\I0000847\Documents\Time series Anomaly detection packages\nupic .cpp-master\bindings\py\packaging\setup.py", line 226, in getExtensionFiles(platform) File "C:\Users\I0000847\Documents\Time series Anomaly detection packages\nupic .cpp-master\bindings\py\packaging\setup.py", line 182, in getExtensionFiles generateExtensions() File "C:\Users\I0000847\Documents\Time series Anomaly detection packages\nupic .cpp-master\bindings\py\packaging\setup.py", line 211, in generateExtensions subprocess.check_call(["cmake", PY_VER, REPO_DIR]) File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 286, in check_call retcode = call(*popenargs, *kwargs) File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 267, in call with Popen(popenargs, **kwargs) as p: File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 707, in init restore_signals, start_new_session) File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 990, in _execute_child

startupinfo)

FileNotFoundError: [WinError 2] The system cannot find the file specified

bhargav-95 commented 5 years ago

python setup.py install --user --force

This is how i try to install (pretty basic) from the root directory of the folder

dkeeney commented 5 years ago

We don't currently support Anaconda although other people in the blog have been able to get it to work.

breznak commented 5 years ago

Thank you both for looking into this! We don't currently have resources and motivation to support Anaconda python builds (this is documented in the Readme), so I'm marking this as won't fix. On the other hand, if @bhargav-95 or someone can put a PR with the support, I'll be open to merging that.

bhargav-95 commented 5 years ago

Hello,

I'm sorry the title is misleading. I'm trying to do a pip install . This is not on anaconda . It is for Python 3.7

On Thu, 2 May, 2019, 20:26 breznak, notifications@github.com wrote:

Closed #436 https://github.com/htm-community/nupic.cpp/issues/436.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/htm-community/nupic.cpp/issues/436#event-2314774466, or mute the thread https://github.com/notifications/unsubscribe-auth/AL67N7AYHIGNYEVWSUMM2VDPTL6JFANCNFSM4HJ4TVMQ .

breznak commented 5 years ago

I'm trying to do a pip install . This is not on anaconda . It is for Python 3.7

pip install nupic.cpp is not supported yet, python setup.py install is. Can you post the command you use to install and the output setup.py should print?

bhargav-95 commented 5 years ago

I navigate to the directory where setup.py is located. Then , type this command..

python setup.py install

bhargav-95 commented 5 years ago

python setup.py install --user --force

This is how i try to install (pretty basic) from the root directory of the folder

breznak commented 5 years ago

ok, that seems correct.

and the output setup.py should print?

bhargav-95 commented 5 years ago

It should say nupic-cpp is successfully installed.

But I get the following error.

python setup.py install

**setup.py: Calling C:\Users\I0000847\Documents\Time series Anomaly detection pack ages\nupic.cpp-master\bindings\py\packaging\setup.py

****Traceback (most recent call last): File "setup.py", line 57, in

File "C:\ProgramData\Anaconda3\lib\runpy.py", line 263, in run_path pkg_name=pkg_name, script_name=fname) File "C:\ProgramData\Anaconda3\lib\runpy.py", line 96, in _run_module_code mod_name, mod_spec, pkg_name, script_name) File "C:\ProgramData\Anaconda3\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\I0000847\Documents\Time series Anomaly detection packages\nupic .cpp-master\bindings\py\packaging\setup.py", line 226, in getExtensionFiles(platform) File "C:\Users\I0000847\Documents\Time series Anomaly detection packages\nupic .cpp-master\bindings\py\packaging\setup.py", line 182, in getExtensionFiles generateExtensions() File "C:\Users\I0000847\Documents\Time series Anomaly detection packages\nupic .cpp-master\bindings\py\packaging\setup.py", line 211, in generateExtensions subprocess.check_call(["cmake", PY_VER, REPO_DIR]) File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 286, in check_call retcode = call(*popenargs, *kwargs) File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 267, in call with Popen(popenargs, kwargs) as p: File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 707, in init restore_signals, start_new_session) File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 990, in _execute_child

startupinfo)

FileNotFoundError: [WinError 2] The system cannot find the file specified****

breznak commented 5 years ago

C:\Users\I0000847\Documents\Time series Anomaly detection pack ages\nupic.cpp-master\bindings\py\packaging\setup.py

can you verify the file exists actually? if it does, can you please try moving nupic.cpp-master to a path without spaces?

bhargav-95 commented 5 years ago

Yes it does. PFA screenshot.

bhargav-95 commented 5 years ago

I renamed the path and tried .. python setup.py install github

bhargav-95 commented 5 years ago

Still the same issue

breznak commented 5 years ago

Yes it does.

no, that is the 1st one, setup.py, the other is in bindings\py\packaging\ ...but I expect it'd exist unless you've manually deleted it

bhargav-95 commented 5 years ago

Yes that exists too

bhargav-95 commented 5 years ago

github2

breznak commented 5 years ago

Can you test with #449 please? or wait once it's merged to master.

bhargav-95 commented 5 years ago

JUst tested with #449

....

C:\Users\I0000847\Documents\ts_ad_packages\nupic.cpp-master_new\nupic.cpp-master

python setup.py install

setup.py: Calling C:\Users\I0000847\Documents\ts_ad_packages\nupic.cpp-master_ne w\nupic.cpp-master\bindings\py\packaging\setup.py

Traceback (most recent call last): File "setup.py", line 57, in

File "C:\ProgramData\Anaconda3\lib\runpy.py", line 263, in run_path pkg_name=pkg_name, script_name=fname) File "C:\ProgramData\Anaconda3\lib\runpy.py", line 96, in _run_module_code mod_name, mod_spec, pkg_name, script_name) File "C:\ProgramData\Anaconda3\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\I0000847\Documents\ts_ad_packages\nupic.cpp-master_new\nupic.cp p-master\bindings\py\packaging\setup.py", line 226, in getExtensionFiles(platform) File "C:\Users\I0000847\Documents\ts_ad_packages\nupic.cpp-master_new\nupic.cp p-master\bindings\py\packaging\setup.py", line 182, in getExtensionFiles generateExtensions() File "C:\Users\I0000847\Documents\ts_ad_packages\nupic.cpp-master_new\nupic.cp p-master\bindings\py\packaging\setup.py", line 211, in generateExtensions subprocess.check_call(["cmake", PY_VER, REPO_DIR]) File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 286, in check_call retcode = call(*popenargs, *kwargs) File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 267, in call with Popen(popenargs, **kwargs) as p: File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 707, in init restore_signals, start_new_session) File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 990, in _execute_child

startupinfo)

FileNotFoundError: [WinError 2] The system cannot find the file specified

breznak commented 5 years ago

File "C:\Users\I0000847\Documents\ts_ad_packages\nupic.cpp-master_new\nupic.cp p-master\bindings\py\packaging\setup.py", line 211, in generateExtensions subprocess.check_call(["cmake", PY_VER, REPO_DIR])

seems setup.py (even the one in packaging/) is running.

bhargav-95 commented 5 years ago

Nope cmake is not installed

bhargav-95 commented 5 years ago

PY_VER : -DBINDING_BUILD=Python3 REPO_DIR : /home not /home/bindings/py/packaging/ where the other setup.py resides

breznak commented 5 years ago

Nope cmake is not installed

well, if you see README, cmake is a requirement! Once you install it, this should run fine

breznak commented 5 years ago

@dkeeney to avoid problems like this, can we check in setup.py that the cmake binary exists and give a clearer error message if not?

dkeeney commented 5 years ago

Sounds like a reasonable thing to do.

breznak commented 4 years ago

We do (maybe) support anaconda python and cmake is a part of pip dependencies.