Comment by
homman...@gmail.com:
Thanks for the guide.
Here is a recent experience with dicompyler 0.4.2 (as of January 2015) on
Ubuntu 14.04:
I first attempted to install it via
code{$ sudo apt-get install dicompyler}
However, when I called it from terminal, I received
code{user@machine$ dicompyler
/usr/bin/python: No module named main}
I then uninstalled the dicompyler by running
code{$ sudo apt-get remove --purge dicompyler}
After that I checked whether the
[
https://code.google.com/p/dicompyler/wiki/BuildRequirements dicompyler
package dependencies] are satisfied by displaying installed package
versions using
code{$ pip show <package name>} for each of the listed packages.
It has turned out that pydicom and matplotlib installed on my system were
too recent. I uninstalled these packages and replaced them by older
versions compatible with dicompyler
by running
code{$ sudo pip install matplotlib==1.1.0}
and
code{$ sudo pip install pydicom==0.9.6
https://code.google.com/p/pydicom/downloads/detail?name=pydicom-0.9.6.tar.gz}
After all dependencies were satisfied, I have downloaded and extracted
dicompyler
[
https://pypi.python.org/packages/source/d/dicompyler/dicompyler-0.4.2.tar.gz#md5=adbfa47b07f983f17fdba26a1442fce0
source tarball]
into the folder /home/myuser/dicompyler
I then attempted to install dicompyler by
code{sudo pip install dicompyler /home/myuser/dicompyler}
This resulted in error messages
code{user@pc:~/dicompyler-0.4.2$ pip install dicompyler .
Unpacking /home/myuser/dicompyler-0.4.2
Running setup.py (path:/tmp/pip-0Wr9xC-build/setup.py) egg_info for
package from file:///home/myuser/dicompyler-0.4.2
Downloading/unpacking dicompyler
Downloading dicompyler-0.4.2.tar.gz (299kB): 299kB downloaded
Running setup.py (path:/tmp/pip_build_romancm/dicompyler/setup.py)
egg_info for package dicompyler
Requirement already satisfied (use --upgrade to upgrade):
matplotlib>=0.99,<=1.1.0 in /usr/local/lib/python2.7/dist-packages (from
dicompyler==0.4.2)
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.2.1 in
/usr/lib/python2.7/dist-packages (from dicompyler==0.4.2)
Downloading/unpacking pil>=1.1.7 (from dicompyler==0.4.2)
Could not find any downloads that satisfy the requirement pil>=1.1.7
(from dicompyler==0.4.2)
Some externally hosted files were ignored (use --allow-external pil to
allow).
Cleaning up...
No distributions at all found for pil>=1.1.7 (from dicompyler==0.4.2)
Storing debug log for failure in /home/myuser/.pip/pip.log }
After some search, I re-executed the installation command with
--allow-unverified option for pil:
code{$ sudo pip install --allow-unverified pil dicompyler}
This showed an expected warning
code{Downloading/unpacking pil>=1.1.7 (from dicompyler)
pil is potentially insecure and unverifiable.}
but allowed me to successfully complete the dicompyler installation:
code{$ pip show dicompyler
---
Name: dicompyler
Version: 0.4.2
Location: /usr/local/lib/python2.7/dist-packages
Requires: matplotlib, numpy, pil, pydicom