Skip to content
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

Raspberry Pi updates to 64bit kernel and python-codecs plugin stops working #678

Closed
koush opened this issue Apr 1, 2023 · 3 comments
Closed

Comments

@koush
Copy link
Owner

koush commented Apr 1, 2023

python-codecs will fail to install/load on pi after a full update is performed. This message will be visible in the console log:

Python machine vs architecture mismatch detected. Plugin installation may fail.
@koush
Copy link
Owner Author

koush commented Apr 1, 2023

Fix 1: Roll Back Kernel to 32bit

This can be fixed by editing /boot/config.txt on the pi. Modify the [pi4] section as follows to add (or change) arm_64bit=0:

Using: nano /boot/config.txt

[pi4]
arm_64bit=0

Fix 2: Flash 64 bit Raspbian OS

Starting with a 64 bit image will not have this issue, as the whole platform will then be 64bit, and not mixed mode.

@jlg89
Copy link

jlg89 commented Apr 7, 2023

I would assume that if the 64-bit kernel is active, you could uninstall 32-bit python and then install the 64-bit version. Would that be another fix, or are there additional gotchas?

@koush
Copy link
Owner Author

koush commented Apr 7, 2023

Seems very unlikely to work without issue. Whole system is a mess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants