Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #51540

Re: PyQt5 and virtualenv problem

Newsgroups comp.lang.python
Date 2013-07-29 19:36 -0700
References <39e192a0-779e-4be6-b08f-950ed1c200ac@googlegroups.com> <1e9474e8-c94b-4edd-a9c8-f0fa53690817@googlegroups.com>
Message-ID <e367cb14-b011-4ff9-a793-e9a35c4956c1@googlegroups.com> (permalink)
Subject Re: PyQt5 and virtualenv problem
From "D. Xenakis" <gouzounakis@hotmail.com>

Show all headers | View raw


Could you help me install PyQt5 properly in my Virtualenv folder and not only globally?

I tried installing PyQt5 and sip with the use of pip but i was getting errors all the time (Why is that? Are there any known pip issues along with PyQt5 and sip?), so in the end i had to install it with the installer provided from the official riverbank website.
However now, everytime i create a virtual enviroment, PyQT5 or sip package is not included there and i dont know how to solve this problem either.

I tried applying this fix: http://stackoverflow.com/questions/1961997/is-it-possible-to-add-pyqt4-pyside-packages-on-a-virtualenv-sandbox , but i do not know if i have done things right.
I can import PyQt5 and pip packages from within python console without any errors being showed (both globaly and inside my virtuall enviroment), so i could assume i did all ok.
But should this confirmation be enough for me or is there any other way i could confirm that everything is indeed properly installed?

I noticed that in start menu - programs, a new folder named "PyQt GPL v5.0 for Python v3.3 (x64)" had been created after the installation, where someone can find view PyQt examples and a PyQT Examples module which starts an application.
Big question now..

Everytime i run PyQt Examples module from within global IDLE, everything works ok and then again when i close the application, this appears:
Traceback (most recent call last):
  File "C:\Python33\Lib\site-packages\PyQt5\examples\qtdemo\qtdemo.pyw", line 91, in <module>
    sys.exit(app.exec_())
SystemExit: 0

However, everytime i run PyQt Examples module from within virtual env IDLE, nothing happends.

So as you can undertand, this is why i believe i have not installed properly PyQt5 or sip
**(I start virtual env IDLE using this shortcut ""..path..\Python\Python Projects\PriceTAG Grabber\env\Scripts\pythonw.exe" C:\Python33\Lib\idlelib\idle.pyw")

I know i may have asked too many questions in just a single topic, but all im trying to achieve here is to be sure that PyQt5 and virtual env are working fine.

Thx for your time in advance

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

PyQt5 and virtualenv problem "D. Xenakis" <gouzounakis@hotmail.com> - 2013-07-27 16:49 -0700
  Re: PyQt5 and virtualenv problem "D. Xenakis" <gouzounakis@hotmail.com> - 2013-07-29 06:00 -0700
    Re: PyQt5 and virtualenv problem "D. Xenakis" <gouzounakis@hotmail.com> - 2013-07-29 19:36 -0700
  Re: PyQt5 and virtualenv problem "D. Xenakis" <gouzounakis@hotmail.com> - 2013-08-01 17:07 -0700
  Re: PyQt5 and virtualenv problem Pete Forman <petef4+usenet@gmail.com> - 2013-08-02 11:11 +0100

csiph-web