Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51377 > unrolled thread
| Started by | "D. Xenakis" <gouzounakis@hotmail.com> |
|---|---|
| First post | 2013-07-27 16:49 -0700 |
| Last post | 2013-08-02 11:11 +0100 |
| Articles | 5 — 2 participants |
Back to article view | Back to comp.lang.python
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
| From | "D. Xenakis" <gouzounakis@hotmail.com> |
|---|---|
| Date | 2013-07-27 16:49 -0700 |
| Subject | PyQt5 and virtualenv problem |
| Message-ID | <39e192a0-779e-4be6-b08f-950ed1c200ac@googlegroups.com> |
I tried to install SIP and PyQt5 using the pip install command but it didnt work on both cases (i was getting errors), so i finally installed them using the windows installers provided in riverbankcomputing website. My problem though here is that whenever i try to create a new virtualenv enviroment, those packages are not included and i cant import them. How can i add PyQt5 to my new virt enviroment? What is the logic behind this problem so i understand whats going on here? Thx in advance
[toc] | [next] | [standalone]
| From | "D. Xenakis" <gouzounakis@hotmail.com> |
|---|---|
| Date | 2013-07-29 06:00 -0700 |
| Message-ID | <1e9474e8-c94b-4edd-a9c8-f0fa53690817@googlegroups.com> |
| In reply to | #51377 |
Answer here: http://stackoverflow.com/questions/1961997/is-it-possible-to-add-pyqt4-pyside-packages-on-a-virtualenv-sandbox
[toc] | [prev] | [next] | [standalone]
| From | "D. Xenakis" <gouzounakis@hotmail.com> |
|---|---|
| Date | 2013-07-29 19:36 -0700 |
| Message-ID | <e367cb14-b011-4ff9-a793-e9a35c4956c1@googlegroups.com> |
| In reply to | #51444 |
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
[toc] | [prev] | [next] | [standalone]
| From | "D. Xenakis" <gouzounakis@hotmail.com> |
|---|---|
| Date | 2013-08-01 17:07 -0700 |
| Message-ID | <0fe14c14-69ae-43cc-8a45-4764744012b3@googlegroups.com> |
| In reply to | #51377 |
Any advice?Plz?
[toc] | [prev] | [next] | [standalone]
| From | Pete Forman <petef4+usenet@gmail.com> |
|---|---|
| Date | 2013-08-02 11:11 +0100 |
| Message-ID | <86a9l0mmgl.fsf@gmail.com> |
| In reply to | #51377 |
"D. Xenakis" <gouzounakis@hotmail.com> writes: > I tried to install SIP and PyQt5 using the pip install command but it > didnt work on both cases (i was getting errors), so i finally > installed them using the windows installers provided in > riverbankcomputing website. > My problem though here is that whenever i try to create a new > virtualenv enviroment, those packages are not included and i cant > import them. How can i add PyQt5 to my new virt enviroment? What is > the logic behind this problem so i understand whats going on here? > > Thx in advance I can't comment on PyQt5 but I can say how to use PyQt4 with virtualenv on Windows. The Riverbank installers do not work in a virtualenv. However PySide wraps PyQt4 in a compatible installer. To use the installer it should be invoked with easy_install rather than pip install. Having installed it, pip uninstall works. https://pypi.python.org/pypi/PySide The Riverbank installer can install PyQt5 to your master copy of Python. You can then use the --system-site-packages flag when creating a virtualenv. The default behavior of virtualenv changed in 1.7 (2011-11-30) from including system packages to excluding them. -- Pete Forman
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web