Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Debugging cloned Python code - part 2(Clone prolem )
Debugging cloned Python code - part 2 [message #1859809] Wed, 28 June 2023 13:58
Anne Ranch is currently offline Anne RanchFriend
Messages: 85
Registered: October 2020
Member
index.php/fa/43296/0/

When I finally managed to partially "reverse engineer" cloned Python code I ended up with the above modified "about.py" module - I did add some text, and tool tip , and changed the window title...

I now have totally new Python project ( new workspace, new clone ) and I cannot figure out HOW I am getting the above module.
I can step thru my new project, but I cannot get into the NEW "about.py" module.

I did try "grep" for "AA7Ej" text but it took way too much time so I terminated it.

I really do not care to keep the modified "about.py" but have no idea HOW to make sure the new project does not use it.

What makes it harder to fix - the "project" has TWO "about.py" modules - I do not know why , but that cannot be the issue.

Any suggestion HOW to fix this will be greatly appreciated.



Here is a "code trace " of the problem. I will delete it when resolved .

NanoVNASaver 0.5.4-pre

Copyright (C) 2019, 2020 Rune B. Broberg
Copyright (C) 2020ff NanoVNA-Saver Authors

This program comes with ABSOLUTELY NO WARRANTY
This program is licensed under the GNU General Public License version 3

See https://github.com/NanoVNA-Saver/nanovna-saver for further details.

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QLayout: Cannot add a null widget to QHBoxLayout/
WARNING:root:DEBUG Show NanoVNASaver main window
2023-06-28 09:32:27,260 - NanoVNASaver.Windows.About - ERROR - Checking for updates produced an HTTP exception: HTTP Error 404: Not Found

WHAT IS THIS ???

Traceback (most recent call last):
File "/home/nov25-1/.local/lib/python3.10/site-packages/NanoVNASaver/Windows/About.py", line 153, in findUpdates

WHAT IS THIS ???



for line in request.urlopen(req, timeout=3):
File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.10/urllib/request.py", line 525, in open
response = meth(req, response)
File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
response = self.parent.error(
File "/usr/lib/python3.10/urllib/request.py", line 563, in error
return self._call_chain(*args)
File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)'


THIS IS EXPECTED "ERROR"
urllib.error.HTTPError: HTTP Error 404: Not Found
ERROR:NanoVNASaver.Windows.About:Checking for updates produced an HTTP exception: HTTP Error 404: Not Found
THIS IS EXPECTED "ERROR"


Traceback (most recent call last):
File "/home/nov25-1/.local/lib/python3.10/site-packages/NanoVNASaver/Windows/About.py", line 153, in findUpdates
for line in request.urlopen(req, timeout=3):
File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.10/urllib/request.py", line 525, in open
response = meth(req, response)
File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
response = self.parent.error(
File "/usr/lib/python3.10/urllib/request.py", line 563, in error
return self._call_chain(*args)
File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
2023-06-28 09:32:27,376 - NanoVNASaver.Windows.About - ERROR - Checking for updates produced an HTTP exception: HTTP Error 404: Not Found
Traceback (most recent call last):
File "/home/nov25-1/.local/lib/python3.10/site-packages/NanoVNASaver/Windows/About.py", line 153, in findUpdates
for line in request.urlopen(req, timeout=3):
File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.10/urllib/request.py", line 525, in open
response = meth(req, response)
File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
response = self.parent.error(
File "/usr/lib/python3.10/urllib/request.py", line 563, in error
return self._call_chain(*args)
File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
ERROR:NanoVNASaver.Windows.About:Checking for updates produced an HTTP exception: HTTP Error 404: Not Found
Traceback (most recent call last):
File "/home/nov25-1/.local/lib/python3.10/site-packages/NanoVNASaver/Windows/About.py", line 153, in findUpdates
for line in request.urlopen(req, timeout=3):
File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.10/urllib/request.py", line 525, in open
response = meth(req, response)
File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
response = self.parent.error(
File "/usr/lib/python3.10/urllib/request.py", line 563, in error
return self._call_chain(*args)
File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
DEBUG:NanoVNASaver.Defaults:storing
(
CFG(gui=GUI(window_height=1016, window_width=1846, font_size=10, custom_colors=False, dark_mode=True, splitter_sizes=PyQt5.QtCore.QByteArray(b'\x00\x00\x00\xff\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x01V\x00\x00\x02f\x01\xff\xff\xff\xff\x01\x00\x00\x00\x01\x00'), markers_hidden=False), charts_selected=ChartsSelected(chart_00='S11 Smith Chart', chart_01='S11 Return Loss', chart_02='None', chart_10='S21 Polar Plot', chart_11='S21 Gain', chart_12='None'), chart=Chart(point_size=2, show_lines=True, line_thickness=3, marker_count=3, marker_label=False, marker_filled=False, marker_at_tip=False, marker_size=10, returnloss_is_positive=False, show_bands=False, vswr_lines=[]), chart_colors=ChartColors(background=<PyQt5.QtGui.QColor object at 0x7fc91772d7e0>, foreground=<PyQt5.QtGui.QColor object at 0x7fc91772d850>, reference=<PyQt5.QtGui.QColor object at 0x7fc91772d8c0>, reference_secondary=<PyQt5.QtGui.QColor object at 0x7fc91772d930>, sweep=<PyQt5.QtGui.QColor object at 0x7fc91772d9a0>, sweep_secondary=<PyQt5.QtGui.QColor object at 0x7fc91772da10>, swr=<PyQt5.QtGui.QColor object at 0x7fc91772da80>, text=<PyQt5.QtGui.QColor object at 0x7fc91772daf0>, bands=<PyQt5.QtGui.QColor object at 0x7fc91772db60>), markers=Markers(active_labels=['actualfreq', 'impedance', 'serr', 'serl', 'serc', 'parr', 'parlc', 'vswr', 'returnloss', 's11q', 's11phase', 's21gain', 's21phase'], colored_names=True, color_0=<PyQt5.QtGui.QColor object at 0x7fc91772dbd0>, color_1=<PyQt5.QtGui.QColor object at 0x7fc91772dc40>, color_2=<PyQt5.QtGui.QColor object at 0x7fc91772dcb0>, color_3=<PyQt5.QtGui.QColor object at 0x7fc91772dd20>, color_4=<PyQt5.QtGui.QColor object at 0x7fc91772dd90>, color_5=<PyQt5.QtGui.QColor object at 0x7fc91772de00>, color_6=<PyQt5.QtGui.QColor object at 0x7fc91772de70>, color_7=<PyQt5.QtGui.QColor object at 0x7fc91772dee0>))
)














[Updated on: Wed, 28 June 2023 14:41]

Report message to a moderator

Previous Topic:Question: How to Uninstall "Eclipse IDE for Java Developers" Software?
Next Topic:Project or repository ?
Goto Forum:
  


Current Time: Sat Apr 27 13:44:44 GMT 2024

Powered by FUDForum. Page generated in 0.07831 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top