jonescompneurolab / hnn

The Human Neocortical Neurosolver (HNN) is a software tool that gives researchers/clinicians the ability to develop/test hypotheses on circuit mechanisms underlying EEG/MEG data.
http://hnn.brown.edu
Other
81 stars 25 forks source link

Problems downloading HNN #314

Open parsecby3-26 opened 2 years ago

parsecby3-26 commented 2 years ago

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

  1. 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 commented 2 years ago

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:

https://github.com/jonescompneurolab/hnn/blob/4bc3e4d51fcf8ae601191861d8b415205fbcaf7f/installer/ubuntu/hnn-ubuntu.sh#L44-L52

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 commented 2 years ago

sure.

But how about adding a few additional requirements to the setup.py here: https://github.com/jonescompneurolab/hnn/blob/4bc3e4d51fcf8ae601191861d8b415205fbcaf7f/setup.py#L40 ? That should fix the install for a majority of cases. You'll need to add PyQt5 and nlopt