[PyQt] PyQt 5.7.1 : pyrcc5 is not portable anymore
atrepaul at yahoo.com
Tue Jan 10 14:50:22 GMT 2017
Phile wrote :>> The executable is created by pip when you install the wheel. I don't know what constraints that imposes.
I have found a solution :
Create this file : PathOfYourPython35\Scripts\pyrcc5.bat
which contains this line : @"%~dp0\..\python" -m PyQt5.pyrcc_main %1 %2 %3 %4 %5 %6 %7 %8 %9
Now, use pyrcc5.bat as you would use pyrcc5.exe
On Tuesday, January 10, 2017 1:45 PM, Phil Thompson <phil at riverbankcomputing.com> wrote:
On 10 Jan 2017, at 12:10 pm, Paul <atrepaul at yahoo.com> wrote:
> This is on Windows 7 - 64bit, python 3.5.2.
> PyQt5-5.7.1 is installed by "pip install PyQt5"
> We are trying to upgrade from PyQt5-5.3.1 to PyQt5-5.7.1, but pyrcc5.exe is not portable anymore on 5.7.1.
> This works all right :
> C:\Python35\Scripts\pyrcc5.exe myResources.qrc -o myResources_rc.py
> Then, move the "Python35" directory anywhere else, and try again. Now pyrcc5.exe fails, and displays this message :
> Fatal error in launcher: Unable to create process using '"'
> It's a problem because we use a central location for PyQt/Qt on a file server, all Windows client computers have nothing installed on them (it's really useful when we need to upgrade something, there is only one location to modify).
> Is there a way to make pyrcc5 portable again ?
The executable is created by pip when you install the wheel. I don't know what constraints that imposes.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt