Re: memory errors in 3.8.2

2020-09-06 Thread Ron Economos

A few notes:

1) The automatic update may be bad. The GNU Radio PPA has other 
procedural problems and this may be another.


2) Your OOT may be over-writing some Python code. I've seen this before. 
The different error behavior depends on exactly where your code got 
loaded in memory.


3) Believe it or not, the module destructor never gets called in GNU Radio.

Ron

On 9/6/20 14:48, Tom McDermott wrote:

My Ubuntu 20.04 updated automatically to 3.8.2.

SInce the update I have been getting memory error messages in the 
gnuradio-companion terminal window.
These errors did not occur in 3.8.1.  The error is not consistent, 
always get one of the following three error messages:


double free or corruption (!prev)

malloc_consolidate(): invalid chunk size
Aborted (core dumped)

corrupted size vs. prev_size while consolidating

Have commented out all instances of delete [] in my destructors, but 
no change to the errors. No instances of free() in my code.


The errors occur after stopping the flowgraph from gnuradio-companion.
I was able to catch the "corrupted size vs. prev_size while 
consolidating"   error using gdb  (OOT built with 
-DCMAKE_BUYILD_TYPE=Debug).


Thread 1 "python3" received signal SIGINT, Interrupt.
0x77ed396f in __GI___poll (fds=0x22c9990, nfds=4, timeout=14712)
    at ../sysdeps/unix/sysv/linux/poll.c:29
29 ../sysdeps/unix/sysv/linux/poll.c: No such file or directory.
(gdb) bt
#0  0x77ed396f in __GI___poll (fds=0x22c9990, nfds=4, 
timeout=14712)

    at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x739cc1ae in ?? () from 
/lib/x86_64-linux-gnu/libglib-2.0.so.0

#2  0x739cc2e3 in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x73770fd5 in g_application_run ()
   from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x7524fff5 in ?? () from /lib/x86_64-linux-gnu/libffi.so.7
#5  0x7524f40a in ?? () from /lib/x86_64-linux-gnu/libffi.so.7
#6  0x73ae50a5 in ?? ()
   from 
/usr/lib/python3/dist-packages/gi/_gi.cpython-38-x86_64-linux-gnu.so 


#7  0x73adc25c in ?? ()
   from 
/usr/lib/python3/dist-packages/gi/_gi.cpython-38-x86_64-linux-gnu.so 


#8  0x005f118e in PyObject_Call ()
#9  0x00568e1f in _PyEval_EvalFrameDefault ()
#10 0x00565972 in _PyEval_EvalCodeWithName ()
#11 0x005f1d85 in _PyFunction_Vectorcall ()
#12 0x005677c7 in _PyEval_EvalFrameDefault ()
#13 0x005f1b8b in _PyFunction_Vectorcall ()
#14 0x0056769f in _PyEval_EvalFrameDefault ()
#15 0x005f1b8b in _PyFunction_Vectorcall ()
#16 0x0056769f in _PyEval_EvalFrameDefault ()
#17 0x00565972 in _PyEval_EvalCodeWithName ()
--Type  for more, q to quit, c to continue without paging--
#18 0x00686053 in PyEval_EvalCode ()
#19 0x006753d1 in ?? ()
#20 0x0067544f in ?? ()
#21 0x00675507 in PyRun_FileExFlags ()
#22 0x0067758a in PyRun_SimpleFileExFlags ()
#23 0x006ae99e in Py_RunMain ()
#24 0x006aed29 in Py_BytesMain ()
#25 0x77de50b3 in __libc_start_main (main=0x4ebd20 , 
argc=2,

    argv=0x7fffe028, init=, fini=,
    rtld_fini=, stack_end=0x7fffe018) at 
../csu/libc-start.c:308

#26 0x005f62ee in _start ()

-- Tom, N5EG



memory errors in 3.8.2

2020-09-06 Thread Tom McDermott
My Ubuntu 20.04 updated automatically to 3.8.2.

SInce the update I have been getting memory error messages in the
gnuradio-companion terminal window.
These errors did not occur in 3.8.1.  The error is not consistent, always
get one of the following three error messages:

double free or corruption (!prev)

malloc_consolidate(): invalid chunk size
Aborted (core dumped)

corrupted size vs. prev_size while consolidating

Have commented out all instances of delete [] in my destructors, but no
change to the errors. No instances of free() in my code.

The errors occur after stopping the flowgraph from gnuradio-companion.
I was able to catch the "corrupted size vs. prev_size while consolidating"
  error using gdb  (OOT built with -DCMAKE_BUYILD_TYPE=Debug).

Thread 1 "python3" received signal SIGINT, Interrupt.
0x77ed396f in __GI___poll (fds=0x22c9990, nfds=4, timeout=14712)
at ../sysdeps/unix/sysv/linux/poll.c:29
29 ../sysdeps/unix/sysv/linux/poll.c: No such file or directory.
(gdb) bt
#0  0x77ed396f in __GI___poll (fds=0x22c9990, nfds=4, timeout=14712)
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x739cc1ae in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x739cc2e3 in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x73770fd5 in g_application_run ()
   from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x7524fff5 in ?? () from /lib/x86_64-linux-gnu/libffi.so.7
#5  0x7524f40a in ?? () from /lib/x86_64-linux-gnu/libffi.so.7
#6  0x73ae50a5 in ?? ()
   from /usr/lib/python3/dist-packages/gi/_gi.cpython-38-x86_64-linux-gnu.so
#7  0x73adc25c in ?? ()
   from /usr/lib/python3/dist-packages/gi/_gi.cpython-38-x86_64-linux-gnu.so
#8  0x005f118e in PyObject_Call ()
#9  0x00568e1f in _PyEval_EvalFrameDefault ()
#10 0x00565972 in _PyEval_EvalCodeWithName ()
#11 0x005f1d85 in _PyFunction_Vectorcall ()
#12 0x005677c7 in _PyEval_EvalFrameDefault ()
#13 0x005f1b8b in _PyFunction_Vectorcall ()
#14 0x0056769f in _PyEval_EvalFrameDefault ()
#15 0x005f1b8b in _PyFunction_Vectorcall ()
#16 0x0056769f in _PyEval_EvalFrameDefault ()
#17 0x00565972 in _PyEval_EvalCodeWithName ()
--Type  for more, q to quit, c to continue without paging--
#18 0x00686053 in PyEval_EvalCode ()
#19 0x006753d1 in ?? ()
#20 0x0067544f in ?? ()
#21 0x00675507 in PyRun_FileExFlags ()
#22 0x0067758a in PyRun_SimpleFileExFlags ()
#23 0x006ae99e in Py_RunMain ()
#24 0x006aed29 in Py_BytesMain ()
#25 0x77de50b3 in __libc_start_main (main=0x4ebd20 , argc=2,
argv=0x7fffe028, init=, fini=,
rtld_fini=, stack_end=0x7fffe018) at
../csu/libc-start.c:308
#26 0x005f62ee in _start ()

-- Tom, N5EG


R: R: Cannot run a command

2020-09-06 Thread Vincenzo Mone
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.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'

 

You will have to run 2to3 on all the scripts that get called 

R: R: Cannot run a command

2020-09-06 Thread Vincenzo Mone
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't do.  Your python script you are trying to get running has a line in it 
import urllib2.  This module existed in python2, but has been renamed in 
python3.  My best advice is to run 2to3, which is a program to convert python 
scripts from python2 to python3, on your 

R: R: R: Cannot run a command

2020-09-06 Thread Vincenzo Mone
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 <  
> 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

> .)  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

2020-09-06 Thread Vincenzo Mone
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 <  
> 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

> .)  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

2020-09-06 Thread Vincenzo Mone
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*
> >>>
> >>>*
> >>>
> >>>
> >>>
> >
> >
> >