craigerl / aprsd

Amateur radio APRS daemon which listens for messages and responds. By KM6LYW.
Apache License 2.0
134 stars 20 forks source link

AttributeError: 'NoneType' object has no attribute 'text' when running list-plugins command #92

Closed ranguli closed 1 year ago

ranguli commented 1 year ago

On Python 3.9 and aprsd 2.5.9 I'm getting the following error when running aprsd list-plugins

aprsd list-plugins
                                                           🐍 APRSD Built-in Plugins 🐍                                                           
┏━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Plugin Name            ┃ Info                                                       ┃ Type         ┃ Plugin Path                               ┃
┑━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
β”‚ AVWXWeatherPlugin      β”‚ AVWX weather of GPS Beacon location                        β”‚ RegexCommand β”‚ aprsd.plugins.weather.AVWXWeatherPlugin   β”‚
β”‚ EmailPlugin            β”‚ Send and Receive email                                     β”‚ RegexCommand β”‚ aprsd.plugins.email.EmailPlugin           β”‚
β”‚ FortunePlugin          β”‚ Give me a fortune                                          β”‚ RegexCommand β”‚ aprsd.plugins.fortune.FortunePlugin       β”‚
β”‚ LocationPlugin         β”‚ Where in the world is a CALLSIGN's last GPS beacon?        β”‚ RegexCommand β”‚ aprsd.plugins.location.LocationPlugin     β”‚
β”‚ NotifySeenPlugin       β”‚ Notify me when a CALLSIGN is recently seen on APRS-IS      β”‚ WatchList    β”‚ aprsd.plugins.notify.NotifySeenPlugin     β”‚
β”‚ OWMWeatherPlugin       β”‚ OpenWeatherMap weather of GPS Beacon location              β”‚ RegexCommand β”‚ aprsd.plugins.weather.OWMWeatherPlugin    β”‚
β”‚ PingPlugin             β”‚ reply with a Pong!                                         β”‚ RegexCommand β”‚ aprsd.plugins.ping.PingPlugin             β”‚
β”‚ QueryPlugin            β”‚ APRSD Owner command to query messages in the MsgTrack      β”‚ RegexCommand β”‚ aprsd.plugins.query.QueryPlugin           β”‚
β”‚ TimeOWMPlugin          β”‚ Current time of GPS beacon's timezone. Uses OpenWeatherMap β”‚ RegexCommand β”‚ aprsd.plugins.time.TimeOWMPlugin          β”‚
β”‚ TimeOpenCageDataPlugin β”‚ Current time of GPS beacon timezone. Uses OpenCage         β”‚ RegexCommand β”‚ aprsd.plugins.time.TimeOpenCageDataPlugin β”‚
β”‚ TimePlugin             β”‚ What is the current local time.                            β”‚ RegexCommand β”‚ aprsd.plugins.time.TimePlugin             β”‚
β”‚ USMetarPlugin          β”‚ USA only METAR of GPS Beacon location                      β”‚ RegexCommand β”‚ aprsd.plugins.weather.USMetarPlugin       β”‚
β”‚ USWeatherPlugin        β”‚ Provide USA only weather of GPS Beacon location            β”‚ RegexCommand β”‚ aprsd.plugins.weather.USWeatherPlugin     β”‚
β”‚ VersionPlugin          β”‚ What is the APRSD Version                                  β”‚ RegexCommand β”‚ aprsd.plugins.version.VersionPlugin       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
Traceback (most recent call last):
  File "/home/joshua/.cache/pypoetry/virtualenvs/aprsbot-ZiE1qwAt-py3.9/bin/aprsd", line 8, in <module>
    sys.exit(main())
  File "/home/joshua/.cache/pypoetry/virtualenvs/aprsbot-ZiE1qwAt-py3.9/lib/python3.9/site-packages/aprsd/aprsd.py", line 73, in main
    cli()
  File "/home/joshua/.cache/pypoetry/virtualenvs/aprsbot-ZiE1qwAt-py3.9/lib/python3.9/site-packages/click/core.py", line 1137, in __call__
    return self.main(*args, **kwargs)
  File "/home/joshua/.cache/pypoetry/virtualenvs/aprsbot-ZiE1qwAt-py3.9/lib/python3.9/site-packages/click/core.py", line 1062, in main
    rv = self.invoke(ctx)
  File "/home/joshua/.cache/pypoetry/virtualenvs/aprsbot-ZiE1qwAt-py3.9/lib/python3.9/site-packages/click/core.py", line 1668, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/joshua/.cache/pypoetry/virtualenvs/aprsbot-ZiE1qwAt-py3.9/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/joshua/.cache/pypoetry/virtualenvs/aprsbot-ZiE1qwAt-py3.9/lib/python3.9/site-packages/click/core.py", line 763, in invoke
    return __callback(*args, **kwargs)
  File "/home/joshua/.cache/pypoetry/virtualenvs/aprsbot-ZiE1qwAt-py3.9/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/joshua/.cache/pypoetry/virtualenvs/aprsbot-ZiE1qwAt-py3.9/lib/python3.9/site-packages/aprsd/cli_helper.py", line 86, in new_func
    return f(*args, **kwargs)
  File "/home/joshua/.cache/pypoetry/virtualenvs/aprsbot-ZiE1qwAt-py3.9/lib/python3.9/site-packages/aprsd/cmds/list_plugins.py", line 239, in list_plugins
    show_pypi_plugins(installed_plugins, console)
  File "/home/joshua/.cache/pypoetry/virtualenvs/aprsbot-ZiE1qwAt-py3.9/lib/python3.9/site-packages/aprsd/cmds/list_plugins.py", line 177, in show_pypi_plugins
    released = re.sub(r"\s+", " ", snippet.select_one('span[class*="released"]').text.strip())
AttributeError: 'NoneType' object has no attribute 'text'

Please let me know if there is any other information I can provide. Cheers