0x9900 / ft8commander Goto Github PK
View Code? Open in Web Editor NEWQSO Automation for WSJT
License: BSD 2-Clause "Simplified" License
QSO Automation for WSJT
License: BSD 2-Clause "Simplified" License
Windows Version throws error "AttributeError: module 'urllib' has no attribute 'request'"
I changed my local copy of _dxentity.py to import urllib.request at line 14
#add import urllib.request to fix "AttributeError: module 'urllib' has no attribute 'request'"
import urllib.request
This is the error that stopped me when I was porting over to windows in December.
I am using Python 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32
I am getting the following error when I hit the get_terminal_size statement in base.py.
= RESTART: C:\FT8Commander-fred-windows\ft8ctrl.py
21:34:38 - INFO 121:dbutils - Database: C:\Users\mjpat\ft8ctl.sql
21:34:38 - ERROR 75:_dxentity - DXEntity cache not found or expired
21:34:38 - INFO 86:_dxentity - Download https://www.country-files.com/cty/cty.plist
21:34:41 - INFO 93:_dxentity - Create cty cache: C:\Users\mjpat.local\cty
21:38:20 - INFO 155:dbutils - Datebase Insert thread started
21:38:20 - INFO 199:ft8ctrl - Call selector: DXCC100, POTA, Any
21:38:20 - INFO 235:dbutils - Purge thread started (retry_time 15 minutes)
Traceback (most recent call last):
File "C:\FT8Commander-fred-windows\ft8ctrl.py", line 293, in
main()
File "C:\FT8Commander-fred-windows\ft8ctrl.py", line 282, in main
call_select = LoadPlugins(config.call_selector)
File "C:\FT8Commander-fred-windows\ft8ctrl.py", line 213, in init
self.call_select.append(klass())
File "C:\FT8Commander-fred-windows\plugins\special.py", line 19, in init
super().init()
File "C:\FT8Commander-fred-windows\plugins\base.py", line 109, in init
self.blacklist = BlackList()
File "C:\FT8Commander-fred-windows\plugins\base.py", line 76, in new
tsize = os.get_terminal_size()
OSError: [Errno 9] Bad file descriptor
I tried the following but did not resolve the problem.
#make changes to address runtime error
tsize = shutil.get_terminal_size()
width = tsize.columns - 50
_bl = ', '.join(c for c in cls.blacklist)[:width]
_bl = _bl[:_bl.rindex(',')]
cls.log.info("BlackList: %s...", _bl)
Not sure what's causing the error.
c:\FT8Commander-fred-windows>python ft8ctrl.py
22:33:06 - INFO 121:dbutils - Database: C:\Users\mjpat\ft8ctl.sql
22:33:07 - INFO 79:_dxentity - Using DXCC cache C:\Users\mjpat.local\cty
22:33:07 - INFO 155:dbutils - Datebase Insert thread started
22:33:07 - INFO 235:dbutils - Purge thread started (retry_time 15 minutes)
22:33:07 - INFO 199:ft8ctrl - Call selector: DXCC100, POTA, Any
22:33:07 - INFO 80:base - BlackList: KC5TT, KD7DPS, VA7QI, W5JDC...
22:33:07 - ERROR 211:ft8ctrl - Call selector not found: "POTA"
"POTA" not found
I know you showed me the module and line to change but I have been searching all the files for POTA and can't find it.
What file/line am I supposed to change to remove the POTA selector?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.