Closed rijobro closed 3 years ago
hmm DISPLAY='' pip install
works for me. The current logic will always prompt if DISPLAY is set. Maybe should be changed.
Just a heads up, I tried with DISPLAY='' pip install
the other day, and it errored out.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/rich/NiftyPET/nipet/setup.py", line 125, in <module>
Tk().withdraw()
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1828, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: couldn't connect to display ""
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Ah I see you're still using python2.7... NiftyPET will be dropping it before 2021.
Try using py3.6+ and the dev2
branch for now (https://github.com/NiftyPET/NIPET/blob/dev2/README.rst#quick-install)...
Note the location of the includes has changed slightly (so you'd need to change that wrapping in SIRF too).
Should really be providing a proper CMake package.
Sounds like you're making progress on the python3 release which is good! I'll try it out next time I do a fresh install.
As per https://github.com/NiftyPET/NIPET/blob/master/README.rst#quick-install, I did
export PATHTOOLS=$HOME/NiftyPET_tools
. However, onpip install
, I still get asked (twice) for mu-map directory. Annoying when working on a slow X11.