Coder Social home page Coder Social logo

ft8commander's People

Contributors

0x9900 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

roelandjansen

ft8commander's Issues

AttributeError: module 'urllib' has no attribute 'request'

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

OSError: [Errno 9] Bad file descriptor in plugins\base.py", line 76, in __new__ tsize = os.get_terminal_size()

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 = os.get_terminal_size()

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.

Call selector not found: "POTA"

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.