New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.5 issues during apt-get update/upgrade #136

Closed
S3phi40T opened this Issue Mar 17, 2018 · 15 comments

Comments

Projects
None yet
@S3phi40T
Copy link

S3phi40T commented Mar 17, 2018

As per my research, Python update fixes the problem:
Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0xf691d3d8> Traceback (most recent call last): File "/usr/lib/python3.5/weakref.py", line 117, in remove TypeError: 'NoneType' object is not callable Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0xf691d3d8> Traceback (most recent call last): File "/usr/lib/python3.5/weakref.py", line 117, in remove TypeError: 'NoneType' object is not callable

@xalius xalius closed this Mar 29, 2018

@S3phi40T

This comment has been minimized.

Copy link
Author

S3phi40T commented Apr 1, 2018

@xalius, this is not resolved.
@ayufan
I'm on 0.6.29 Stretch OMV armhf upgraded from clean 0.6.28
Linux Kamyk 4.4.120-rockchip-ayufan-197 #1 SMP Thu Mar 29 22:00:14 UTC 2018 aarc
Issue exists since 0.6.25 - some bug with Python 3.5.

@ludenticus

This comment has been minimized.

Copy link

ludenticus commented May 16, 2018

Why was this issue closed? It's not solved yet.

@immanuelfodor

This comment has been minimized.

Copy link

immanuelfodor commented Jun 7, 2018

I get the same error on OMV4 after omv-release-upgrade from latest OMV3 on every apt update :(

Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0xb62ca390>
Traceback (most recent call last):
  File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable
Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0xb62ca390>
Traceback (most recent call last):
  File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable
# uname -a
Linux odroidxu4 4.9.61-odroidxu4 #2 SMP PREEMPT Wed Nov 22 16:34:23 CET 2017 armv7l GNU/Linux

OMV 4.1.7

@mrtestone

This comment has been minimized.

Copy link

mrtestone commented Jul 14, 2018

same here... update throws the error... started btw. from a fresh OMV 4.0.

@OverByThere

This comment has been minimized.

Copy link

OverByThere commented Jul 17, 2018

@xalius Could you please re-open this as other users are having the same issue?

Same error here. Fresh install on VM of OMV 4.1.8.2-1 (Arrakis).

Full output below:

root@openmediavault:~# apt update ; apt upgrade
[...]
Ign:14 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch InRelease
Hit:15 https://downloads.plex.tv/repo/deb ./public InRelease
Ign:16 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-testing stretch InRelease
Ign:17 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-plex stretch InRelease
Ign:18 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-sync stretch InRelease
Hit:19 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch Release
Hit:21 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-testing stretch Release
Hit:22 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-plex stretch Release
Hit:23 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-sync stretch Release
Fetched 196 kB in 1s (105 kB/s)
Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0xb7099d64>
Traceback (most recent call last):
  File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable
Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0xb7099d64>
Traceback (most recent call last):
  File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@openmediavault:~#
@OverByThere

This comment has been minimized.

Copy link

OverByThere commented Jul 17, 2018

This seems to be fixable.

In short open /usr/lib/python3.5/weakref.py and change line 109 to:

def remove(wr, selfref=ref(self), _atomic_removal=_remove_dead_weakref):

And line 117 to:

_atomic_removal(d, wr.key)

Note you need to do this with spaces, not tabs as this will cause other errors.

@immanuelfodor

This comment has been minimized.

Copy link

immanuelfodor commented Jul 17, 2018

It worked like a charm, the error is now gone, thanks!

@Darcidride

This comment has been minimized.

Copy link

Darcidride commented Jul 27, 2018

Thank you @OverByThere it worked ! :)

@mrtestone

This comment has been minimized.

Copy link

mrtestone commented Jul 28, 2018

can confirm it too on my RPI3b+ with OMV4.0... error is not popping up anymore.

@cybercar

This comment has been minimized.

Copy link

cybercar commented Aug 16, 2018

Thanks, works perfect!

@cmcginty

This comment has been minimized.

Copy link

cmcginty commented Oct 14, 2018

Has this bug fix been reported upstream to Debian? Maybe they backport the change to the next Python 3.5.3 release.

@ransur0t

This comment has been minimized.

Copy link

ransur0t commented Nov 30, 2018

Thanks @OverByThere - this solved the issue on my OMV NAS.

@ayufan

This comment has been minimized.

Copy link
Member

ayufan commented Dec 1, 2018

I think that desired fix is to push this upstream to debian and ubuntu.

@001101

This comment has been minimized.

Copy link

001101 commented Feb 15, 2019

Still present

@mf01

This comment has been minimized.

Copy link

mf01 commented Feb 19, 2019

I can approve. Issue still there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment