iGAN icon indicating copy to clipboard operation
iGAN copied to clipboard

qdarkstyle issue (No module named qdarkstyle)

Open prmex900 opened this issue 7 years ago • 10 comments

hi, i'm running this command after I have installed everything

iGAN2noui A$ THEANO_FLAGS='device=gpu0, floatX=float32, nvcc.fastmath=True' python iGAN_main.py --model_name outdoor_64

and get this error. everything is installed as you described. i tried it on macos and ubuntu. same error.

Traceback (most recent call last):
  File "iGAN_main.py", line 4, in <module>
    import qdarkstyle
ImportError: No module named qdarkstyle

prmex900 avatar Aug 25 '18 07:08 prmex900

You need to install it via sudo pip install qdarkstyle.

junyanz avatar Aug 27 '18 05:08 junyanz

You need to install it via sudo pip install qdarkstyle.

this is exactly what i did. but still nothing

prmex900 avatar Aug 27 '18 19:08 prmex900

Very interesting. Are you using conda? For conda users, you can try this.

junyanz avatar Aug 27 '18 21:08 junyanz

i managed to make it with trying multiple times sudo pip install qdarkstyle

then i got problem with pyqt4

no module named pyqt4

solved with conda install pyqt=4 (only this one worked for me. macos)

then was

ModuleNotFoundError: No module named 'dominate'

solved with pip install dominate

then there is some other issues I will get back with later still couldn't run it

prmex900 avatar Aug 27 '18 21:08 prmex900

Please see the requirements

junyanz avatar Aug 27 '18 21:08 junyanz

yes I knew you will say that. It was installed right before I started. I followed every step from requirements. that is why it is all so confusing

after i run THEANO_FLAGS='device=gpu0, floatX=float32, nvcc.fastmath=True' python iGAN_main.py --model_name outdoor_64

i get multiple lines like this

objc[2430]: Class QCocoaColorPanelDelegate is implemented in both /Users/USERNAME/miniconda2/lib/libQtGui.4.8.7.dylib (0x1027cfde0) and /Users/USERNAME/miniconda2/lib/python2.7/site-packages/cv2/.dylibs/QtGui (0x10a1f6d60). One of the two will be used. Which one is undefined.

and at the end

File "iGAN_main.py", line 9, in import constrained_opt File "/Users/USERNAME/iGAN/constrained_opt.py", line 3, in from lib.rng import np_rng File "/Users/USERNAME/iGAN/lib/rng.py", line 2, in from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams ImportError: No module named theano.sandbox.rng_mrg

prmex900 avatar Aug 27 '18 21:08 prmex900

It seems to be related to Theano. Could you run other Theano example/test code? You may want to install this Theano version. The code was developed around 2016, and the Theano was gone now (not longer supported). Therefore, it is quite hard to compile the code. We are working on a PyTorch version, but it might take some time.

junyanz avatar Sep 03 '18 18:09 junyanz

not really, theano gives me struggle=)

prmex900 avatar Sep 11 '18 14:09 prmex900