problems installing fmridenoise
atkinsonap opened this issue · 6 comments
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:
-
Via Terminal (bash), with commands
(a) pip install fmridenoise
(b) python3 -m pip install fmridenoise -
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
I will address it tomorrow. For now it looks like I haven't put requirements.txt
in MANIFEST.in
.
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.
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
.