Cynical Weather v3.5.1 Crash

Posted on
Thu Dec 29, 2022 8:47 pm
boisy offline
User avatar
Posts: 273
Joined: Jun 25, 2013

Cynical Weather v3.5.1 Crash

Hello Perry,

I'm experiencing a crash with Cyncical Weather v3.5.1. It appears filter_class is of type NoneType and is not a callable function. The exception is below:

Code: Select all
 Cynical Weather                 plugin starting asyn operation
   Cynical Weather Error           in run_concurrent_thread: Traceback (most recent call last):
  File ".../Server Plugin/cyin/debugging.py", line 67, in diagnostic_log
    yield
  File ".../Server Plugin/cyin/debugging.py", line 77, in diagnose_call
    return method(*args, **kwargs)
  File ".../Server Plugin/cyin/asynplugin.py", line 64, in run_concurrent_thread
    self.run()
  File ".../Server Plugin/asyn/inject.py", line 60, in run
    asyn.Controller.run(self)
  File ".../Server Plugin/asyn/controller.py", line 108, in run
    item._can_write()
  File ".../Server Plugin/asyn/resolve.py", line 76, in _can_write
    self.callout(ctx, self.io)
  File ".../Server Plugin/asyn/core.py", line 163, in callout
    results = [cb(ctx, *args) for cb in list(self._callbacks)]   # latch callback list
  File ".../Server Plugin/asyn/core.py", line 163, in <listcomp>
    results = [cb(ctx, *args) for cb in list(self._callbacks)]   # latch callback list
  File ".../Server Plugin/asyn/resolve.py", line 129, in _connected
    self.callout(ctx, result)
  File ".../Server Plugin/asyn/core.py", line 163, in callout
    results = [cb(ctx, *args) for cb in list(self._callbacks)]   # latch callback list
  File ".../Server Plugin/asyn/core.py", line 163, in <listcomp>
    results = [cb(ctx, *args) for cb in list(self._callbacks)]   # latch callback list
  File ".../Server Plugin/asyn/http.py", line 231, in _connected
    self.scheme.create(self)
  File ".../Server Plugin/asyn/http.py", line 148, in create
    request.insert_filter(SSL, hostname=request.host, uplink=request.incoming)
  File ".../Server Plugin/asyn/selectable.py", line 433, in insert_filter
    filter = filter_class(self.upstream, *args, **kwargs)
TypeError: 'NoneType' object is not callable

   Cynical Weather Error           plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Posted on
Thu Jan 05, 2023 5:32 am
boisy offline
User avatar
Posts: 273
Joined: Jun 25, 2013

Re: Cynical Weather v3.5.1 Crash

Resurfacing this post in hopes of a resolution.

Posted on
Fri Jan 06, 2023 9:40 am
veritas offline
Posts: 16
Joined: Dec 04, 2016

Re: Cynical Weather v3.5.1 Crash

I am getting the same error...

Cynical Weather Error in run_concurrent_thread: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 67, in diagnostic_log
yield
File ".../Server Plugin/cyin/debugging.py", line 77, in diagnose_call
return method(*args, **kwargs)
File ".../Server Plugin/cyin/asynplugin.py", line 64, in run_concurrent_thread
self.run()
File ".../Server Plugin/asyn/inject.py", line 60, in run
asyn.Controller.run(self)
File ".../Server Plugin/asyn/controller.py", line 108, in run
item._can_write()
File ".../Server Plugin/asyn/resolve.py", line 76, in _can_write
self.callout(ctx, self.io)
File ".../Server Plugin/asyn/core.py", line 163, in callout
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/asyn/core.py", line 163, in <listcomp>
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/asyn/resolve.py", line 129, in _connected
self.callout(ctx, result)
File ".../Server Plugin/asyn/core.py", line 163, in callout
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/asyn/core.py", line 163, in <listcomp>
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/asyn/http.py", line 231, in _connected
self.scheme.create(self)
File ".../Server Plugin/asyn/http.py", line 148, in create
request.insert_filter(SSL, hostname=request.host, uplink=request.incoming)
File ".../Server Plugin/asyn/selectable.py", line 433, in insert_filter
filter = filter_class(self.upstream, *args, **kwargs)
TypeError: 'NoneType' object is not callable

Cynical Weather Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Posted on
Fri Jan 06, 2023 10:26 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Cynical Weather v3.5.1 Crash

I had this error too (not anymore because not sure what to do about it so I did not continue to check out the plugin) - just trying to help understand — so wondering if all of the users that see this error are new Cynical Weather plugin users?

I noticed reading through posts that some users are not effected but it looks like they were already using a prior version (including the developer). So, just wondering if that is a bit of information that could help solve the discrepancy.

Might help if the users who are seeing this error report if they are new users or migrating from a previous version of the plugin - but that is me just grasping at straws to understand why some see the error and others don’t…

PS. I was a new user…
Last edited by norcoscia on Fri Jan 06, 2023 12:07 pm, edited 1 time in total.

_______
Norm

Posted on
Fri Jan 06, 2023 11:10 am
veritas offline
Posts: 16
Joined: Dec 04, 2016

Re: Cynical Weather v3.5.1 Crash

I am a new user. I installed the plugin today.

Posted on
Sat Jan 07, 2023 3:55 pm
SteveFyfe offline
Posts: 11
Joined: May 05, 2007
Location: Central Mass USA

Re: Cynical Weather v3.5.1 Crash

I just recently installed this plugin, and I am seeing this traceback too.

Code: Select all
Jan 7, 2023 at 1:22:32 PM
   Enabling plugin "Cynical Weather 3.5.1" using API v3.0.0
   Starting plugin "Cynical Weather 3.5.1" (pid 90145)
   Cynical Weather                 API version 3.1
   Cynical Weather                 Python version 3.10.2.final.0
   Started plugin "Cynical Weather 3.5.1"
   Cynical Weather Error           in run_concurrent_thread: Traceback (most recent call last):
  File ".../Server Plugin/cyin/debugging.py", line 67, in diagnostic_log
    yield
  File ".../Server Plugin/cyin/debugging.py", line 77, in diagnose_call
    return method(*args, **kwargs)
  File ".../Server Plugin/cyin/asynplugin.py", line 64, in run_concurrent_thread
    self.run()
  File ".../Server Plugin/asyn/inject.py", line 60, in run
    asyn.Controller.run(self)
  File ".../Server Plugin/asyn/controller.py", line 108, in run
    item._can_write()
  File ".../Server Plugin/asyn/resolve.py", line 76, in _can_write
    self.callout(ctx, self.io)
  File ".../Server Plugin/asyn/core.py", line 163, in callout
    results = [cb(ctx, *args) for cb in list(self._callbacks)]   # latch callback list
  File ".../Server Plugin/asyn/core.py", line 163, in <listcomp>
    results = [cb(ctx, *args) for cb in list(self._callbacks)]   # latch callback list
  File ".../Server Plugin/asyn/resolve.py", line 129, in _connected
    self.callout(ctx, result)
  File ".../Server Plugin/asyn/core.py", line 163, in callout
    results = [cb(ctx, *args) for cb in list(self._callbacks)]   # latch callback list
  File ".../Server Plugin/asyn/core.py", line 163, in <listcomp>
    results = [cb(ctx, *args) for cb in list(self._callbacks)]   # latch callback list
  File ".../Server Plugin/asyn/http.py", line 231, in _connected
    self.scheme.create(self)
  File ".../Server Plugin/asyn/http.py", line 148, in create
    request.insert_filter(SSL, hostname=request.host, uplink=request.incoming)
  File ".../Server Plugin/asyn/selectable.py", line 433, in insert_filter
    filter = filter_class(self.upstream, *args, **kwargs)
TypeError: 'NoneType' object is not callable

   Cynical Weather Error           plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   NOAA Weather                    Starting station update cycle...

Posted on
Sun Jan 08, 2023 5:13 pm
Perry The Cynic offline
Posts: 836
Joined: Apr 07, 2008

Re: Cynical Weather v3.5.1 Crash

Hm. Let’s compare the OS versions you’re all running on to see if there’s a theme there. (I assume you’re all running the latest Indigo version). If some of you who don’t have the problem could mention it too, that might help.

It shouldn’t matter because the plugin packages its own SSL library, but I’m running out of ideas of what might be wrong here.

Cheers
— perry

Posted on
Sun Jan 08, 2023 6:38 pm
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Cynical Weather v3.5.1 Crash

macOS Monterey
Version 12.6.2
Mac mini (2018)
Processor 3 GHz 6-Core Intel Core i5
Memory 32 GB 2667 MHz DDR4
Startup Disk Macintosh HD
Graphics Intel UHD Graphics 630 1536 MB

Using Indigo 2022.1.2

_______
Norm

Posted on
Sun Jan 08, 2023 8:02 pm
SteveFyfe offline
Posts: 11
Joined: May 05, 2007
Location: Central Mass USA

Re: Cynical Weather v3.5.1 Crash

macOS Monterey 12.6.2
iMac (Retina 5K, 27-inch, 2017)
3.4 GHz Quad-Core Intel Core i5
24 GB 2400 MHz DDR4
WSG Server HD
Radeon Pro 570 4 GB

Posted on
Mon Jan 09, 2023 5:12 am
veritas offline
Posts: 16
Joined: Dec 04, 2016

Re: Cynical Weather v3.5.1 Crash

macOS Monterey 12.5.1
Mac mini M1 chip 8GB 2020
Startup Disk Macintosh HD

Posted on
Wed Jan 11, 2023 4:21 pm
boisy offline
User avatar
Posts: 273
Joined: Jun 25, 2013

Re: Cynical Weather v3.5.1 Crash

Is there any potential resolution on this?

Posted on
Thu Jan 12, 2023 6:34 am
boisy offline
User avatar
Posts: 273
Joined: Jun 25, 2013

Re: Cynical Weather v3.5.1 Crash

This may be the issue.

Within the plugin there's a file called asyn/http.py.

This code at the top seems relevant:

Code: Select all
try:
        from asyn.ssl import SSL
except ImportError:
        SSL = None


When I run it from Python 3 at the command line on my Mac, I get this:

Code: Select all
Python 3.10.2 (v3.10.2:a58ebcc701, Jan 13 2022, 14:50:16) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from asyn.ssl import SSL
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/Cynical Weather.indigoPlugin/Contents/Server Plugin/asyn/ssl.py", line 27, in <module>
    import OpenSSL.SSL
  File "/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/Cynical Weather.indigoPlugin/Contents/Server Plugin/asyn/vendor/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/Cynical Weather.indigoPlugin/Contents/Server Plugin/asyn/vendor/OpenSSL/crypto.py", line 8, in <module>
    from cryptography import utils, x509
  File "/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/Cynical Weather.indigoPlugin/Contents/Server Plugin/asyn/vendor/cryptography/x509/__init__.py", line 6, in <module>
    from cryptography.x509 import certificate_transparency
  File "/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/Cynical Weather.indigoPlugin/Contents/Server Plugin/asyn/vendor/cryptography/x509/certificate_transparency.py", line 10, in <module>
    from cryptography.hazmat.bindings._rust import x509 as rust_x509
ModuleNotFoundError: No module named 'cryptography.hazmat.bindings._rust'

Posted on
Fri Jan 13, 2023 5:48 am
boisy offline
User avatar
Posts: 273
Joined: Jun 25, 2013

Re: Cynical Weather v3.5.1 Crash

I got past the crash by typing these two commands in Terminal:

Code: Select all
sudo pip3 install pyOpenSSL --upgrade
sudo pip3 install cryptography --upgrade


This fixed my issue and now data is coming in fine.

Posted on
Sat Jan 14, 2023 2:10 pm
veritas offline
Posts: 16
Joined: Dec 04, 2016

Re: Cynical Weather v3.5.1 Crash

I have never worked with a terminal. Can you describe the steps?

Posted on
Sat Jan 14, 2023 2:32 pm
veritas offline
Posts: 16
Joined: Dec 04, 2016

Re: Cynical Weather v3.5.1 Crash

I opened the terminal on my mac mini server.
I copied and pasted the code inside.
I closed the terminal.
I restarted the computer.
Nothing has changed. I get the same error when I reload the plugin

Who is online

Users browsing this forum: No registered users and 2 guests