Jul-18-2018, 06:11 PM
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:
$ 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:
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?
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:
Error:pyqt4topyqt5: command not found
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:
Error:usage: pyqt4topyqt5.py [-h] [--nosubdir] [--followlinks] [-o O]
[--diff [DIFF]] [--diffs] [--nolog] [--nopyqt5]
path
pyqt4topyqt5.py: error: the following arguments are required: path
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?