HelloZeroNet / Plugin-BackgroundProcessing

ZeroNet plugin for running site code in background, when browser is closed. Safe.
14 stars 11 forks source link

Error causing both this and PeerMessage to fail to load. #6

Closed Kusoneko closed 4 years ago

Kusoneko commented 4 years ago

I'm running Arch Linux (which now uses python 3.8 if that's in any way relevant) When starting Zeronet (latest revision), both PeerMessage and BackgroundProcessing give out an error due to a line in BackgroundProcessing's crypt.py:

[01:56:59] PluginManager Plugin BackgroundProcessing load error: AttributeError: module 'Crypt.Crypt' has no attribute 'newSeed' in PluginManager.py line 138 > BackgroundProcessing/__init__.py line 14 > BackgroundProcessing/crypt.py line 5
[01:57:00] PluginManager Plugin PeerMessage load error: AttributeError: module 'Crypt.Crypt' has no attribute 'newSeed' in PluginManager.py line 138 > PeerMessage/__init__.py line 4 > PeerMessage/BackgroundPlugin.py line 2 > BackgroundProcessing/__init__.py line 14 > BackgroundProcessing/crypt.py line 5
purplesyringa commented 4 years ago

Weird. I'll take a look.

purplesyringa commented 4 years ago

It looks like the reason is a two-day old change in ZeroNet core. I was going to make a PR to support different cryptographies (e.g. Ethereum, Ark and such, non-ecc) so I added src/Crypt/Crypt.py to my local fork and used try/except to use it if available. It usually wasn't on most machines. Unfortunately, nofish added this file but with different contents, so Python imported wrong code and thus PeerMessage couldn't find some functions. I'll fix this later today.

filips123 commented 4 years ago

@imachug Ping...

purplesyringa commented 4 years ago

Kinda forgot about that... should be fixed now, thanks.