Yesterday, I tried to compile and install PySide 1.2.1 on Ubuntu 13.10 with no luck. PySide always installs without phonon player. I used to have PySide with phonon on this system, but I have uninstalled it, because I have some issues with code completion in Pycharm. Then when I try to compile/install it again, there is no Phonon. Please help, I am quite frustrated.
I am using this step-by-step guide: https://pypi.python.org/pypi/PySide#building-pyside-on-a-unix-system-ubuntu-12-04-13-10
Ubuntu 13.10 x64
Setup tools v1.4.1
Related
I am trying to use ghost.py which requires PySide or PyQt4. I tried to install PySide with pip.
PySide Installation Error
Then when I try to install PyQt4 instead, I get this result:
PyQt4 Installation Error
I checked other questions on stackoverflow and installed PyQt6 instead bu ghost doesn't work with PyQt5-PyQt6. Can anybody help me with these problems. All I want is to be able to use ghost.
I have downloaded Anaconda 64 bit with Python 2.7 on my compter which works with Windows.
I also downloaded PyQt4 version 4.11.4.
However, when I run my code, I have this :
RuntimeError: the sip module implements API v9.0 to v9.2 but the PyQt4.QtGui module requires API v11.3
I tried to update the sip module, but I can't go further than version 4.18 due (I think) to the version of Python I use. However, I really need to use Python 2.7 since the code that I'm trying to run is old and written in Python 2.
I found out that PyQt4 version 4.9.6 requires a API version 9.1, so it would be supported by the sip module I have.
My problem is that only found that version of PyQt4 in zip file or in tag.gz file and I only know how to install .whl file (with the "pip install" in the anaconda prompt).
I was wondering if someone could please explain me how to install a zip or tag.gz file or if there is a web site that I could use to transform the zip (or tag.gz file) into a .whl file.
I have successfully managed to build and install PySide2 on Python 3.6.4. (default, not Anaconda) on Windows 10 operating system.
However shiboken2 has not been installed. How may I install shiboken2? I know that that the code for this module is attached to PySide2 installation files.
I suspect that my C++ code which is built as DLL file cannot be imported in Python due to missing shiboken2. However this importing works fine in Anaconda environment. But at the moment I do not want to use Anaconda because there are old versions of 'Qt' (5.6 but I need 5.9.x) and 'PySide2' installed.
Just a moment ago I figured it out that shiboken2 can be imported like this:
from PySide2 import shiboken2
So before importing my own files the above line has to be added.
I'm trying to use PySide so I did a brew install pyside pyside-tools. However, I get the following error:
>>> from PySide.QtGui import QApplication
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/Library/Python/2.7/site-packages/PySide/QtGui.so, 2): Library not loaded: QtGui.framework/Versions/4/QtGui
Referenced from: /Library/Python/2.7/site-packages/PySide/QtGui.so
Reason: image not found
This SO question says to install python 27 and then reinstall pyside but I'm using the native python on mac osx 10.8 and it is already 2.7.2.
The Homebrew recipe for PySide seems to indicate that this should have been fixed but I'm still getting the errors. I made sure libpng is installed as well.
Looking at the path, I know that the QtGui.so file is there. Since I'm new to Python, PySide, and Qt, it is hard for me to Google and further troubleshoot.
If anyone knows why and can provide directions, I will be very grateful. It can involve uninstalling a bunch of stuff and reinstalling. Please give detailed instructions. I did uninstall and try to reinstall and got the same result.
Thank you.
I was getting the same error, and I'm using Python installed via Homebrew. I found two PySide libraries in /Library/Python/2.7/site-packages/ . Moving them out of the way, and re-building/installing PySide through Homebrew worked.
I tried the import you gave - I am using same system environment. It worked fine. try: brew update and re-install.
Got the same error when running ipython qtconsole which will import PySide to provide a Qt console.
Finally I thought there might be something wrong after PySide's installation. So I run pyside_postinstall.py -install manually which should be automatically run after PySide is installed, and this fixed my problem. Hopes working for your too!
I'm following a tutorial of making desktop apps. with python and qt4, I downloaded and installed qt creator ide, created the .ui file and then I had to convert it using pyuic4, I've been trying a lot of things and still can't do it.
I thought that pyuic4 would be installed with Qt creator IDE, but it seems that's not the case, so I installed pyqt through macports:
sudo port install py26-pyqt4
I didn't know but that came with qt, so it was about 3 hours building it.
after installing it I tried to convert the .ui again:
$ pyuic4-2.6 principal.ui -o prin.py
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PyQt4/uic/pyuic.py", line 4, in <module>
from PyQt4 import QtCore
ImportError: No module named PyQt4
No module named PyQt4? wasn't that what I just installed?
Thanks, and excuse me if my english isn't 100% good.
I've solved it, you have to use the python of macports instead of the default that comes with OS X, to do that install python_select through macports:
sudo port install python_select
sudo python_select python26
I made some notes on building and install PyQt4 on Mac Snow Leopard.
The order is important, and there are some quirks with 64-bit libraries. The default Mac Qt libs are Carbon (32 bit), whereas Mac system Python is 64 bit and needs the Cocoa libs.
I spent a while finding the package name in Homebrew. It seems to be:
brew install pyqt