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
Arch Linux AUR bug fixes backport #740
Arch Linux AUR bug fixes backport #740
Conversation
ValueError: Primary key 'django.db.models.UUIDField' referred by core.apps.CoreConfig.default_auto_field must subclass AutoField.
This pull request introduces 1 alert when merging 9b3585b into 4770ec8 - view on LGTM.com new alerts:
|
What version of Django are you running with? It only supports 3.1.x, not 3.2 or 2.x/1.x, that could be causing the error. I don't believe it's necessary to add |
The latest. Arch Linux always has the latest of all python package. So, using an older version of django for an arch linux package is not directly possible, or is not considered a good practice. Alternatively, if 4223801 is not merged, AUR maintainer will have to maintain this patch separately to make archivebox work with the latest version of django.
Reproducer git clone https://github.com/ArchiveBox/ArchiveBox.git
cd ArchiveBox
pip3 install .
Well, actually.. this is the AUR maintained by another maintainer. Looking at the README.md I noticed another small error pacman install archivebox is mentioned as the mode of installation for Arch Linux, but however pacman install archivebox
error: no operation specified (use -h for help) Installing from the AUR requires an AUR helper, or manually building the arch linux package: git clone https://aur.archlinux.org/archivebox.git
cd archivebox
makepkg -si or yay -S archivebox I use an AUR helper, so I did this: Cllick to see logs
|
Thanks @srevinsaju, it may be better to just wait for the next ArchiveBox release then, I plan to add Django 3.2 support in the next version. It may not be for a |
Any update on Django 3.2+ support? |
No progress on 3.2 support yet. I'm aware that it's a painful wart for packaging, but unfortunately it's lower priority than most of the other release tasks and dev time is very limited right now. |
No worries, I get where you're coming from. :) |
If at all possible, I encourage you to give this PR some love. I use Arch Linux and holding back I am aware of solutions like Docker or the AUR package python39, but I would be happier running ArchiveBox off of vanilla Arch. Regardless, thanks for ArchiveBox! |
Please fix this. The Docker version requires dockerd and root and is inconvenient. |
Closing this as stale. It's also not the fix I want to implement for the underlying issue, as we need to keep UUID fields as UUIDs. |
Summary
Few changes required for ArchiveBox Arch Linux AUR Packages.
ValueError
when trying to runarchivebox init
on Arch Linux,vendor
and other subdirectories were not included in thesetup.py
install because only the main package (archivebox
) was included, not the subdirectories within.Feel free to close this PR, if it seems redundant, or let me know if I can improve it.
Related issues
#738, #728
Changes these areas