Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 89 by
scott.p....@gmail.com: Calling dicompyler as class fails
without wx installed
http://code.google.com/p/dicompyler/issues/detail?id=89
What steps will reproduce the problem?
1. Try to import a dicompyler module from within another python code, i.e.,
>>> from dicompyler import dvhcalc
What is the expected output? What do you see instead?
File "Test.py"
from dicompyler import dvhcalc
File ".../dicompyler/__init__.py"
from main import start, __version__
File ".../dicompyler/main.py"
import wx
ImportError: No module named wx
What version of the product are you using? On what operating system?
Dicompyler 0.4.1-1 on solaris (Pinnacle box)
Please provide any additional information below.
In file __init__.py, please consider moving all import commands to within
the '__main__' code, as follows:
if __name__ == '__main__':
from main import start, __version__
import dicompyler.main()
dicompyler.main.start()
That way, one can use dicompyler as a class in other codes without having
to install wx. Thank you.
Attachments:
__init__.py 456 bytes
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings