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

Experimenting with various apt package installs [e.g. python3-cryptography, so Calibre-Web unit test works on Raspberry Pi OS] #3815

Merged
merged 4 commits into from
Oct 2, 2024

Conversation

deldesir
Copy link
Contributor

@deldesir deldesir commented Oct 1, 2024

This PR is for testing different packages to understand what affects Calibre-Web when installed with UNITTEST.

@deldesir deldesir marked this pull request as draft October 1, 2024 20:43
@holta holta changed the title Experimenting with various packages installs Experimenting with various apt packages installs [so Calibre-Web installs on Raspberry Pi OS] Oct 1, 2024
@holta holta changed the title Experimenting with various apt packages installs [so Calibre-Web installs on Raspberry Pi OS] Experimenting with various apt packages installs [so Calibre-Web unit test works on Raspberry Pi OS] Oct 1, 2024
@holta holta changed the title Experimenting with various apt packages installs [so Calibre-Web unit test works on Raspberry Pi OS] Experimenting with various apt package installs [so Calibre-Web unit test works on Raspberry Pi OS] Oct 1, 2024
@holta holta added this to the 8.2 milestone Oct 1, 2024
@holta holta marked this pull request as ready for review October 1, 2024 22:01
@holta
Copy link
Member

holta commented Oct 1, 2024

@EMG70 can you help us test this PR #3815 by unit testing Calibre-Web?

In other words:

  1. Start with a completely new 64-bit Raspberry Pi OS Lite running on almost any Raspberry Pi.
  2. Install IIAB with this PR 3815, by running: curl iiab.io/install.txt | bash -s 3815
  3. Type 0 (ZERO, for local_vars_unittest.yml) when it asks you to "PLEASE PICK (1) 🚵 SMALL (2) 🚢🚣 MEDIUM or (3) 🚂🚃🚃 LARGE (NEEDS 2+ GB RAM)."
  4. Use nano to toggle Lines 393-394 to True in /etc/iiab/local_vars.yml
  5. Also add these 2 lines to /etc/iiab/local_vars.yml to speed up the install — and avoid setting up the Raspberry Pi's internal hotspot:
    network_install: False
    network_enabled: False
    
  6. Run sudo iiab to install IIAB (watch for it completing in about 15 minutes?!)
  7. Test that Calibre-Web is fully working, using URLs like http://ACTUAL.IIAB.IP.ADDRESS/books 🙏
  8. Please post here on this ticket, the URL that results from running sudo iiab-diagnostics, Thanks!

@holta holta changed the title Experimenting with various apt package installs [so Calibre-Web unit test works on Raspberry Pi OS] Experimenting with various apt package installs [e.g. python3-cryptography, so Calibre-Web unit test works on Raspberry Pi OS] Oct 1, 2024
@EMG70
Copy link
Contributor

EMG70 commented Oct 2, 2024

A new VM SIZE 0 (Unittest) was installed on a RPI 400 ,Calibre-web now reachable using IP/books.
SUDO IIAB-DIAGNOSTICS https://paste.centos.org/view/e3849191

Screenshot from 2024-10-02 13-17-56

@holta
Copy link
Member

holta commented Oct 2, 2024

  1. fyi @deldesir also confirmed that apt install python3-cryptography can be run manually (as root) on a bare 64-bit Raspberry Pi OS Lite on RPi 5, to fully simulate this PR, allowing for rapid Calibre-Web unit-testing on RasPiOS at last (Great News!)

  2. In future, if proven rock-solid (or close!) we'd like to move towards encouraging everyone to use a much more recent version of Python's cryptography module / package — along the lines of PR Add cryptography to requirements.txt so Calibre-Web unit test works on Raspberry Pi OS calibre-web#262 — i.e. preferably having cryptography be internal to the Python venv (/usr/local/calibre-web-py3) as specified by the other requirements.txt file, defined by the upstream Calibre-Web repo itself! 🙏

@holta
Copy link
Member

holta commented Oct 10, 2024

Just FYI this PR might be reverted in future — e.g. if there's an upstream decision to auto-install cryptography (via Calibre-Web's requirements.txt) here:

holta added a commit to holta/iiab that referenced this pull request Oct 27, 2024
holta added a commit that referenced this pull request Oct 27, 2024
Revert PR #3815: python3-cryptography no longer needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants