Giter VIP home page Giter VIP logo

Comments (5)

cbedetti avatar cbedetti commented on September 13, 2024

I don't have access to a Mac, so I can't test it directly.
It should be fixed in the last version.

$ pip freeze | grep dcm2bids
dcm2bids==1.1.8

Do you have the last version ?

from dcm2bids.

dlevitas avatar dlevitas commented on September 13, 2024

I actually gave up with the Mac version, and switched to a Linux cluster environment. I tried the installation again, but received the following permissions error:

Exception:
Traceback (most recent call last):
  File "/N/soft/rhel6/python/2.7.3/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/N/soft/rhel6/python/2.7.3/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/N/soft/rhel6/python/2.7.3/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/N/soft/rhel6/python/2.7.3/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "/N/soft/rhel6/python/2.7.3/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
  File "/N/soft/rhel6/python/2.7.3/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 345, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/N/soft/rhel6/python/2.7.3/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 316, in clobber
    ensure_dir(destdir)
  File "/N/soft/rhel6/python/2.7.3/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 83, in ensure_dir
    os.makedirs(path)
  File "/N/soft/rhel6/python/2.7.3/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/N/soft/rhel6/python/2.7.3/lib/python2.7/site-packages/winreg'

Since I don't have admin privileges, is there a work-around I can use in this case?

from dcm2bids.

cbedetti avatar cbedetti commented on September 13, 2024

Without admin privileges, you can use -e, --user or --prefix.
pip install --help to see what's the best fit for your need.
One example: pip install --user dcm2bids

from dcm2bids.

dlevitas avatar dlevitas commented on September 13, 2024

Okay, I installed dcm2bid with

pip install --prefix $HOME/Dcm2Bids dcm2bids

I then tried running the dcm2bids_helper file using this command:

$HOME/Dcm2Bids/bin/dcm2bids_helper -d DICOMdir -o $HOME

but got this error:

Traceback (most recent call last):
  File "/N/u/dlevitas/Karst/Dcm2Bids/bin/dcm2bids_helper", line 8, in <module>
    from dcm2bids.dcm2niix import Dcm2niix

Do I need to update the python path to include the dcm2bids modules?

from dcm2bids.

dlevitas avatar dlevitas commented on September 13, 2024

Actually, nevermind about that. I added it to my PATH, and now it's running.

Thanks again.

from dcm2bids.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.