Fmriprep: assert info_dir, "%s .dist-info directory not found" % req AssertionError: fmriprep-docker .dist-info directory not found

Created on 20 Jun 2019  ยท  20Comments  ยท  Source: nipreps/fmriprep

Hello fmriprep experts,

I am trying to install fmriprep-docker in ubuntu16.04.
I have installed all the dependencies required for fmriprep-docker.

When I did "pip install --user --upgrade fmriprep-docker", I am getting the following error:' WARNING: The directory '/home/naren123/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/home/naren123/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting fmriprep-docker
Installing collected packages: fmriprep-docker
ERROR: Exception:
Traceback (most recent call last):
File "/home/naren123/anaconda3/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 178, in main
status = self.run(options, args)
File "/home/naren123/anaconda3/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 414, in run
use_user_site=options.use_user_site,
File "/home/naren123/anaconda3/lib/python3.6/site-packages/pip/_internal/req/__init__.py", line 58, in install_given_reqs
**kwargs
File "/home/naren123/anaconda3/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 920, in install
use_user_site=use_user_site, pycompile=pycompile,
File "/home/naren123/anaconda3/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 448, in move_wheel_files
warn_script_location=warn_script_location,
File "/home/naren123/anaconda3/lib/python3.6/site-packages/pip/_internal/wheel.py", line 428, in move_wheel_files
assert info_dir, "%s .dist-info directory not found" % req
AssertionError: fmriprep-docker .dist-info directory not found'

If any solutions available for the above problem, please post me.

Thank you
-Korann

installation question

Most helpful comment

I've seen that kind of error before and never looked into the original cause. But they usually go away adding the option --no-cache-dir to your command line:

sudo -H pip install --user --upgrade --no-cache-dir fmriprep-docker

EDITED: the right argument is --no-cache-dir rather than --no-cache as I wrote before.

All 20 comments

I would try pip install --upgrade --user pip.

Thank you, Chris, for your response

I tried long back it didn't work though.
Anything else other than the above-mentioned solution.

Thanks
-Korann

On Thu, Jun 20, 2019 at 6:15 PM Chris Markiewicz notifications@github.com
wrote:

I would try pip install --upgrade --user pip.

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/poldracklab/fmriprep/issues/1676?email_source=notifications&email_token=AFP3HECSVGGW4POBEGVMN4LP3N3V5A5CNFSM4HZSTMGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYFJVIQ#issuecomment-504011426,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFP3HEBZAU6T4FJQM3I4OELP3N3V5ANCNFSM4HZSTMGA
.

It looks like this is a problem related to The directory '/home/naren123/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory.

Search: pip ".dist-info directory not found"

You'll need to fix your Python/pip installation or install a distribution like Anaconda.

Hello Chris,

The '.cache' is hidden file and root doesn't have access to it. Any other
way to sort it out? I tried my best to sort out.

Thanks & regards
-Korann

On Thu, Jun 20, 2019 at 6:34 PM Chris Markiewicz notifications@github.com
wrote:

It looks like this is a problem related to The directory
'/home/naren123/.cache/pip/http' or its parent directory is not owned by
the current user and the cache has been disabled. Please check the
permissions and owner of that directory.

Search: pip ".dist-info directory not found"
https://www.google.com/search?hl=en&q=pip%20%22.dist%2Dinfo%20directory%20not%20found%22

You'll need to fix your Python/pip installation or install a distribution
like Anaconda https://www.anaconda.com/distribution/.

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/poldracklab/fmriprep/issues/1676?email_source=notifications&email_token=AFP3HEBJSZZ6ZIO7CWKP3EDP3N57FA5CNFSM4HZSTMGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYFLIDY#issuecomment-504017935,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFP3HED2PQJC3XOOR5DDS3TP3N57FANCNFSM4HZSTMGA
.

Hello Chris,

When executing this command 'sudo -H pip install --user --upgrade
fmriprep-docker', I got following error:

"Collecting fmriprep-docker
Downloading
https://files.pythonhosted.org/packages/1e/7c/5d873dd3c8c67b9072addba434a2686e3571eabef97304f16c14844ae80c/fmriprep-docker-1.4.0.tar.gz
WARNING: Generating metadata for package fmriprep-docker produced
metadata for project name unknown. Fix your #egg=fmriprep-docker fragments.
Building wheels for collected packages: unknown, unknown
Building wheel for unknown (setup.py) ... done
Stored in directory:
/root/.cache/pip/wheels/ee/1a/04/aa4b02a87dd7bfa3c9684ef3a87f77d557dede6af3143840e7
Building wheel for unknown (setup.py) ... error
ERROR: Complete output from command /usr/bin/python3 -u -c 'import
setuptools,
tokenize;__file__='"'"'/tmp/pip-install-qy_ormrx/unknown/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
bdist_wheel -d /tmp/pip-wheel-_1vs0usa --python-tag cp35:
ERROR: Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.5/tokenize.py", line 454, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory:
'/tmp/pip-install-qy_ormrx/unknown/setup.py'


ERROR: Failed building wheel for unknown
Running setup.py clean for unknown
ERROR: Complete output from command /usr/bin/python3 -u -c 'import
setuptools,
tokenize;__file__='"'"'/tmp/pip-install-qy_ormrx/unknown/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
clean --all:
ERROR: Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.5/tokenize.py", line 454, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory:
'/tmp/pip-install-qy_ormrx/unknown/setup.py'


ERROR: Failed cleaning build dir for unknown
Successfully built unknown
Failed to build unknown
Installing collected packages: unknown
Successfully installed unknown-0.0.0 "

Though I have access to '.cache' file, I am getting above error. Any help
would mean a lot!!

Thanks & regards
-Korann

On Sat, Jun 22, 2019 at 2:31 PM vittal korann vittalkorann@gmail.com
wrote:

Hello Chris,

The '.cache' is hidden file and root doesn't have access to it. Any other
way to sort it out? I tried my best to sort out.

Thanks & regards
-Korann

On Thu, Jun 20, 2019 at 6:34 PM Chris Markiewicz notifications@github.com
wrote:

It looks like this is a problem related to The directory
'/home/naren123/.cache/pip/http' or its parent directory is not owned by
the current user and the cache has been disabled. Please check the
permissions and owner of that directory.

Search: pip ".dist-info directory not found"
https://www.google.com/search?hl=en&q=pip%20%22.dist%2Dinfo%20directory%20not%20found%22

You'll need to fix your Python/pip installation or install a distribution
like Anaconda https://www.anaconda.com/distribution/.

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/poldracklab/fmriprep/issues/1676?email_source=notifications&email_token=AFP3HEBJSZZ6ZIO7CWKP3EDP3N57FA5CNFSM4HZSTMGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYFLIDY#issuecomment-504017935,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFP3HED2PQJC3XOOR5DDS3TP3N57FANCNFSM4HZSTMGA
.

I've seen that kind of error before and never looked into the original cause. But they usually go away adding the option --no-cache-dir to your command line:

sudo -H pip install --user --upgrade --no-cache-dir fmriprep-docker

EDITED: the right argument is --no-cache-dir rather than --no-cache as I wrote before.

Thank you, Chris, for your suggestion.

I have tried "sudo -H pip install --user --upgrade --no-cache
fmriprep-docker" and below is the error message:

*" *
sudo -H pip install --user --upgrade --no-cache fmriprep-docker
Collecting fmriprep-docker
Downloading
https://files.pythonhosted.org/packages/1e/7c/5d873dd3c8c67b9072addba434a2686e3571eabef97304f16c14844ae80c/fmriprep-docker-1.4.0.tar.gz
WARNING: Generating metadata for package fmriprep-docker produced
metadata for project name unknown. Fix your #egg=fmriprep-docker fragments.
Building wheels for collected packages: unknown, unknown
Building wheel for unknown (setup.py) ... done
Stored in directory:
/tmp/pip-ephem-wheel-cache-5b48h2bi/wheels/ee/1a/04/aa4b02a87dd7bfa3c9684ef3a87f77d557dede6af3143840e7
Building wheel for unknown (setup.py) ... error
ERROR: Complete output from command /usr/bin/python3 -u -c 'import
setuptools,
tokenize;__file__='"'"'/tmp/pip-install-8yqcru5b/unknown/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
bdist_wheel -d /tmp/pip-wheel-23huay_2 --python-tag cp35:
ERROR: Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.5/tokenize.py", line 454, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory:
'/tmp/pip-install-8yqcru5b/unknown/setup.py'


ERROR: Failed building wheel for unknown
Running setup.py clean for unknown
ERROR: Complete output from command /usr/bin/python3 -u -c 'import
setuptools,
tokenize;__file__='"'"'/tmp/pip-install-8yqcru5b/unknown/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
clean --all:
ERROR: Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.5/tokenize.py", line 454, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory:
'/tmp/pip-install-8yqcru5b/unknown/setup.py'


ERROR: Failed cleaning build dir for unknown
Successfully built unknown
Failed to build unknown
Installing collected packages: unknown
Found existing installation: UNKNOWN 0.0.0
Uninstalling UNKNOWN-0.0.0:
Successfully uninstalled UNKNOWN-0.0.0
Successfully installed unknown-0.0.0
"

Are any other solutions available for this? If so please let me know.

Thanks & regards
-Korann

On Mon, Jun 24, 2019 at 12:44 AM Oscar Esteban notifications@github.com
wrote:

I've seen that kind of error before and never looked into the original
cause. But they usually go away adding the option --no-cache to your
command line:

sudo -H pip install --user --upgrade --no-cache fmriprep-docker

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/poldracklab/fmriprep/issues/1676?email_source=notifications&email_token=AFP3HEAWMV7OZSDB5RADFY3P37DQFA5CNFSM4HZSTMGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYLFALI#issuecomment-504778797,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFP3HEE33TVPDXC6KY6PVJ3P37DQFANCNFSM4HZSTMGA
.

Hi Korann,

Sorry for the confusion. The right argument is --no-cache-dir.

sudo -H pip install --user --upgrade --no-cache-dir fmriprep-docker

(you are missing that last -dir bit)

Thank you, Esteban, for your help.

But the above-mentioned command also threw an error and the same given
below:

" sudo -H pip install --user --upgrade --no-cache-dir fmriprep-docker

Collecting fmriprep-docker
Downloading
https://files.pythonhosted.org/packages/1e/7c/5d873dd3c8c67b9072addba434a2686e3571eabef97304f16c14844ae80c/fmriprep-docker-1.4.0.tar.gz
WARNING: Generating metadata for package fmriprep-docker produced
metadata for project name unknown. Fix your #egg=fmriprep-docker fragments.
Building wheels for collected packages: unknown, unknown
Building wheel for unknown (setup.py) ... done
Stored in directory:
/tmp/pip-ephem-wheel-cache-km0ejqrd/wheels/ee/1a/04/aa4b02a87dd7bfa3c9684ef3a87f77d557dede6af3143840e7
Building wheel for unknown (setup.py) ... error
ERROR: Complete output from command /usr/bin/python3 -u -c 'import
setuptools,
tokenize;__file__='"'"'/tmp/pip-install-wcd4nk0v/unknown/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
bdist_wheel -d /tmp/pip-wheel-6au__q3z --python-tag cp35:
ERROR: Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.5/tokenize.py", line 454, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory:
'/tmp/pip-install-wcd4nk0v/unknown/setup.py'


ERROR: Failed building wheel for unknown
Running setup.py clean for unknown
ERROR: Complete output from command /usr/bin/python3 -u -c 'import
setuptools,
tokenize;__file__='"'"'/tmp/pip-install-wcd4nk0v/unknown/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
clean --all:
ERROR: Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.5/tokenize.py", line 454, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory:
'/tmp/pip-install-wcd4nk0v/unknown/setup.py'


ERROR: Failed cleaning build dir for unknown
Successfully built unknown
Failed to build unknown
Installing collected packages: unknown
Found existing installation: UNKNOWN 0.0.0
Uninstalling UNKNOWN-0.0.0:
Successfully uninstalled UNKNOWN-0.0.0
Successfully installed unknown-0.0.0 "

Further solution?
Thanks & regards
-Korann

On Mon, Jun 24, 2019 at 9:30 PM Oscar Esteban notifications@github.com
wrote:

Hi Korann,

Sorry for the confusion. The right argument is --no-cache-dir.

sudo -H pip install --user --upgrade --no-cache-dir fmriprep-docker

(you are missing that last -dir bit)

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/poldracklab/fmriprep/issues/1676?email_source=notifications&email_token=AFP3HEH2D4E3KM5TVQOZ4RDP4DVSBA5CNFSM4HZSTMGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYNM27Y#issuecomment-505073023,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFP3HEDE4EFYS2BKSUG7H6LP4DVSBANCNFSM4HZSTMGA
.

This is very strange I'm able to install this package from a variety of virtual environments and have not seen anything like this. Can you also try pip install --upgrade setuptools?

Thanks, Chris for a timely response. It did work for me.

"sudo -H pip install --upgrade setuptools"

"sudo -H pip install --user --upgrade --no-cache-dir fmriprep-docker"

The above 2 commands worked for me and here is the terminal output:
"Collecting fmriprep-docker
Downloading
https://files.pythonhosted.org/packages/1e/7c/5d873dd3c8c67b9072addba434a2686e3571eabef97304f16c14844ae80c/fmriprep-docker-1.4.0.tar.gz
Building wheels for collected packages: fmriprep-docker
Building wheel for fmriprep-docker (setup.py) ... done
Stored in directory:
/tmp/pip-ephem-wheel-cache-d2b8288t/wheels/ee/1a/04/aa4b02a87dd7bfa3c9684ef3a87f77d557dede6af3143840e7
Successfully built fmriprep-docker
Installing collected packages: fmriprep-docker
WARNING: The script fmriprep-docker is installed in '/root/.local/bin'
which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this
warning, use --no-warn-script-location.
Successfully installed fmriprep-docker-1.4.0"

Until I get the first output from the fmriprep pipeline, will keep bugging
you :)

With regards
-Korann

On Tue, Jun 25, 2019 at 8:19 PM Chris Markiewicz notifications@github.com
wrote:

This is very strange I'm able to install this package from a variety of
virtual environments and have not seen anything like this. Can you also try pip
install --upgrade setuptools?

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/poldracklab/fmriprep/issues/1676?email_source=notifications&email_token=AFP3HEC55KN6I3IFVWNMBB3P4IWBBA5CNFSM4HZSTMGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYQQBWQ#issuecomment-505479386,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFP3HEANSZKBF5LJOADXRPDP4IWBBANCNFSM4HZSTMGA
.

Hello Chris,

After installing fmriprep, when trying to execute the command:
"fmriprep-docker '/home/naren123/Desktop/TO_BIDS/sub-01'
'/home/naren123/Desktop/TO_BIDS/derivatives' participant
--participant-label sub-01 --fs-license-file
'/usr/local/freesurfer/license.txt' --ignore slicetiming"
'fmriprep-docker: command not found'

whereis docker

docker: /usr/bin/docker /etc/docker /usr/share/man/man1/docker.1.gz

sudo -H python -m pip install --upgrade fmriprep-dockerRequirement

already up-to-date: fmriprep-docker in
/root/.local/lib/python3.5/site-packages (1.4.0)

Good if you let me know the solution for the above!

Thanks & regards
-Korann

On Wed, Jun 26, 2019 at 5:51 PM vittal korann vittalkorann@gmail.com
wrote:

Thanks, Chris for a timely response. It did work for me.

"sudo -H pip install --upgrade setuptools"

"sudo -H pip install --user --upgrade --no-cache-dir fmriprep-docker"

The above 2 commands worked for me and here is the terminal output:
"Collecting fmriprep-docker
Downloading
https://files.pythonhosted.org/packages/1e/7c/5d873dd3c8c67b9072addba434a2686e3571eabef97304f16c14844ae80c/fmriprep-docker-1.4.0.tar.gz
Building wheels for collected packages: fmriprep-docker
Building wheel for fmriprep-docker (setup.py) ... done
Stored in directory:
/tmp/pip-ephem-wheel-cache-d2b8288t/wheels/ee/1a/04/aa4b02a87dd7bfa3c9684ef3a87f77d557dede6af3143840e7
Successfully built fmriprep-docker
Installing collected packages: fmriprep-docker
WARNING: The script fmriprep-docker is installed in '/root/.local/bin'
which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress
this warning, use --no-warn-script-location.
Successfully installed fmriprep-docker-1.4.0"

Until I get the first output from the fmriprep pipeline, will keep bugging
you :)

With regards
-Korann

On Tue, Jun 25, 2019 at 8:19 PM Chris Markiewicz notifications@github.com
wrote:

This is very strange I'm able to install this package from a variety of
virtual environments and have not seen anything like this. Can you also try pip
install --upgrade setuptools?

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/poldracklab/fmriprep/issues/1676?email_source=notifications&email_token=AFP3HEC55KN6I3IFVWNMBB3P4IWBBA5CNFSM4HZSTMGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYQQBWQ#issuecomment-505479386,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFP3HEANSZKBF5LJOADXRPDP4IWBBANCNFSM4HZSTMGA
.

Also Chris,

When type this command: "find ~/.local -name fmriprep-docker"
It does not display it's path for me.

root@Milkyway:~# find ~/.local -name fmriprep-docker
root@Milkyway:~#

Something wrong with installation or the path.I am not able to figure it
out.
Any suggestions?

Thanks & regards
-Korann

On Thu, Jun 27, 2019 at 1:29 PM vittal korann vittalkorann@gmail.com
wrote:

Hello Chris,

After installing fmriprep, when trying to execute the command:
"fmriprep-docker '/home/naren123/Desktop/TO_BIDS/sub-01'
'/home/naren123/Desktop/TO_BIDS/derivatives' participant
--participant-label sub-01 --fs-license-file
'/usr/local/freesurfer/license.txt' --ignore slicetiming"
'fmriprep-docker: command not found'

whereis docker

docker: /usr/bin/docker /etc/docker /usr/share/man/man1/docker.1.gz

sudo -H python -m pip install --upgrade fmriprep-dockerRequirement

already up-to-date: fmriprep-docker in
/root/.local/lib/python3.5/site-packages (1.4.0)

Good if you let me know the solution for the above!

Thanks & regards
-Korann

On Wed, Jun 26, 2019 at 5:51 PM vittal korann vittalkorann@gmail.com
wrote:

Thanks, Chris for a timely response. It did work for me.

"sudo -H pip install --upgrade setuptools"

"sudo -H pip install --user --upgrade --no-cache-dir fmriprep-docker"

The above 2 commands worked for me and here is the terminal output:
"Collecting fmriprep-docker
Downloading
https://files.pythonhosted.org/packages/1e/7c/5d873dd3c8c67b9072addba434a2686e3571eabef97304f16c14844ae80c/fmriprep-docker-1.4.0.tar.gz
Building wheels for collected packages: fmriprep-docker
Building wheel for fmriprep-docker (setup.py) ... done
Stored in directory:
/tmp/pip-ephem-wheel-cache-d2b8288t/wheels/ee/1a/04/aa4b02a87dd7bfa3c9684ef3a87f77d557dede6af3143840e7
Successfully built fmriprep-docker
Installing collected packages: fmriprep-docker
WARNING: The script fmriprep-docker is installed in '/root/.local/bin'
which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress
this warning, use --no-warn-script-location.
Successfully installed fmriprep-docker-1.4.0"

Until I get the first output from the fmriprep pipeline, will keep
bugging you :)

With regards
-Korann

On Tue, Jun 25, 2019 at 8:19 PM Chris Markiewicz <
[email protected]> wrote:

This is very strange I'm able to install this package from a variety of
virtual environments and have not seen anything like this. Can you also try pip
install --upgrade setuptools?

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/poldracklab/fmriprep/issues/1676?email_source=notifications&email_token=AFP3HEC55KN6I3IFVWNMBB3P4IWBBA5CNFSM4HZSTMGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYQQBWQ#issuecomment-505479386,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFP3HEANSZKBF5LJOADXRPDP4IWBBANCNFSM4HZSTMGA
.

Yeah, sorry, it looks like you've got your Python environments fairly messed up, with things installed in /root/.local, which seems pretty useless. I think we gave you some bad advice. Let's uninstall:

pip uninstall fmriprep-docker
sudo -H pip uninstall fmriprep-docker

Let's upgrade your installation tools in your base environment, and we can use root to do this. Note the lack of --user.

sudo -H python -m pip install --upgrade pip setuptools wheel

Now, if you want, you can install with sudo -H, or you can install with --user, but don't do both, or you'll end up back in /root/.local. I would suggest:

pip install --upgrade --user fmriprep-docker

Now that should be installed in your main Python environment, but in a user-controlled directory, probably $HOME/.local/bin.

Thanks, Chris for the suggestion. But no luck though with the commands.
I uninstalled fmriprep-docker and tried with your commands. Below are the
error messages for both commands: sudo -H and --user

1.
"pip install --upgrade --user fmriprep-docker
WARNING: The directory '/home/naren123/.cache/pip/http' or its parent
directory is not owned by the current user and the cache has been disabled.
Please check the permissions and owner of that directory. If executing pip
with sudo, you may want sudo's -H flag.
WARNING: The directory '/home/naren123/.cache/pip' or its parent directory
is not owned by the current user and caching wheels has been disabled.
check the permissions and owner of that directory. If executing pip with
sudo, you may want sudo's -H flag.
Collecting fmriprep-docker
Installing collected packages: fmriprep-docker
ERROR: Exception:
Traceback (most recent call last):
File
"/home/naren123/anaconda3/lib/python3.6/site-packages/pip/_internal/cli/base_command.py",
line 178, in main
status = self.run(options, args)
File
"/home/naren123/anaconda3/lib/python3.6/site-packages/pip/_internal/commands/install.py",
line 414, in run
use_user_site=options.use_user_site,
File
"/home/naren123/anaconda3/lib/python3.6/site-packages/pip/_internal/req/__init__.py",
line 58, in install_given_reqs
**kwargs
File
"/home/naren123/anaconda3/lib/python3.6/site-packages/pip/_internal/req/req_install.py",
line 920, in install
use_user_site=use_user_site, pycompile=pycompile,
File
"/home/naren123/anaconda3/lib/python3.6/site-packages/pip/_internal/req/req_install.py",
line 448, in move_wheel_files
warn_script_location=warn_script_location,
File
"/home/naren123/anaconda3/lib/python3.6/site-packages/pip/_internal/wheel.py",
line 428, in move_wheel_files
assert info_dir, "%s .dist-info directory not found" % req
AssertionError: fmriprep-docker .dist-info directory not found"

2.
"sudo -H pip install --upgrade fmriprep-docker
Collecting fmriprep-docker
Installing collected packages: fmriprep-docker
ERROR: Exception:
Traceback (most recent call last):
File
"/usr/local/lib/python3.5/dist-packages/pip/_internal/cli/base_command.py",
line 178, in main
status = self.run(options, args)
File
"/usr/local/lib/python3.5/dist-packages/pip/_internal/commands/install.py",
line 414, in run
use_user_site=options.use_user_site,
File
"/usr/local/lib/python3.5/dist-packages/pip/_internal/req/__init__.py",
line 58, in install_given_reqs
**kwargs
File
"/usr/local/lib/python3.5/dist-packages/pip/_internal/req/req_install.py",
line 920, in install
use_user_site=use_user_site, pycompile=pycompile,
File
"/usr/local/lib/python3.5/dist-packages/pip/_internal/req/req_install.py",
line 448, in move_wheel_files
warn_script_location=warn_script_location,
File "/usr/local/lib/python3.5/dist-packages/pip/_internal/wheel.py",
line 428, in move_wheel_files
assert info_dir, "%s .dist-info directory not found" % req
AssertionError: fmriprep-docker .dist-info directory not found"

