![]() |
Problems converting pyqt4 script to pyqt5 using pyqt4topyqt5.py - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Problems converting pyqt4 script to pyqt5 using pyqt4topyqt5.py (/thread-11627.html) |
Problems converting pyqt4 script to pyqt5 using pyqt4topyqt5.py - Vysero - Jul-18-2018 I am attempting to us a script I found on GitHub called pyqt4topyqt5.py: https://github.com/rferrazz/pyqt4topyqt5 The README says: pyqt4topyqt5 pyqt4 -> pyqt5 Usage usage: pyqt4topyqt5.py [-h] [--nosubdir] [--followlinks] [-o O] [--diff [DIFF]] [--diffs] [--nolog] [--nopyqt5] path Basic example: porting the content of pyqt4app to pyqt5 in the directory pyqt5app: pyqt4topyqt5.py pyqt4app -o pyqt5app So I downloaded and unzipped the file and I figured all I would need to do is bring my pyqt4 script into the folder, open up a terminal and type pyqt4topyqt5 myscript -o myscript_qt5, that did not work: So I tried a few other things:$ pyqt4topyqt5 myscript -o pyqt5app $ pyqt4topyqt5 myscript.py -o newscript.py $ pyqt4topyqt5 myscript $ pyqt4topyqt5 myscript -o newscript All yielding the same result as before. I tried opening pyqt4topyqt5 in my IDE and running it and the error is: Which makes sense, the script needs to know where my pyqt4 script is located. This is why originally I thought just bringing the script directly into the pyqt4topyqt5-master folder (the folder created after unzipping the file) would work.So now I am left wondering how I am supposed to use this script. I am pretty green when it comes to Linux. Anyone have any idea how to use this script or rather, what I am doing wrong? RE: Problems converting pyqt4 script to pyqt5 using pyqt4topyqt5.py - Axel_Erfurt - Jul-31-2018 You must start pyqt4topyqt5.py from the folder where it is stored. for example in Linux:(please adjust paths) Quote:cd /folder_where_pyqt4topyqt5_is_stored/ |