Help with old mathplotlib API (nxutils) needed
Hi,
I'm trying to upgrade dicompyler[1] but I seem to have some final
problem:
$ dicompyler
Traceback (most recent call last):
File "/usr/share/dicompyler/dicompyler_app.py", line 10, in <module>
import dicompyler.main
File "/usr/share/dicompyler/__init__.py", line 10, in <module>
from main import start, __version__
File "/usr/share/dicompyler/main.py", line 25, in <module>
from dicompyler import dicomgui, dvhdata, dvhdoses, dvhcalc
File "/usr/share/dicompyler/dvhcalc.py", line 15, in <module>
import matplotlib.nxutils as nx
ImportError: No module named nxutils
A web search uncovered that nxutils was deprecated and (to) quickly removed
but since it is used only at two places in the code:
$ grep -R nx
dicompyler/dvhcalc.py:import matplotlib.nxutils as nx
dicompyler/dvhcalc.py: if nx.pnpoly(point[0], point[1],
dicompyler/dvhcalc.py: grid = nx.points_inside_poly(dosegridpoints, contour)
it might be simple to replace for somebody who previously dealt with
mathplotlib.
BTW, as I previously wrote here on this list[2] I'm afraid I did not
found a clever solution to package this Python application. I learned
here on this list that applications should go to /usr/share/<pkgname>
but I needed to set PYTHONPATH in a wrapper to make this working and I
have the strong feeling that my packaging is not very sensible and the
files should rather go to some better place. Any comments about this
are welcome as well.
Any help would be appreciated
Andreas.
[1] svn://anonscm.debian.org/debian-med/trunk/packages/dicompyler/trunk/
[2] https://lists.debian.org/debian-python/2014/08/msg00146.html
--
http://fam-tille.de
Reply to: