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

Problems downloading HNN #314

Open
parsecby3-26 opened this issue Jan 8, 2022 · 2 comments
Open

Problems downloading HNN #314

parsecby3-26 opened this issue Jan 8, 2022 · 2 comments

Comments

@parsecby3-26
Copy link

parsecby3-26 commented Jan 8, 2022

Referred to both types of downloading commands from https://jonescompneurolab.github.io/hnn/installer/ubuntu/ , had problems
Device specs:
Distributor ID: Ubuntu
Description: Ubuntu 21.10
Release: 21.10
Codename: impish

  1. Command:
curl --remote-name https://raw.githubusercontent.com/jonescompneurolab/hnn/master/installer/ubuntu/hnn-ubuntu.sh
bash hnn-ubuntu.sh

Output:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5535 100 5535 0 0 11272 0 --:--:-- --:--:-- --:--:-- 11295
Starting installation of HNN on dectected Ubuntu OS: impish
Output in log file: ubuntu_install.log
Error: Ubuntu distribtion impish not supported

******* install script failed. output from log below *******
Starting installation of HNN on dectected Ubuntu OS: impish
Error: Ubuntu distribtion impish not supported
2. Command:

curl --remote-name https://github.com/jonescompneurolab/hnn/releases/latest/download/hnn.tar.gz
tar -x --strip-components 1 -f hnn.tar.gz -C hnn_source_code
cd hnn_source_code
make
python3 hnn.py

Output:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 142 100 142 0 0 379 0 --:--:-- --:--:-- --:--:-- 379
tar: This does not look like a tar archive

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
bash: cd: hnn_source_code: No such file or directory
make: *** No targets specified and no makefile found. Stop.
python3: can't open file '/home/karthik/hnn.py': [Errno 2] No such file or directory

@ntolley
Copy link
Contributor

ntolley commented Jan 8, 2022

Thanks for bringing this to our attention! Currently our installer only supports LTS versions of ubuntu (difficult to troubleshoot problems that might cropup on intermediate versions). If you feel comfortable editing the install script, these are the relevant lines:

[[ $PYTHON_VERSION ]] || {
if [[ "$DISTRIB" =~ "xenial" ]]; then
PYTHON_VERSION=3.5
elif [[ "$DISTRIB" =~ "bionic" ]]; then
PYTHON_VERSION=3.6
elif [[ "$DISTRIB" =~ "disco" ]]; then
PYTHON_VERSION=3.7
elif [[ "$DISTRIB" =~ "focal" ]]; then
PYTHON_VERSION=3.8

I believe you simply need to add this below L52, but I don't have a version of impish to test this at the moment.

elif [[ "$DISTRIB" =~ "impish" ]]; then 
     PYTHON_VERSION=3.8 

@jasmainak should we consider relaxing the LTS requirement? There aren't that many intermediate releases between xenial and focal: https://en.wikipedia.org/wiki/Ubuntu_version_history

@jasmainak
Copy link
Collaborator

sure.

But how about adding a few additional requirements to the setup.py here:

hnn/setup.py

Line 40 in 4bc3e4d

install_requires=['hnn-core']
? That should fix the install for a majority of cases. You'll need to add PyQt5 and nlopt

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

3 participants