R: R: Cannot run a command
Apologies Chris, you said to run the 2to3 command on all the scripts that get called from mun_downlink_proxy.py. Please can you tell me all the scripts that I have to run the command or how to do to know Which one are? Thanks for your collaboration and understanding 73’s de Enzo IK8OZV EasyLog 5 BetaTester EasyLog PDA BetaTester WinBollet BetaTester D.C.I. CheckPoint Regione Campania Skype: ik8ozv8520 * ** GSM +39 328 7110193 ** * SMS +39 328 7110193* * Da: Chris Gorman Inviato: domenica 6 settembre 2020 20:58 A: Vincenzo Mone Oggetto: Re: R: Cannot run a command On Sun, Sep 6, 2020 at 2:13 PM Vincenzo Mone mailto:vim...@alice.it> > wrote: Thank s Chris for your help. As I said before I am not so clever on the Linux so you have to drive me by hand Like a little child when he goes to the school for the first time Lol. No problem, we all have to learn somewhere. :) BTW I have tried as you said with the command: 2to3 -w /home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py But as I do I not had the program I got: Command "2to3" not found, but can be installed with: sudo apt install 2to3 so I have installed it with the above suggested command and ran again the 2to3 command and got: Command "2to3" not found, but can be installed with: sudo apt install 2to3 RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored /home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py --- /home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py (original) +++ /home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py (refactored) @@ -26,7 +26,7 @@ import datetime import xml.dom.minidom as minidom import pickle -import urllib2 +import urllib.request, urllib.error, urllib.parse from PyQt5 import QtGui, QtCore, Qt, QtWidgets # import ui confige @@ -296,7 +296,7 @@ f.close() self.reload() except Exception as error: -print("[File] Configured file read failed. Error: " + str(error)) +print(("[File] Configured file read failed. Error: " + str(error))) def reload(self): ''' @@ -593,7 +593,7 @@ Exception: an error occured accessing tle file or grc_param.py """ try: -f = urllib2.urlopen(str(self.ui.tle_url_text.text())) +f = urllib.request.urlopen(str(self.ui.tle_url_text.text())) tle = f.read() tle = tle.split("\n") @@ -641,13 +641,13 @@ log += "%02X" % ord(i) + " " count += 1 self.log_dict[index].write("Data: " + log + "\n\n") -print( +print(( "[Data] Received time is " + datetime.datetime.utcfromtimestamp( float(data['proxy_receive_time']/1000)).strftime( -'%Y-%m-%d %H:%M:%S')) -print( -"Data is: " + log + "\n" + "Data Length is: " + str(count)) +'%Y-%m-%d %H:%M:%S'))) +print(( +"Data is: " + log + "\n" + "Data Length is: " + str(count))) self.log_dict[index].flush() def normal_output_written(self, text): RefactoringTool: Files that were modified: RefactoringTool: /home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py Then I have tried to run again my command: python2 ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py and got: Traceback (most recent call last): File "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py", line 29, in import urllib.request, urllib.error, urllib.parse ImportError: No module named request This is correct for we are converting your scripts to use python3. I recommend this as I don't think PyQt5 exists for python2. (You apparently can build it yourself, but it's not very easy to accomplish.) If I run python3… Instead of python2……. I get: Traceback (most recent call last): File "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py", line 38, in from core.
R: R: Cannot run a command
Thank s Chris for your help. As I said before I am not so clever on the Linux so you have to drive me by hand Like a little child when he goes to the school for the first time Lol. BTW I have tried as you said with the command: 2to3 -w /home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py But as I do I not had the program I got: Command "2to3" not found, but can be installed with: sudo apt install 2to3 so I have installed it with the above suggested command and ran again the 2to3 command and got: Command "2to3" not found, but can be installed with: sudo apt install 2to3 RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored /home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py --- /home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py (original) +++ /home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py (refactored) @@ -26,7 +26,7 @@ import datetime import xml.dom.minidom as minidom import pickle -import urllib2 +import urllib.request, urllib.error, urllib.parse from PyQt5 import QtGui, QtCore, Qt, QtWidgets # import ui confige @@ -296,7 +296,7 @@ f.close() self.reload() except Exception as error: -print("[File] Configured file read failed. Error: " + str(error)) +print(("[File] Configured file read failed. Error: " + str(error))) def reload(self): ''' @@ -593,7 +593,7 @@ Exception: an error occured accessing tle file or grc_param.py """ try: -f = urllib2.urlopen(str(self.ui.tle_url_text.text())) +f = urllib.request.urlopen(str(self.ui.tle_url_text.text())) tle = f.read() tle = tle.split("\n") @@ -641,13 +641,13 @@ log += "%02X" % ord(i) + " " count += 1 self.log_dict[index].write("Data: " + log + "\n\n") -print( +print(( "[Data] Received time is " + datetime.datetime.utcfromtimestamp( float(data['proxy_receive_time']/1000)).strftime( -'%Y-%m-%d %H:%M:%S')) -print( -"Data is: " + log + "\n" + "Data Length is: " + str(count)) +'%Y-%m-%d %H:%M:%S'))) +print(( +"Data is: " + log + "\n" + "Data Length is: " + str(count))) self.log_dict[index].flush() def normal_output_written(self, text): RefactoringTool: Files that were modified: RefactoringTool: /home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py Then I have tried to run again my command: python2 ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py and got: Traceback (most recent call last): File "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py", line 29, in import urllib.request, urllib.error, urllib.parse ImportError: No module named request If I run python3… Instead of python2……. I get: Traceback (most recent call last): File "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py", line 38, in from core.data import server_data File "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/core/data.py", line 2, in import Queue ModuleNotFoundError: No module named 'Queue' Thanks 73’s de Enzo IK8OZV EasyLog 5 BetaTester EasyLog PDA BetaTester WinBollet BetaTester D.C.I. CheckPoint Regione Campania Skype: ik8ozv8520 ************* ** GSM +39 328 7110193 ** * SMS +39 328 7110193* * Da: Chris Gorman Inviato: domenica 6 settembre 2020 19:45 A: Vincenzo Mone Oggetto: Re: R: Cannot run a command Hi Vincenzo, No problem on the help. You should say you are not good in Linux yet. :) I'll try to explain as best I can. The import commands you are trying to run in the terminal need to be interpreted by python. So you would open a terminal and type python3, then hit enter and then try to import the module. What you have attempted to do is have the bash shell interpret python commands, which it won
R: R: R: Cannot run a command
OK Ed, gave the commands in terminal: python3 I get the prompt >>> I gave the following command: import urllib2.request But got the error: Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'urllib2' Thanks 73’s de Enzo IK8OZV EasyLog 5 BetaTester EasyLog PDA BetaTester WinBollet BetaTester D.C.I. CheckPoint Regione Campania Skype: ik8ozv8520 * ** GSM +39 328 7110193 ** * SMS +39 328 7110193* * Da: Ed Criscuolo Inviato: domenica 6 settembre 2020 19:07 A: Vincenzo Mone Oggetto: Re: R: R: Cannot run a command Theses are Python commands. When you open a terminal window, you are at a bash shell that only accepts bash commands. At the bash prompt, try typing python3. This should start python and leave you at a python prompt. THEN type the python commands. @(^.^)@ Ed Sent from my iPhone On Sep 6, 2020, at 12:50 PM, Vincenzo Mone mailto:vim...@alice.it> > wrote: Hi Chris, first thanks for coming back to my help request. I state that I'm not good in Linux Honestly I have already tried to use that site but did not get any success, Maybe because I did not understood what to do. I try to follow again the site and let you know what I do and the results: I have opened Terminal and gave the following command: import urllib2.request Nothing happened but I see the mouse pointer change in a cross Then I gave the second command: response = urllib2.urlopen("http://www.google.com";) also here nothing happened so I carry on with the third command: html = response.read() also here nothing happened so I carry on with the fourth command: print(html) also here nothing happened. Now what to do? Actually I am stuck like this Thanks 73’s de Enzo IK8OZV EasyLog 5 BetaTester EasyLog PDA BetaTester WinBollet BetaTester D.C.I. CheckPoint Regione Campania Skype: ik8ozv8520 * ** GSM +39 328 7110193 ** * SMS +39 328 7110193* * > -Messaggio originale- > Da: Chris Gorman mailto:chrisjohgor...@gmail.com> > > Inviato: domenica 6 settembre 2020 18:25 > A: Vincenzo Mone mailto:vim...@alice.it> > > Oggetto: Re: R: Cannot run a command > > On Sun, Sep 6, 2020 at 11:50 AM Vincenzo Mone < <mailto:vim...@alice.it> > vim...@alice.it> wrote: > > > > Please anybody out there available to help me to solve my problem? > > If yes please should we continue on this thread or start from the beginner > using this thread. > > Or start a new thread? > > Thanks > > > Hi Vincenzo, > > I'm not an expert, but I will try to help you get your program loaded and > running. You should be using python3 not python2. Python2 ended it's > development cycle on Jan 1, 2020. It is no longer maintained. > If I understand your error from python3, you are unable to import urllib2. > This is because urllib2 has been renamed urllib in Python3. > (See > <https://stackoverflow.com/questions/2792650/import-error-no-module-name-urllib2> > https://stackoverflow.com/questions/2792650/import-error-no- <https://stackoverflow.com/questions/2792650/import-error-no-module-name-urllib2> > module-name-urllib2 > .) I would try running '2to3' on your script or manually editing the script, > renaming the 'import urllib2' to 'import urllib'. Best of luck and let me > know > how it goes once you make the changes. > > Chris > > > >>> > > > >>>File > > > >>> "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > > > >> Proxy/mun > > > >>> _downlink_proxy.py", > > > >>> line 29, in > > > >>> > > > >>> import urllib2 > > > >>> > > > >>> ModuleNotFoundError: No module named 'urllib2' > > > >>>
R: R: Cannot run a command
Hi Chris, first thanks for coming back to my help request. I state that I'm not good in Linux Honestly I have already tried to use that site but did not get any success, Maybe because I did not understood what to do. I try to follow again the site and let you know what I do and the results: I have opened Terminal and gave the following command: import urllib2.request Nothing happened but I see the mouse pointer change in a cross Then I gave the second command: response = urllib2.urlopen("http://www.google.com";) also here nothing happened so I carry on with the third command: html = response.read() also here nothing happened so I carry on with the fourth command: print(html) also here nothing happened. Now what to do? Actually I am stuck like this Thanks 73’s de Enzo IK8OZV EasyLog 5 BetaTester EasyLog PDA BetaTester WinBollet BetaTester D.C.I. CheckPoint Regione Campania Skype: ik8ozv8520 * ** GSM +39 328 7110193 ** * SMS +39 328 7110193* * > -Messaggio originale- > Da: Chris Gorman > Inviato: domenica 6 settembre 2020 18:25 > A: Vincenzo Mone > Oggetto: Re: R: Cannot run a command > > On Sun, Sep 6, 2020 at 11:50 AM Vincenzo Mone < <mailto:vim...@alice.it> > vim...@alice.it> wrote: > > > > Please anybody out there available to help me to solve my problem? > > If yes please should we continue on this thread or start from the beginner > using this thread. > > Or start a new thread? > > Thanks > > > Hi Vincenzo, > > I'm not an expert, but I will try to help you get your program loaded and > running. You should be using python3 not python2. Python2 ended it's > development cycle on Jan 1, 2020. It is no longer maintained. > If I understand your error from python3, you are unable to import urllib2. > This is because urllib2 has been renamed urllib in Python3. > (See > <https://stackoverflow.com/questions/2792650/import-error-no-module-name-urllib2> > https://stackoverflow.com/questions/2792650/import-error-no- <https://stackoverflow.com/questions/2792650/import-error-no-module-name-urllib2> > module-name-urllib2 > .) I would try running '2to3' on your script or manually editing the script, > renaming the 'import urllib2' to 'import urllib'. Best of luck and let me > know > how it goes once you make the changes. > > Chris > > > >>> > > > >>>File > > > >>> "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > > > >> Proxy/mun > > > >>> _downlink_proxy.py", > > > >>> line 29, in > > > >>> > > > >>> import urllib2 > > > >>> > > > >>> ModuleNotFoundError: No module named 'urllib2' > > > >>>
R: R: Cannot run a command
Please anybody out there available to help me to solve my problem? If yes please should we continue on this thread or start from the beginner using this thread. Or start a new thread? Thanks 73’s de Enzo IK8OZV EasyLog 5 BetaTester EasyLog PDA BetaTester WinBollet BetaTester D.C.I. CheckPoint Regione Campania Skype: ik8ozv8520 * ** GSM +39 328 7110193 ** * SMS +39 328 7110193* * > -Messaggio originale- > Da: Discuss-gnuradio > Per conto di Marcus Müller > Inviato: mercoledì 2 settembre 2020 22:55 > A: discuss-gnuradio@gnu.org > Oggetto: Re: R: Cannot run a command > > Vincenzo, > > trying to use the python2 pip will not help you, please read my last email. > Thank you. > > Best regards, > Marcus > > On 02/09/2020 22.53, Vincenzo Mone wrote: > > Hello Fabian, > > I have tried how you said with the command: > > > > But I get this: > > > > DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. > > Please upgrade your Python as Python 2.7 is no longer maintained. pip > > 21.0 will drop support for Python 2.7 in January 2021. More details > > about Python > > 2 support in pip can be found at > > https://pip.pypa.io/en/latest/development/release-process/#python-2-su > > pport Defaulting to user installation because normal site-packages is > > not writeable > > ERROR: Could not find a version that satisfies the requirement PyQt5 > > (from > > versions: none) > > ERROR: No matching distribution found for PyQt5 > > > > Please have I done something wrong? > > Thanks a lot > > > > 73's de Enzo IK8OZV > > EasyLog 5 BetaTester > > EasyLog PDA BetaTester > > WinBollet BetaTester > > D.C.I. CheckPoint Regione Campania > > Skype: ik8ozv8520 > > > > > > > > > >* > >** GSM +39 328 7110193 ** > >* SMS +39 328 7110193***** > > * > > > >> -Messaggio originale- > >> Da: Discuss-gnuradio > >> > >> Per conto di Fabian Schwartau > >> Inviato: martedì 1 settembre 2020 15:31 > >> A: discuss-gnuradio@gnu.org > >> Oggetto: Re: Cannot run a command > >> > >> Hi Vincenzo, > >> > >> urllib2 is not available in Python3 any more, as far as I know. So > >> this > > seens to > >> be a Python2 script. Use > >> pip2 install PyQt5 > >> to install PyQt, then it should work. Keep in mind that Python2 is > >> out of > > date > >> and should not be used any more. > >> > >> Best regards, > >> Fabian > >> > >> Am 01.09.20 um 11:22 schrieb Vincenzo Mone: > >>> Hello , > >>> > >>> I have installed UBUNTU 20.4 and have to run one of these commands: > >>> > >>> > >>> > >>> python2 > >>> ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > >> Proxy/mun_downlink_ > >>> proxy.py > >>> > >>> or > >>> > >>> python3 > >>> ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > >> Proxy/mun_downlink_ > >>> proxy.py > >>> > >>> > >>> > >>> but no one works for my purpose. > >>> > >>> If I run: > >>> > >>> > >>> > >>> python2 > >>> ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > >> Proxy/mun_downlink_ > >>> proxy.py > >>> > >>> > >>> > >>> I get: > >>> > >>> > >>> > >>> Traceback (most recent call last): > >>> > >>>File > >>> "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > >> Proxy/mun > >>> _downlink_proxy.py", > >>> line 31, in > >>> > >>> from PyQt5 import QtGui, QtCore, Qt, QtWidgets > >>> > >>> ImportError: No module named PyQt5 > >>> > >>> > >>> > >>> If I run: > >>> > >>> > >>> > >>> python3 > >>> ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > >> Proxy/mun_downlink_ > >>> proxy.py > >>> > >>> > >>> > >>> I get: > >>> > >>> > >>> > >>> Traceback (most recent call last): > >>> > >>>File > >>> "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > >> Proxy/mun > >>> _downlink_proxy.py", > >>> line 29, in > >>> > >>> import urllib2 > >>> > >>> ModuleNotFoundError: No module named 'urllib2' > >>> > >>> > >>> > >>> Please which is the correct command and how to solve the error? > >>> > >>> Thanks > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> 73's de Enzo IK8OZV > >>> EasyLog 5 BetaTester > >>> EasyLog PDA BetaTester > >>> WinBollet BetaTester > >>> D.C.I. CheckPoint Regione Campania > >>> Skype: ik8ozv8520 > >>> > >>> > >>> > >>> > >>>* > >>> > >>>** GSM +39 328 7110193 ** > >>> > >>>* SMS +39 328 7110193* > >>> > >>>* > >>> > >>> > >>> > > > > > >
R: R: Cannot run a command
So Marcus, which is the solution or there are none? Thanks 73’s de Enzo IK8OZV EasyLog 5 BetaTester EasyLog PDA BetaTester WinBollet BetaTester D.C.I. CheckPoint Regione Campania Skype: ik8ozv8520 * ** GSM +39 328 7110193 ** * SMS +39 328 7110193* * > -Messaggio originale- > Da: Discuss-gnuradio > Per conto di Marcus Müller > Inviato: mercoledì 2 settembre 2020 22:55 > A: discuss-gnuradio@gnu.org > Oggetto: Re: R: Cannot run a command > > Vincenzo, > > trying to use the python2 pip will not help you, please read my last email. > Thank you. > > Best regards, > Marcus > > On 02/09/2020 22.53, Vincenzo Mone wrote: > > Hello Fabian, > > I have tried how you said with the command: > > > > But I get this: > > > > DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. > > Please upgrade your Python as Python 2.7 is no longer maintained. pip > > 21.0 will drop support for Python 2.7 in January 2021. More details > > about Python > > 2 support in pip can be found at > > https://pip.pypa.io/en/latest/development/release-process/#python-2-su > > pport Defaulting to user installation because normal site-packages is > > not writeable > > ERROR: Could not find a version that satisfies the requirement PyQt5 > > (from > > versions: none) > > ERROR: No matching distribution found for PyQt5 > > > > Please have I done something wrong? > > Thanks a lot > > > > 73's de Enzo IK8OZV > > EasyLog 5 BetaTester > > EasyLog PDA BetaTester > > WinBollet BetaTester > > D.C.I. CheckPoint Regione Campania > > Skype: ik8ozv8520 > > > > > > > > > >* > >** GSM +39 328 7110193 ** > >* SMS +39 328 7110193***** > > * > > > >> -Messaggio originale- > >> Da: Discuss-gnuradio > >> > >> Per conto di Fabian Schwartau > >> Inviato: martedì 1 settembre 2020 15:31 > >> A: discuss-gnuradio@gnu.org > >> Oggetto: Re: Cannot run a command > >> > >> Hi Vincenzo, > >> > >> urllib2 is not available in Python3 any more, as far as I know. So > >> this > > seens to > >> be a Python2 script. Use > >> pip2 install PyQt5 > >> to install PyQt, then it should work. Keep in mind that Python2 is > >> out of > > date > >> and should not be used any more. > >> > >> Best regards, > >> Fabian > >> > >> Am 01.09.20 um 11:22 schrieb Vincenzo Mone: > >>> Hello , > >>> > >>> I have installed UBUNTU 20.4 and have to run one of these commands: > >>> > >>> > >>> > >>> python2 > >>> ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > >> Proxy/mun_downlink_ > >>> proxy.py > >>> > >>> or > >>> > >>> python3 > >>> ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > >> Proxy/mun_downlink_ > >>> proxy.py > >>> > >>> > >>> > >>> but no one works for my purpose. > >>> > >>> If I run: > >>> > >>> > >>> > >>> python2 > >>> ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > >> Proxy/mun_downlink_ > >>> proxy.py > >>> > >>> > >>> > >>> I get: > >>> > >>> > >>> > >>> Traceback (most recent call last): > >>> > >>>File > >>> "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > >> Proxy/mun > >>> _downlink_proxy.py", > >>> line 31, in > >>> > >>> from PyQt5 import QtGui, QtCore, Qt, QtWidgets > >>> > >>> ImportError: No module named PyQt5 > >>> > >>> > >>> > >>> If I run: > >>> > >>> > >>> > >>> python3 > >>> ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > >> Proxy/mun_downlink_ > >>> proxy.py > >>> > >>> > >>> > >>> I get: > >>> > >>> > >>> > >>> Traceback (most recent call last): > >>> > >>>File > >>> "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > >> Proxy/mun > >>> _downlink_proxy.py", > >>> line 29, in > >>> > >>> import urllib2 > >>> > >>> ModuleNotFoundError: No module named 'urllib2' > >>> > >>> > >>> > >>> Please which is the correct command and how to solve the error? > >>> > >>> Thanks > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> 73's de Enzo IK8OZV > >>> EasyLog 5 BetaTester > >>> EasyLog PDA BetaTester > >>> WinBollet BetaTester > >>> D.C.I. CheckPoint Regione Campania > >>> Skype: ik8ozv8520 > >>> > >>> > >>> > >>> > >>>* > >>> > >>>** GSM +39 328 7110193 ** > >>> > >>>* SMS +39 328 7110193* > >>> > >>>* > >>> > >>> > >>> > > > > > >
Re: R: Cannot run a command
Vincenzo, trying to use the python2 pip will not help you, please read my last email. Thank you. Best regards, Marcus On 02/09/2020 22.53, Vincenzo Mone wrote: Hello Fabian, I have tried how you said with the command: But I get this: DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Defaulting to user installation because normal site-packages is not writeable ERROR: Could not find a version that satisfies the requirement PyQt5 (from versions: none) ERROR: No matching distribution found for PyQt5 Please have I done something wrong? Thanks a lot 73's de Enzo IK8OZV EasyLog 5 BetaTester EasyLog PDA BetaTester WinBollet BetaTester D.C.I. CheckPoint Regione Campania Skype: ik8ozv8520 * ** GSM +39 328 7110193 ** * SMS +39 328 7110193 * * -Messaggio originale- Da: Discuss-gnuradio Per conto di Fabian Schwartau Inviato: martedì 1 settembre 2020 15:31 A: discuss-gnuradio@gnu.org Oggetto: Re: Cannot run a command Hi Vincenzo, urllib2 is not available in Python3 any more, as far as I know. So this seens to be a Python2 script. Use pip2 install PyQt5 to install PyQt, then it should work. Keep in mind that Python2 is out of date and should not be used any more. Best regards, Fabian Am 01.09.20 um 11:22 schrieb Vincenzo Mone: Hello , I have installed UBUNTU 20.4 and have to run one of these commands: python2 ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- Proxy/mun_downlink_ proxy.py or python3 ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- Proxy/mun_downlink_ proxy.py but no one works for my purpose. If I run: python2 ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- Proxy/mun_downlink_ proxy.py I get: Traceback (most recent call last): File "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- Proxy/mun _downlink_proxy.py", line 31, in from PyQt5 import QtGui, QtCore, Qt, QtWidgets ImportError: No module named PyQt5 If I run: python3 ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- Proxy/mun_downlink_ proxy.py I get: Traceback (most recent call last): File "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- Proxy/mun _downlink_proxy.py", line 29, in import urllib2 ModuleNotFoundError: No module named 'urllib2' Please which is the correct command and how to solve the error? Thanks 73's de Enzo IK8OZV EasyLog 5 BetaTester EasyLog PDA BetaTester WinBollet BetaTester D.C.I. CheckPoint Regione Campania Skype: ik8ozv8520 * ** GSM +39 328 7110193 ** * SMS +39 328 7110193 * *
R: Cannot run a command
Hello Fabian, I have tried how you said with the command: But I get this: DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Defaulting to user installation because normal site-packages is not writeable ERROR: Could not find a version that satisfies the requirement PyQt5 (from versions: none) ERROR: No matching distribution found for PyQt5 Please have I done something wrong? Thanks a lot 73s de Enzo IK8OZV EasyLog 5 BetaTester EasyLog PDA BetaTester WinBollet BetaTester D.C.I. CheckPoint Regione Campania Skype: ik8ozv8520 * ** GSM +39 328 7110193 ** * SMS +39 328 7110193 * * > -Messaggio originale- > Da: Discuss-gnuradio > Per conto di Fabian Schwartau > Inviato: martedì 1 settembre 2020 15:31 > A: discuss-gnuradio@gnu.org > Oggetto: Re: Cannot run a command > > Hi Vincenzo, > > urllib2 is not available in Python3 any more, as far as I know. So this seens to > be a Python2 script. Use > pip2 install PyQt5 > to install PyQt, then it should work. Keep in mind that Python2 is out of date > and should not be used any more. > > Best regards, > Fabian > > Am 01.09.20 um 11:22 schrieb Vincenzo Mone: > > Hello , > > > > I have installed UBUNTU 20.4 and have to run one of these commands: > > > > > > > > python2 > > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun_downlink_ > > proxy.py > > > > or > > > > python3 > > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun_downlink_ > > proxy.py > > > > > > > > but no one works for my purpose. > > > > If I run: > > > > > > > > python2 > > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun_downlink_ > > proxy.py > > > > > > > > I get: > > > > > > > > Traceback (most recent call last): > > > > File > > "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun > > _downlink_proxy.py", > > line 31, in > > > > from PyQt5 import QtGui, QtCore, Qt, QtWidgets > > > > ImportError: No module named PyQt5 > > > > > > > > If I run: > > > > > > > > python3 > > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun_downlink_ > > proxy.py > > > > > > > > I get: > > > > > > > > Traceback (most recent call last): > > > > File > > "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun > > _downlink_proxy.py", > > line 29, in > > > > import urllib2 > > > > ModuleNotFoundError: No module named 'urllib2' > > > > > > > > Please which is the correct command and how to solve the error? > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 73s de Enzo IK8OZV > > EasyLog 5 BetaTester > > EasyLog PDA BetaTester > > WinBollet BetaTester > > D.C.I. CheckPoint Regione Campania > > Skype: ik8ozv8520 > > > > > > > > > > * > > > > ** GSM +39 328 7110193 ** > > > > * SMS +39 328 7110193 * > > > > * > > > > > >
R: R: Cannot run a command
Hi Fabian, thanks for your tip but it seems it did not work. I have followed the tutorial until where it says: The output will look something like this: pip 20.0.2 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7) Just before where it says: How to use Pip Not sure if I have to still continue or not. I have then tried to run my command which is: python2 ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py But I still get: Traceback (most recent call last): File "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py", line 31, in from PyQt5 import QtGui, QtCore, Qt, QtWidgets ImportError: No module named PyQt5 Please any hint Thanks in advance 73’s de Enzo IK8OZV EasyLog 5 BetaTester EasyLog PDA BetaTester WinBollet BetaTester D.C.I. CheckPoint Regione Campania Skype: ik8ozv8520 * ** GSM +39 328 7110193 ** * SMS +39 328 7110193* * > -Messaggio originale- > Da: Discuss-gnuradio > Per conto di Fabian Schwartau > Inviato: mercoledì 2 settembre 2020 09:27 > A: Gnuradio Mailing List > Oggetto: Re: R: Cannot run a command > > Hi Tim and Vicenzo, > > it seems like python2 pip is not part of Ubuntu 20.04 any more. As I said, it > is > outdated. The support ended at the begin of this year. > Here is a tutorial on how to get it anyway: > https://linuxize.com/post/how-to-install-pip-on-ubuntu-20.04/#installing- > pip-for-python-2 > > You should use Python3 if possible. > > Best regards, > Fabian > > Am 01.09.20 um 16:49 schrieb Tim Huggins: > > That simply means that you need to install PIP on your machine which > > should be accomplished with: > > > > |sudo apt update sudo apt install python-pip| > > > > Most of these errors that you are encountering with this script seem > > to be from missing packages. > > > > Tim > > > > On Tuesday, September 1, 2020, 9:43:44 AM EDT, Vincenzo Mone > > wrote: > > > > > > Hello Fabian, > > thanks for your reply/help > > tried to give the command: > > > > pip2 install PyQt5 > > > > but I get this: > > > > Command "pip2" not found, perhaps it meant: > > > > command "pipx" from deb pipx (0.12.3.1-2ubuntu1) > > command "pip3" from deb python3-pip (20.0.2-5ubuntu1) > > command "nip2" from deb nip2 (8.7.0-1) > > > > Try: sudo apt install > > > > Any advices? > > Thanks > > > > 73’s de Enzo IK8OZV > > EasyLog 5 BetaTester > > EasyLog PDA BetaTester > > WinBollet BetaTester > > D.C.I. CheckPoint Regione Campania > > Skype: ik8ozv8520 > > > > > > > > > > * > > ** GSM +39 328 7110193 ** > > * SMS +39 328 7110193* > > * > > > >> -Messaggio originale- > >> Da: Discuss-gnuradio > >> > <mailto:alice...@gnu.org>> > >> Per conto di Fabian Schwartau > >> Inviato: martedì 1 settembre 2020 15:31 > >> A: discuss-gnuradio@gnu.org <mailto:discuss-gnuradio@gnu.org> > >> Oggetto: Re: Cannot run a command > >> > >> Hi Vincenzo, > >> > >> urllib2 is not available in Python3 any more, as far as I know. So > >> this > > seens to > >> be a Python2 script. Use > >> pip2 install PyQt5 > >> to install PyQt, then it should work. Keep in mind that Python2 is > >> out of > > date > >> and should not be used any more. > >> > >> Best regards, > >> Fabian > >> > >> Am 01.09.20 um 11:22 schrieb Vincenzo Mone: > >> > Hello , > >> > > >> > I have installed UBUNTU 20.4 and have to run one of these commands: > >> > > >> > > >> > > >> > python2 > >> > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > >> Proxy/mun_downlink_ > >> > proxy.py > >> > > >> > or > >> > > >> > python3 > >> > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > >> Proxy/mun_downlink_ > >> > proxy.py > >> > > >> > > >> > > >> > but no one works for my purpose. > >> > > >> > If I run: > >> > > >> > > >> > > >> > python2 > >> > ~/gr-lilacsat
Re: R: Cannot run a command
People, can we please stop wasting our and Vincenzo's time and keep ourselves focused. If Vincenzo tried to stick to a single Email thread, like I've repeatedly asked him to, then you would have seen that he's linking against libpython3.8. Anything python2 will not help him. Dear Vincenzo, my recommendation to stick to one thread is not because I don't want to help you, it's just because opening a new thread makes it **harder** to help you. Anything in this thread about python2, pip2 does not apply to you and will not help you. Best regards, Marcus On 02/09/2020 09.26, Fabian Schwartau wrote: Hi Tim and Vicenzo, it seems like python2 pip is not part of Ubuntu 20.04 any more. As I said, it is outdated. The support ended at the begin of this year. Here is a tutorial on how to get it anyway: https://linuxize.com/post/how-to-install-pip-on-ubuntu-20.04/#installing-pip-for-python-2 You should use Python3 if possible. Best regards, Fabian Am 01.09.20 um 16:49 schrieb Tim Huggins: That simply means that you need to install PIP on your machine which should be accomplished with: |sudo apt update sudo apt install python-pip| Most of these errors that you are encountering with this script seem to be from missing packages. Tim On Tuesday, September 1, 2020, 9:43:44 AM EDT, Vincenzo Mone wrote: Hello Fabian, thanks for your reply/help tried to give the command: pip2 install PyQt5 but I get this: Command "pip2" not found, perhaps it meant: command "pipx" from deb pipx (0.12.3.1-2ubuntu1) command "pip3" from deb python3-pip (20.0.2-5ubuntu1) command "nip2" from deb nip2 (8.7.0-1) Try: sudo apt install Any advices? Thanks 73’s de Enzo IK8OZV EasyLog 5 BetaTester EasyLog PDA BetaTester WinBollet BetaTester D.C.I. CheckPoint Regione Campania Skype: ik8ozv8520 * ** GSM +39 328 7110193 ** * SMS +39 328 7110193 * * -Messaggio originale- Da: Discuss-gnuradio <mailto:alice...@gnu.org>> Per conto di Fabian Schwartau Inviato: martedì 1 settembre 2020 15:31 A: discuss-gnuradio@gnu.org <mailto:discuss-gnuradio@gnu.org> Oggetto: Re: Cannot run a command Hi Vincenzo, urllib2 is not available in Python3 any more, as far as I know. So this seens to be a Python2 script. Use pip2 install PyQt5 to install PyQt, then it should work. Keep in mind that Python2 is out of date and should not be used any more. Best regards, Fabian Am 01.09.20 um 11:22 schrieb Vincenzo Mone: Hello , I have installed UBUNTU 20.4 and have to run one of these commands: python2 ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- Proxy/mun_downlink_ proxy.py or python3 ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- Proxy/mun_downlink_ proxy.py but no one works for my purpose. If I run: python2 ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- Proxy/mun_downlink_ proxy.py I get: Traceback (most recent call last): File "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- Proxy/mun _downlink_proxy.py", line 31, in from PyQt5 import QtGui, QtCore, Qt, QtWidgets ImportError: No module named PyQt5 If I run: python3 ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- Proxy/mun_downlink_ proxy.py I get: Traceback (most recent call last): File "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- Proxy/mun _downlink_proxy.py", line 29, in import urllib2 ModuleNotFoundError: No module named 'urllib2' Please which is the correct command and how to solve the error? Thanks 73’s de Enzo IK8OZV EasyLog 5 BetaTester EasyLog PDA BetaTester WinBollet BetaTester D.C.I. CheckPoint Regione Campania Skype: ik8ozv8520 * ** GSM +39 328 7110193 ** * SMS +39 328 7110193 * *
Re: R: Cannot run a command
Hi Tim and Vicenzo, it seems like python2 pip is not part of Ubuntu 20.04 any more. As I said, it is outdated. The support ended at the begin of this year. Here is a tutorial on how to get it anyway: https://linuxize.com/post/how-to-install-pip-on-ubuntu-20.04/#installing-pip-for-python-2 You should use Python3 if possible. Best regards, Fabian Am 01.09.20 um 16:49 schrieb Tim Huggins: > That simply means that you need to install PIP on your machine which > should be accomplished with: > > |sudo apt update sudo apt install python-pip| > > Most of these errors that you are encountering with this script seem to > be from missing packages. > > Tim > > On Tuesday, September 1, 2020, 9:43:44 AM EDT, Vincenzo Mone > wrote: > > > Hello Fabian, > thanks for your reply/help > tried to give the command: > > pip2 install PyQt5 > > but I get this: > > Command "pip2" not found, perhaps it meant: > > command "pipx" from deb pipx (0.12.3.1-2ubuntu1) > command "pip3" from deb python3-pip (20.0.2-5ubuntu1) > command "nip2" from deb nip2 (8.7.0-1) > > Try: sudo apt install > > Any advices? > Thanks > > 73’s de Enzo IK8OZV > EasyLog 5 BetaTester > EasyLog PDA BetaTester > WinBollet BetaTester > D.C.I. CheckPoint Regione Campania > Skype: ik8ozv8520 > > > > > * > ** GSM +39 328 7110193 ** > * SMS +39 328 7110193 * > * > >> -Messaggio originale- >> Da: Discuss-gnuradio <mailto:alice...@gnu.org>> >> Per conto di Fabian Schwartau >> Inviato: martedì 1 settembre 2020 15:31 >> A: discuss-gnuradio@gnu.org <mailto:discuss-gnuradio@gnu.org> >> Oggetto: Re: Cannot run a command >> >> Hi Vincenzo, >> >> urllib2 is not available in Python3 any more, as far as I know. So this > seens to >> be a Python2 script. Use >> pip2 install PyQt5 >> to install PyQt, then it should work. Keep in mind that Python2 is out of > date >> and should not be used any more. >> >> Best regards, >> Fabian >> >> Am 01.09.20 um 11:22 schrieb Vincenzo Mone: >> > Hello , >> > >> > I have installed UBUNTU 20.4 and have to run one of these commands: >> > >> > >> > >> > python2 >> > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- >> Proxy/mun_downlink_ >> > proxy.py >> > >> > or >> > >> > python3 >> > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- >> Proxy/mun_downlink_ >> > proxy.py >> > >> > >> > >> > but no one works for my purpose. >> > >> > If I run: >> > >> > >> > >> > python2 >> > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- >> Proxy/mun_downlink_ >> > proxy.py >> > >> > >> > >> > I get: >> > >> > >> > >> > Traceback (most recent call last): >> > >> > File >> > "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- >> Proxy/mun >> > _downlink_proxy.py", >> > line 31, in >> > >> > from PyQt5 import QtGui, QtCore, Qt, QtWidgets >> > >> > ImportError: No module named PyQt5 >> > >> > >> > >> > If I run: >> > >> > >> > >> > python3 >> > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- >> Proxy/mun_downlink_ >> > proxy.py >> > >> > >> > >> > I get: >> > >> > >> > >> > Traceback (most recent call last): >> > >> > File >> > "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- >> Proxy/mun >> > _downlink_proxy.py", >> > line 29, in >> > >> > import urllib2 >> > >> > ModuleNotFoundError: No module named 'urllib2' >> > >> > >> > >> > Please which is the correct command and how to solve the error? >> > >> > Thanks >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > 73’s de Enzo IK8OZV >> > EasyLog 5 BetaTester >> > EasyLog PDA BetaTester >> > WinBollet BetaTester >> > D.C.I. CheckPoint Regione Campania >> > Skype: ik8ozv8520 >> > >> > >> > >> > >> > * >> > >> > ** GSM +39 328 7110193 ** >> > >> > * SMS +39 328 7110193 * >> > >> > * >> > >> > >> > > >
Re: R: Cannot run a command
That simply means that you need to install PIP on your machine which should be accomplished with: sudo apt update sudo apt install python-pipMost of these errors that you are encountering with this script seem to be from missing packages. Tim On Tuesday, September 1, 2020, 9:43:44 AM EDT, Vincenzo Mone wrote: Hello Fabian, thanks for your reply/help tried to give the command: pip2 install PyQt5 but I get this: Command "pip2" not found, perhaps it meant: command "pipx" from deb pipx (0.12.3.1-2ubuntu1) command "pip3" from deb python3-pip (20.0.2-5ubuntu1) command "nip2" from deb nip2 (8.7.0-1) Try: sudo apt install Any advices? Thanks 73’s de Enzo IK8OZV EasyLog 5 BetaTester EasyLog PDA BetaTester WinBollet BetaTester D.C.I. CheckPoint Regione Campania Skype: ik8ozv8520 * ** GSM +39 328 7110193 ** * SMS +39 328 7110193 * * > -Messaggio originale- > Da: Discuss-gnuradio > Per conto di Fabian Schwartau > Inviato: martedì 1 settembre 2020 15:31 > A: discuss-gnuradio@gnu.org > Oggetto: Re: Cannot run a command > > Hi Vincenzo, > > urllib2 is not available in Python3 any more, as far as I know. So this seens to > be a Python2 script. Use > pip2 install PyQt5 > to install PyQt, then it should work. Keep in mind that Python2 is out of date > and should not be used any more. > > Best regards, > Fabian > > Am 01.09.20 um 11:22 schrieb Vincenzo Mone: > > Hello , > > > > I have installed UBUNTU 20.4 and have to run one of these commands: > > > > > > > > python2 > > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun_downlink_ > > proxy.py > > > > or > > > > python3 > > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun_downlink_ > > proxy.py > > > > > > > > but no one works for my purpose. > > > > If I run: > > > > > > > > python2 > > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun_downlink_ > > proxy.py > > > > > > > > I get: > > > > > > > > Traceback (most recent call last): > > > > File > > "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun > > _downlink_proxy.py", > > line 31, in > > > > from PyQt5 import QtGui, QtCore, Qt, QtWidgets > > > > ImportError: No module named PyQt5 > > > > > > > > If I run: > > > > > > > > python3 > > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun_downlink_ > > proxy.py > > > > > > > > I get: > > > > > > > > Traceback (most recent call last): > > > > File > > "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun > > _downlink_proxy.py", > > line 29, in > > > > import urllib2 > > > > ModuleNotFoundError: No module named 'urllib2' > > > > > > > > Please which is the correct command and how to solve the error? > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 73’s de Enzo IK8OZV > > EasyLog 5 BetaTester > > EasyLog PDA BetaTester > > WinBollet BetaTester > > D.C.I. CheckPoint Regione Campania > > Skype: ik8ozv8520 > > > > > > > > > > * > > > > ** GSM +39 328 7110193 ** > > > > * SMS +39 328 7110193 * > > > > * > > > > > >
R: Cannot run a command
Hello Fabian, thanks for your reply/help tried to give the command: pip2 install PyQt5 but I get this: Command "pip2" not found, perhaps it meant: command "pipx" from deb pipx (0.12.3.1-2ubuntu1) command "pip3" from deb python3-pip (20.0.2-5ubuntu1) command "nip2" from deb nip2 (8.7.0-1) Try: sudo apt install Any advices? Thanks 73s de Enzo IK8OZV EasyLog 5 BetaTester EasyLog PDA BetaTester WinBollet BetaTester D.C.I. CheckPoint Regione Campania Skype: ik8ozv8520 * ** GSM +39 328 7110193 ** * SMS +39 328 7110193 * * > -Messaggio originale- > Da: Discuss-gnuradio > Per conto di Fabian Schwartau > Inviato: martedì 1 settembre 2020 15:31 > A: discuss-gnuradio@gnu.org > Oggetto: Re: Cannot run a command > > Hi Vincenzo, > > urllib2 is not available in Python3 any more, as far as I know. So this seens to > be a Python2 script. Use > pip2 install PyQt5 > to install PyQt, then it should work. Keep in mind that Python2 is out of date > and should not be used any more. > > Best regards, > Fabian > > Am 01.09.20 um 11:22 schrieb Vincenzo Mone: > > Hello , > > > > I have installed UBUNTU 20.4 and have to run one of these commands: > > > > > > > > python2 > > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun_downlink_ > > proxy.py > > > > or > > > > python3 > > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun_downlink_ > > proxy.py > > > > > > > > but no one works for my purpose. > > > > If I run: > > > > > > > > python2 > > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun_downlink_ > > proxy.py > > > > > > > > I get: > > > > > > > > Traceback (most recent call last): > > > > File > > "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun > > _downlink_proxy.py", > > line 31, in > > > > from PyQt5 import QtGui, QtCore, Qt, QtWidgets > > > > ImportError: No module named PyQt5 > > > > > > > > If I run: > > > > > > > > python3 > > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun_downlink_ > > proxy.py > > > > > > > > I get: > > > > > > > > Traceback (most recent call last): > > > > File > > "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun > > _downlink_proxy.py", > > line 29, in > > > > import urllib2 > > > > ModuleNotFoundError: No module named 'urllib2' > > > > > > > > Please which is the correct command and how to solve the error? > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 73s de Enzo IK8OZV > > EasyLog 5 BetaTester > > EasyLog PDA BetaTester > > WinBollet BetaTester > > D.C.I. CheckPoint Regione Campania > > Skype: ik8ozv8520 > > > > > > > > > > * > > > > ** GSM +39 328 7110193 ** > > > > * SMS +39 328 7110193 * > > > > * > > > > > >
Re: Cannot run a command
Hi Vincenzo, urllib2 is not available in Python3 any more, as far as I know. So this seens to be a Python2 script. Use pip2 install PyQt5 to install PyQt, then it should work. Keep in mind that Python2 is out of date and should not be used any more. Best regards, Fabian Am 01.09.20 um 11:22 schrieb Vincenzo Mone: > Hello , > > I have installed UBUNTU 20.4 and have to run one of these commands: > > > > python2 > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py > > or > > python3 > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py > > > > but no one works for my purpose. > > If I run: > > > > python2 > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py > > > > I get: > > > > Traceback (most recent call last): > > File > "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py", > line 31, in > > from PyQt5 import QtGui, QtCore, Qt, QtWidgets > > ImportError: No module named PyQt5 > > > > If I run: > > > > python3 > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py > > > > I get: > > > > Traceback (most recent call last): > > File > "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py", > line 29, in > > import urllib2 > > ModuleNotFoundError: No module named 'urllib2' > > > > Please which is the correct command and how to solve the error? > > Thanks > > > > > > > > > > > > > > > > > > 73’s de Enzo IK8OZV > EasyLog 5 BetaTester > EasyLog PDA BetaTester > WinBollet BetaTester > D.C.I. CheckPoint Regione Campania > Skype: ik8ozv8520 > > > > > * > > ** GSM +39 328 7110193 ** > > * SMS +39 328 7110193 * > > * > > >
R: Cannot run a command
Sorry Marcus, I have opened a new thread as it is, how you can see another problem. The other issue seems to be OK but not quite sure as you have not replied yet to my last email. Thanks 73’s de Enzo IK8OZV EasyLog 5 BetaTester EasyLog PDA BetaTester WinBollet BetaTester D.C.I. CheckPoint Regione Campania Skype: ik8ozv8520 * ** GSM +39 328 7110193 ** * SMS +39 328 7110193* * > -Messaggio originale- > Da: Discuss-gnuradio > Per conto di Marcus Müller > Inviato: martedì 1 settembre 2020 14:28 > A: discuss-gnuradio@gnu.org > Oggetto: Re: Cannot run a command > > Hi Vincenzo, > > again, having multiple different threads where you were working on multiple > things at once turned out pretty badly for you in the past, because it was > confusing. > > I'd recommend we focus on the fun cube dongle aspect first. It's not even > been 16 hours that you asked about that. I don't think you get further if you > just try to solve many things at once. > > Best regards, > Marcus > > On 01/09/2020 11.22, Vincenzo Mone wrote: > > Hello , > > > > I have installed UBUNTU 20.4 and have to run one of these commands: > > > > python2 > > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun_downlink_ > > proxy.py > > > > or > > > > python3 > > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun_downlink_ > > proxy.py > > > > but no one works for my purpose. > > > > If I run: > > > > python2 > > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun_downlink_ > > proxy.py > > > > I get: > > > > Traceback (most recent call last): > > > >File > > "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun > > _downlink_proxy.py", > > line 31, in > > > > from PyQt5 import QtGui, QtCore, Qt, QtWidgets > > > > ImportError: No module named PyQt5 > > > > If I run: > > > > python3 > > ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun_downlink_ > > proxy.py > > > > I get: > > > > Traceback (most recent call last): > > > >File > > "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink- > Proxy/mun > > _downlink_proxy.py", > > line 29, in > > > > import urllib2 > > > > ModuleNotFoundError: No module named 'urllib2' > > > > Please which is the correct command and how to solve the error? > > > > Thanks > > > > 73’s de Enzo IK8OZV > > EasyLog 5 BetaTester > > EasyLog PDA BetaTester > > WinBollet BetaTester > > D.C.I. CheckPoint Regione Campania > > Skype: ik8ozv8520 > > > > > > > > > >* > > > > ** GSM +39 328 7110193 ** > > > >* SMS +39 328 7110193* > > > >* > >
Re: Cannot run a command
Hi Vincenzo, again, having multiple different threads where you were working on multiple things at once turned out pretty badly for you in the past, because it was confusing. I'd recommend we focus on the fun cube dongle aspect first. It's not even been 16 hours that you asked about that. I don't think you get further if you just try to solve many things at once. Best regards, Marcus On 01/09/2020 11.22, Vincenzo Mone wrote: Hello , I have installed UBUNTU 20.4 and have to run one of these commands: python2 ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py or python3 ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py but no one works for my purpose. If I run: python2 ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py I get: Traceback (most recent call last): File "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py", line 31, in from PyQt5 import QtGui, QtCore, Qt, QtWidgets ImportError: No module named PyQt5 If I run: python3 ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py I get: Traceback (most recent call last): File "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy.py", line 29, in import urllib2 ModuleNotFoundError: No module named 'urllib2' Please which is the correct command and how to solve the error? Thanks 73’s de Enzo IK8OZV EasyLog 5 BetaTester EasyLog PDA BetaTester WinBollet BetaTester D.C.I. CheckPoint Regione Campania Skype: ik8ozv8520 * ** GSM +39 328 7110193 ** * SMS +39 328 7110193 * *
Cannot run a command
Hello , I have installed UBUNTU 20.4 and have to run one of these commands: python2 ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy. py or python3 ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy. py but no one works for my purpose. If I run: python2 ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy. py I get: Traceback (most recent call last): File "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downl ink_proxy.py", line 31, in from PyQt5 import QtGui, QtCore, Qt, QtWidgets ImportError: No module named PyQt5 If I run: python3 ~/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downlink_proxy. py I get: Traceback (most recent call last): File "/home/enzo/gr-lilacsat-pyqt5/examples/BY70-2/DSLWP-Downlink-Proxy/mun_downl ink_proxy.py", line 29, in import urllib2 ModuleNotFoundError: No module named 'urllib2' Please which is the correct command and how to solve the error? Thanks 73's de Enzo IK8OZV EasyLog 5 BetaTester EasyLog PDA BetaTester WinBollet BetaTester D.C.I. CheckPoint Regione Campania Skype: ik8ozv8520 * ** GSM +39 328 7110193 ** * SMS +39 328 7110193* *