MicMac:pynetdicom-0.8.1 me$ sudo python setup.py install
Password:
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.25.tar.gz
Extracting in /tmp/tmpr8ELFK
Now working in /tmp/tmpr8ELFK/distribute-0.6.25
Building a Distribute egg in /Users/me/pynetdicom-0.8.1
/Users/me/pynetdicom-0.8.1/distribute-0.6.25-py2.7.egg
Traceback (most recent call last):
File "setup.py", line 10, in <module>
import netdicom
File "/Users/me/pynetdicom-0.8.1/netdicom/__init__.py", line 7, in <module>
from applicationentity import AE
File "/Users/me/pynetdicom-0.8.1/netdicom/applicationentity.py", line 15, in <module>
from SOPclass import *
File "/Users/me/pynetdicom-0.8.1/netdicom/SOPclass.py", line 7, in <module>
import dsutils
File "/Users/me/pynetdicom-0.8.1/netdicom/dsutils.py", line 9, in <module>
import dicom
ImportError: No module named dicom
python -c 'import dicom'
ImportError: No module name dicom
python -c 'import pydicom'
NO PROBLEM.
Should i go to dsutils and change that line of source?
I've seen this error posted a few places but i see no solutions that work for me jira and all.
I'm on Mac OS X 10.13
Python 2.7.10 (default, Jul 15 2017, 17:16:57)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
pip -V
pip 9.0.1 from /Library/Python/2.7/site-packages (python 2.7)
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/8_/p8x5jhqs1ll0jt5bzs5t8f800000gn/T/pip-build-UKZZfx/pydicom/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/8_/p8x5jhqs1ll0jt5bzs5t8f800000gn/T/pip-Jje_LE-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/8_/p8x5jhqs1ll0jt5bzs5t8f800000gn/T/pip-build-UKZZfx/pydicom/
error: could not create '/Library/Python/2.7/site-packages/dicom': Permission denied