Re: Comment on UbuntuInstall in dicompyler

64 views
Skip to first unread message

dicom...@googlecode.com

unread,
Mar 13, 2013, 10:00:23 PM3/13/13
to dicompyle...@googlegroups.com
Comment by bastula:

An update From Sébastien in Issue 85 regarding installing specific versions
of packages, i.e. pydicom:

The currently installed version of pydicom can be obtained through 2
equivalent commands:

{{{`# pip search pydicom`

`# python -c "import dicom; print dicom.__version__"`}}}

To force pydicom 0.9.8 to be installed, type:

{{{`# sudo pip install pydicom==0.9.8`}}}

For more information:
https://code.google.com/p/dicompyler/wiki/UbuntuInstall

dicom...@googlecode.com

unread,
Jan 7, 2015, 7:38:54 AM1/7/15
to dicompyle...@googlegroups.com
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

dicom...@googlecode.com

unread,
Jan 7, 2015, 7:44:17 AM1/7/15
to dicompyle...@googlegroups.com
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
{{{$ sudo apt-get install dicompyler}}}
However, when I called it from terminal, I received
{{{user@machine$ dicompyler /usr/bin/python: No module named main}}}

I then uninstalled the dicompyler by running
{{{$ sudo apt-get remove --purge dicompyler}}}

After that I checked whether the dicompyler package dependencies are
satisfied by displaying installed package versions using
{{{$ 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
{{{$ sudo pip install matplotlib==1.1.0}}} and
{{{$ 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 source tarball into the folder /home/myuser/dicompyler

I then attempted to install dicompyler by
{{{sudo pip install dicompyler /home/myuser/dicompyler}}}

This resulted in error messages
{{{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:
{{{$ sudo pip install --allow-unverified pil dicompyler}}}

This showed an expected warning
{{{Downloading/unpacking pil>=1.1.7 (from dicompyler)
pil is potentially insecure and unverifiable.}}}
but allowed me to successfully complete the dicompyler installation:
{{{$ pip show dicompyler

dicom...@googlecode.com

unread,
Jan 7, 2015, 7:45:59 AM1/7/15
to dicompyle...@googlegroups.com

dicom...@googlecode.com

unread,
Jan 7, 2015, 7:49:30 AM1/7/15
to dicompyle...@googlegroups.com
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
{{{
$ sudo apt-get install dicompyler
}}}
However, when I called it from terminal, I received
{{{
$ dicompyler /usr/bin/python: No module named main
}}}

I then uninstalled the dicompyler by running
{{{
$ sudo apt-get remove --purge dicompyler
}}}
After that I checked whether the dicompyler package dependencies are
satisfied by displaying installed package versions:
{{{

dicom...@googlecode.com

unread,
Jan 7, 2015, 10:50:54 PM1/7/15
to dicompyle...@googlegroups.com
Comment by bastula:

Thank you for the update and helpful information! Many dependencies have
been updated since the previous release of dicompyler, and I did not get a
chance to test with Ubuntu.

dicom...@googlecode.com

unread,
Mar 25, 2015, 6:57:12 AM3/25/15
to dicompyle...@googlegroups.com
Comment by homman...@gmail.com:

A small note: dicompyler 0.4.2 requires wxPython to be installed. This
dependency is not downloaded when dicompyler is installed. Installing
python-wxgtk2.8 pre- or post-dicompyler installation fixes the issue.

dicom...@googlecode.com

unread,
Aug 20, 2015, 10:53:02 PM8/20/15
to dicompyle...@googlegroups.com
Comment by rayt...@gmail.com:

*[http://bundaku.net Jual Jilbab Instan Online]*
Reply all
Reply to author
Forward
0 new messages