You are not logged in.

#1 2023-07-30 12:13:34

Majahabla
Member
Registered: 2023-07-30
Posts: 7

Getting python error when running anki and jupyter notebook

When I run anki from the terminal I get this error message.

> File “/usr/lib/python3.11/site-packages/referencing/__core.py/” line 55: field() got unexpected keyword “alias”

I don’t know why… Anki had been working for a year, but then suddenly stoppd working after I ran pacman -Syu. I installed anki from the AUR.  I’ve tried reinstalling anki, and it makes no difference.

Jupyter notebook broke at the same time as well, giving the same error field() got unexpected keyword "alias".

Offline

#2 2023-07-30 12:52:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,465
Website

Re: Getting python error when running anki and jupyter notebook

And what was updated by your last "pacman -Syu"?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2023-07-30 13:30:59

Majahabla
Member
Registered: 2023-07-30
Posts: 7

Re: Getting python error when running anki and jupyter notebook

Many different things. It was a while since I had run it.

https://pastebin.com/bzTzTUt3

It might be qt because I get this error when I run it as well

"Running with temporary Qt5 compatibility shims.
Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6."

Last edited by Majahabla (2023-07-30 13:34:34)

Offline

#4 2023-08-02 06:42:17

Majahabla
Member
Registered: 2023-07-30
Posts: 7

Re: Getting python error when running anki and jupyter notebook

bump

Offline

#5 2023-08-02 09:58:59

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,290

Re: Getting python error when running anki and jupyter notebook

pacman -Q python-attrs python-referencing

Offline

#6 2023-08-02 11:15:52

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Getting python error when running anki and jupyter notebook

Majahabla wrote:

bump

Don't do that. https://wiki.archlinux.org/title/Genera … es#Bumping

Offline

#7 2023-08-02 11:59:41

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,465
Website

Re: Getting python error when running anki and jupyter notebook

And?  Did you try running with that environment variable set?

EDIT: also why are we being fed the error output piecemeal?  I figured the error in the first post was what you actually saw.  Post the complete command and output (in code tags).

Last edited by Trilby (2023-08-02 12:01:50)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2023-08-02 15:40:33

Majahabla
Member
Registered: 2023-07-30
Posts: 7

Re: Getting python error when running anki and jupyter notebook

This was the full error when I run anki

https://pastebin.com/XnejKSbW

This was the full error when I run jupyter

https://pastebin.com/p0KJgUC0

I tried to run with "DISABLE_QT5_COMPAT=1". I get the exact same error.

arojas wrote:

pacman -Q python-attrs python-referencing

I get python-attrs 22.2.0-3 and python-referencing 0.30.0-1.

Offline

#9 2023-08-02 16:59:19

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,290

Re: Getting python error when running anki and jupyter notebook

Remove everything you installed from pypi in your home dir. If you must use pypi, do it in a virtual environment

Offline

#10 2023-08-03 08:59:20

Majahabla
Member
Registered: 2023-07-30
Posts: 7

Re: Getting python error when running anki and jupyter notebook

Ok that fixed it. Thanks.

Offline

Board footer

Powered by FluxBB