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 installing fmridenoise #87

Open
atkinsonap opened this issue Jan 21, 2021 · 6 comments
Open

problems installing fmridenoise #87

atkinsonap opened this issue Jan 21, 2021 · 6 comments

Comments

@atkinsonap
Copy link

Hello,

I'm unable to install fmridenoise on my Mac (OS Mojave, with the preinstalled Python 2 and the latest installation of Python 3.9). I've tried several ways:

  1. Via Terminal (bash), with commands
    (a) pip install fmridenoise
    (b) python3 -m pip install fmridenoise

  2. Downloaded the latest version of fmridenoise from github, unzipped it, cd in Terminal to the downloaded location, and enter following command in Terminal: python setup.py install.

The respective error messages are below. I'd be grateful for your help.


Both 1(a) and 1(b) give the following error message:

ERROR: Command errored out with exit status 1:
 command: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/fw/l5xdrbkd7m93pk1_r2hkzfx40000gn/T/pip-install-ojcjdsoo/fmridenoise_d93b800b0d4641e396e6a1d99445df6d/setup.py'"'"'; __file__='"'"'/private/var/folders/fw/l5xdrbkd7m93pk1_r2hkzfx40000gn/T/pip-install-ojcjdsoo/fmridenoise_d93b800b0d4641e396e6a1d99445df6d/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/fw/l5xdrbkd7m93pk1_r2hkzfx40000gn/T/pip-pip-egg-info-3xw5zobi
     cwd: /private/var/folders/fw/l5xdrbkd7m93pk1_r2hkzfx40000gn/T/pip-install-ojcjdsoo/fmridenoise_d93b800b0d4641e396e6a1d99445df6d/
Complete output (5 lines):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/var/folders/fw/l5xdrbkd7m93pk1_r2hkzfx40000gn/T/pip-install-ojcjdsoo/fmridenoise_d93b800b0d4641e396e6a1d99445df6d/setup.py", line 8, in <module>
    with open(join(__dir_path, "requirements.txt"), 'r') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/fw/l5xdrbkd7m93pk1_r2hkzfx40000gn/T/pip-install-ojcjdsoo/fmridenoise_d93b800b0d4641e396e6a1d99445df6d/requirements.txt'
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.


Option 2 gave me the following error:

Traceback (most recent call last):
File "setup.py", line 3, in
import versioneer
File "/Users/Atkinson/fmridenoise-0.2.0/versioneer.py", line 1739
file=sys.stderr)
^
SyntaxError: invalid syntax

@SiegfriedWagner
Copy link
Collaborator

I will address it tomorrow. For now it looks like I haven't put requirements.txt in MANIFEST.in.

@atkinsonap
Copy link
Author

atkinsonap commented Jan 22, 2021 via email

@SiegfriedWagner
Copy link
Collaborator

I acknowledged both you suggestions and included them in version 0.2.1.
Please check if everything is working now, if everything is fine we can close this issue.
Btw. I wonder how is our software running on Mac - we had no access to any, so some platform dependent bugs may occur.

@atkinsonap
Copy link
Author

atkinsonap commented Jan 22, 2021 via email

@SiegfriedWagner
Copy link
Collaborator

fmridenoise console command is just calling this file https://github.com/compneuro-ncu/fmridenoise/blob/master/fmridenoise/scripts/fmridenoise - shebang is not suitable for mac (and for windows too)
for now you can just get access to fmridenoise by calling python -O -m fmridenoise - it should work as calling the script.
I will change it in next minor release from /usr/bin/sh to /bin/sh.

@atkinsonap
Copy link
Author

atkinsonap commented Jan 25, 2021 via email

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