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 Help #103

Open
loulou-99 opened this issue Dec 14, 2022 · 13 comments
Open

Installation Help #103

loulou-99 opened this issue Dec 14, 2022 · 13 comments

Comments

@loulou-99
Copy link

loulou-99 commented Dec 14, 2022

Hi there,

Looking for some help with this installation. Please see output. Thank you!
pnlNipype installation output.txt

@tashrifbillah
Copy link
Collaborator

pynrrd folks upgraded from Python 3.6. This is the error you ran into:

ERROR: Package 'pynrrd' requires a different Python: 3.6.15 not in '>=3.7'
                                                                              failed
CondaEnvException: Pip failed

Remove all = version string from https://github.com/pnlbwh/pnlpipe/blob/7f5128c0070a96b413fd3fa8686f67e953909f57/python_env/environment36.yml#L7 and try again.

@loulou-99
Copy link
Author

I seemed to have the same issue after a few days of running. Wondering if I should remove = from other rows?

This is my environment36.yml file:

name: pnlpipe3

channels:

  • conda-forge

dependencies:

@tashrifbillah
Copy link
Collaborator

Sure, remove them all and see if the environment builds for you.

@loulou-99
Copy link
Author

loulou-99 commented Dec 28, 2022

Thanks - this fixed the issue. Could you advise how to fix this issue for installing the rest of the software? Thank you.

(pnlpipe3) jennifer@dart:~/pnlNipype> cmd/install.py UKFTractography
Cloning into 'ukftractography'...
fatal: unable to connect to github.com:
github.com[0: 140.82.112.4]: errno=Connection timed out

Traceback (most recent call last):
  File "/home/jennifer/pnlNipype/cmd/install.py", line 31, in <module>
    SoftwareCommand()
  File "/home/jennifer/miniconda3/envs/pnlpipe3/lib/python3.10/site-packages/plumbum/cli/application.py", line 177, in __new__
    return cls.run()
  File "/home/jennifer/miniconda3/envs/pnlpipe3/lib/python3.10/site-packages/plumbum/cli/application.py", line 634, in run
    retcode = inst.main(*tailargs)
  File "/home/jennifer/pnlNipype/cmd/install.py", line 28, in main
    softwareModule.make()
  File "/home/jennifer/pnlNipype/pnlpipe_software/UKFTractography.py", line 20, in make
    repo = downloadGithubRepo('pnlbwh/ukftractography', commit)
  File "/home/jennifer/pnlNipype/pnlpipe_software/__init__.py", line 102, in downloadGithubRepo
    git['clone', url] & FG
  File "/home/jennifer/miniconda3/envs/pnlpipe3/lib/python3.10/site-packages/plumbum/commands/modifiers.py", line 145, in __rand__
    cmd(
  File "/home/jennifer/miniconda3/envs/pnlpipe3/lib/python3.10/site-packages/plumbum/commands/base.py", line 113, in __call__
    return self.run(args, **kwargs)[1]
  File "/home/jennifer/miniconda3/envs/pnlpipe3/lib/python3.10/site-packages/plumbum/commands/base.py", line 252, in run
    return p.run()
  File "/home/jennifer/miniconda3/envs/pnlpipe3/lib/python3.10/site-packages/plumbum/commands/base.py", line 215, in runner
    return run_proc(p, retcode, timeout)
  File "/home/jennifer/miniconda3/envs/pnlpipe3/lib/python3.10/site-packages/plumbum/commands/processes.py", line 304, in run_proc
    return _check_process(proc, retcode, timeout, stdout, stderr)
  File "/home/jennifer/miniconda3/envs/pnlpipe3/lib/python3.10/site-packages/plumbum/commands/processes.py", line 17, in _check_process
    proc.verify(retcode, timeout, stdout, stderr)
  File "/home/jennifer/miniconda3/envs/pnlpipe3/lib/python3.10/site-packages/plumbum/machines/base.py", line 27, in verify
    raise ProcessExecutionError(
plumbum.commands.processes.ProcessExecutionError: Unexpected exit code: 128
Command line: | /home/jennifer/miniconda3/envs/pnlpipe3/bin/git clone git://github.com/pnlbwh/ukftractography.git

@tashrifbillah
Copy link
Collaborator

/home/jennifer/miniconda3/envs/pnlpipe3/bin/git clone git://github.com/pnlbwh/ukftractography.git

Does this raise the same error directly on your terminal?

@loulou-99
Copy link
Author

loulou-99 commented Dec 28, 2022

Yes.

Output:

(pnlpipe3) jennifer@dart:~> /home/jennifer/miniconda3/envs/pnlpipe3/bin/git clone git://github.com/pnlbwh/ukftractography.git
Cloning into 'ukftractography'...
fatal: unable to connect to github.com:
github.com[0: 140.82.113.4]: errno=Connection timed out

@tashrifbillah
Copy link
Collaborator

The problem is that your shell is using git protocol as opposed to intended https protocol to clone GitHub and I do not understand why it is doing so. It did not happen for other users.

@loulou-99
Copy link
Author

Thanks, I will see if our developers can assist in a work around.

@tashrifbillah
Copy link
Collaborator

Hi, I have been able to reproduce your issue at our end. It appears that something has changed with GitHub. Will follow up with a fix.

@tashrifbillah
Copy link
Collaborator

Jennifer:

I want you to do two things:

cd ~/pnlNipype/
git pull origin master
git submodule update

Now my fix will be available in your computer. Then you can resume installation:

cd ~/pnlNipype/
cmd/install.py UKFTractography

@loulou-99
Copy link
Author

Thanks.

I was successful with dcm2niix and tract_querier, but did throw errors with UKFTractography and ANTs (outputs attached).

UKF - dec30.txt
ANTs - dec30.txt

@tashrifbillah
Copy link
Collaborator

Jennifer, consider using our pre-built docker or singularity containers. The errors you are running into are user-specific and require good programming knowledge on part of the user to solve.

@loulou-99
Copy link
Author

Hi there, I was able to reproduce these errors on a separate machine/OS. Please confirm that this error is user-specific.

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