daducci / AMICO

Accelerated Microstructure Imaging via Convex Optimization (AMICO) from diffusion MRI data
Other
101 stars 62 forks source link

v1.5.4 #154

Closed nightwnvol closed 1 year ago

nightwnvol commented 1 year ago

(1) invalid command 'bdist_wheel' error message when install

Behaviour

Running pip install dmri-amico with pip<=20.0.2 installs correctly the package, but this error message is shown:

Building wheel for dmri-amico (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/clori/commit_test/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-kvffddp6/dmri-amico/setup.py'"'"'; __file__='"'"'/tmp/pip-install-kvffddp6/dmri-amico/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-mks5ujyr
       cwd: /tmp/pip-install-kvffddp6/dmri-amico/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help

  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for dmri-amico

Runtime info

OS: Ubuntu-20.04 Python: 3.8.10 pip: 20.0.2


(2) Fix #155

Replaced the NiBabel get_data() deprecated method with get_fdata() (raise ExpiredDeprecationError with NiBabel >= v5.0.0)