Re: [PyMOL] "Qt not available" error from compilation with python2 but not python3

2019-09-19 Thread Thomas Holder

> On Sep 14, 2019, at 8:46 AM, sunyeping via PyMOL-users 
>  wrote:
> 
> Even if I re-compile with --glut:
> python2 setup.py install --prefix=~/pymol-install-py2
> the same error occurs.

Remove the "build" directory before you re-compile with --glut:

  rm -rf build
  python2 setup.py --glut install --prefix=~/pymol-install-py2

Hope that helps.

Cheers,
  Thomas

--
Thomas Holder
PyMOL Principal Developer
Schrödinger, Inc.



___
PyMOL-users mailing list
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
Unsubscribe: 
https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe

[PyMOL] "Qt not available" error from compilation with python2 but not python3

2019-09-13 Thread sunyeping via PyMOL-users
dear all, 

I am trying to compile pymol from source 
(https://github.com/schrodinger/pymol-open-source.git). Python 3 and python 2 
both have been installed in my system. I first tried compile pymol with python 3
python3 setup.py install --prefix=~/pymol-install-py3
It can work.
  python3 setup.py install --prefix=~/pymol-install-py2

However, when I try to compile pymol with python2:
 python2 setup.py install --prefix=~/pymol-install-py2
lauching pymol gives the following error:

Qt not available, using GLUT/Tk interface
Traceback (most recent call last):
  File "__init__.py", line 65, in 
pymol.launch(args)
  File 
"/home/sunyp/pymol-install-py2/lib64/python2.7/site-packages/pymol/__init__.py",
 line 436, in launch
_cmd.runpymol(_cmd._get_global_C_object(), block_input_hook)
NotImplementedError: compile with --glut

Even if I re-compile with --glut:
python2 setup.py install --prefix=~/pymol-install-py2
the same error occurs.

PyQt4 has been install in my system with yum install. I am very confused and 
wish to know why qt cannot be fould by pymol comoled with python2. 

Could you help me with that?

Thank you in advacne.
Yeping Sun

___
PyMOL-users mailing list
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
Unsubscribe: 
https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe