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

Cannot Install On WSL Ubuntu 24.04.1 #1028

Open
GaoHengSiang opened this issue Oct 15, 2024 · 4 comments
Open

Cannot Install On WSL Ubuntu 24.04.1 #1028

GaoHengSiang opened this issue Oct 15, 2024 · 4 comments

Comments

@GaoHengSiang
Copy link

Hello,
I am attempting to install htm.core on Windows Subsystem for Linux (WSL), which is running Ubuntu 24.04.1 (the python version is 3.12.3). Here is what I've done:
First, I ran these commands:
sudo apt update
sudo apt upgrade
then I installed virtualenv and python3.12.4 from source. The rest of the commands are:
virtualenv htm_venv --python=python3.12.4
source htm_venv/bin/activate
git clone https://github.com/htm-community/htm.core
python -m ensurepip --upgrade
python -m pip install setuptools packaging
cd htm.core/

I edited line 7 of requirements.txt, changing
numpy==1.23 to numpy ~= 1.26.4
Finally:
pip install -r requirements.txt
python setup.py install
The installation failed with this error:
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gmake[1]: *** [CMakeFiles/Makefile2:179: src/CMakeFiles/LibrarySource.dir/all] Error 2 gmake: *** [Makefile:156: all] Error 2 Traceback (most recent call last): File "/home/hansgao/project/htm.core/setup.py", line 414, in <module> getExtensionFiles(platform, build_type) File "/home/hansgao/project/htm.core/setup.py", line 239, in getExtensionFiles generateExtensions(platform, build_type) File "/home/hansgao/project/htm.core/setup.py", line 305, in generateExtensions subprocess.check_call(["cmake", "--build", ".", "--target", "install", "--config", build_type, "--", "-j", "4"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '4']' returned non-zero exit status 2.

I tried to install with python3.12.3 too, and the "-dev" versions of python were installed in both cases, but the same error persists
Please let me know if you require more information!

@fcr
Copy link
Collaborator

fcr commented Oct 15, 2024

htm.core doesn't support Python 3.12 yet.

@dkeeney
Copy link

dkeeney commented Oct 16, 2024

I am traveling and I will not be able to work on this until mid Nov. If anyone else wants to take a crack at this it would be appreciated. See issue #1024 and #1025

@heckop
Copy link

heckop commented Oct 20, 2024

@fcr Please help me with this issue:
Screenshot 2024-10-20 at 6 36 45 PM

dependencies of htm.core is not available on pypi

@fcr
Copy link
Collaborator

fcr commented Oct 20, 2024

@heckop as mentioned above, Python 3.12 is not yet supported by htm.core. You have Python 3.12 installed!

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

4 participants