Any more suggestions? Waiting for your comments Chris!

Thanks & regards
-Korann

On Thu, Jun 27, 2019 at 6:15 PM Chris Markiewicz notifications@github.com
wrote:

Yeah, sorry, it looks like you've got your Python environments fairly
messed up, with things installed in /root/.local, which seems pretty
useless. I think we gave you some bad advice. Let's uninstall:

pip uninstall fmriprep-docker
sudo -H pip uninstall fmriprep-docker

Let's upgrade your installation tools in your base environment, and we can
use root to do this. Note the lack of --user.

sudo -H python -m pip install --upgrade pip setuptools wheel

Now, if you want, you can install with sudo -H, or you can install with
--user, but don't do both, or you'll end up back in /root/.local. I would
suggest:

pip install --upgrade --user fmriprep-docker

Now that should be installed in your main Python environment, but in a
user-controlled directory, probably $HOME/.local/bin.

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/poldracklab/fmriprep/issues/1676?email_source=notifications&email_token=AFP3HEFNZHE7E4M2AIYNHXTP4SY7VA5CNFSM4HZSTMGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYW73XY#issuecomment-506330591,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFP3HEHPAGRKO5OP3GJOULDP4SY7VANCNFSM4HZSTMGA
.

At this point, I would suggest installing a Python distribution like Anaconda.

Thanks, Chirs.

I did install anaconda but still, it is throwing an error:

$"whereis anaconda
anaconda: /home/naren123/anaconda3/bin/anaconda"

Thanks & regards
-Korann

On Sat, Jun 29, 2019 at 5:38 PM Chris Markiewicz notifications@github.com
wrote:

At this point, I would suggest installing a Python distribution like
Anaconda.

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/poldracklab/fmriprep/issues/1676?email_source=notifications&email_token=AFP3HEESKVRNY3T3NRBDQ73P45GE5A5CNFSM4HZSTMGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY3XVCQ#issuecomment-506952330,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFP3HEFVDP3XQ2IFAUO56S3P45GE5ANCNFSM4HZSTMGA
.

What is the error?

Thanks, Chris,

"sudo -H pip install --upgrade fmriprep-docker
Collecting fmriprep-docker
Installing collected packages: fmriprep-docker
ERROR: Exception:
Traceback (most recent call last):
File
"/usr/local/lib/python3.5/dist-packages/pip/_internal/cli/base_command.py",
line 178, in main
status = self.run(options, args)
File
"/usr/local/lib/python3.5/dist-packages/pip/_internal/commands/install.py",
line 414, in run
use_user_site=options.use_user_site,
File
"/usr/local/lib/python3.5/dist-packages/pip/_internal/req/__init__.py",
line 58, in install_given_reqs
**kwargs
File
"/usr/local/lib/python3.5/dist-packages/pip/_internal/req/req_install.py",
line 920, in install
use_user_site=use_user_site, pycompile=pycompile,
File
"/usr/local/lib/python3.5/dist-packages/pip/_internal/req/req_install.py",
line 448, in move_wheel_files
warn_script_location=warn_script_location,
File "/usr/local/lib/python3.5/dist-packages/pip/_internal/wheel.py",
line 428, in move_wheel_files
assert info_dir, "%s .dist-info directory not found" % req
AssertionError: fmriprep-docker .dist-info directory not found"

Is it because of the pyhton version it is throwing an error? or something
else is affecting the installation.
Need your help, Chris...

Thanks & regards
-Korann

On Sat, Jun 29, 2019 at 6:29 PM Chris Markiewicz notifications@github.com
wrote:

What is the error?

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/poldracklab/fmriprep/issues/1676?email_source=notifications&email_token=AFP3HEGBW2CUARIF5UMIRL3P45MBVA5CNFSM4HZSTMGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY3YK4A#issuecomment-506955120,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFP3HEFASCPPLHOASRNCLDLP45MBVANCNFSM4HZSTMGA
.

Hi, it looks like you're still using the default Python installation, and not Anaconda. Please see the installation docs.

Was this page helpful?
0 / 5 - 0 ratings