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

Flexget install Raspberry PI ! #832

Closed
kovbandi opened this issue Jun 3, 2024 · 6 comments
Closed

Flexget install Raspberry PI ! #832

kovbandi opened this issue Jun 3, 2024 · 6 comments

Comments

@kovbandi
Copy link

kovbandi commented Jun 3, 2024

  • [ x] I am on the latest Pendulum version.
  • [ x] I have searched the issues of this repo and believe that this is not a duplicate.
  • OS version and name: Raspberry OS Bookworm
  • Pendulum version: 3.0.0

Issue

Hello. I want to install pendulum 3.0.0 to install Flexget on a Raspberry Pi4 with the latest version of Raspbian. I always run into this error, I don't know what to do:

`Building wheels for collected packages: pendulum
Building wheel for pendulum (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for pendulum (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [44 lines of output]
Running maturin pep517 build-wheel -i /usr/bin/python --compatibility off
🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings
🐍 Found CPython 3.9 at /usr/bin/python
Compiling target-lexicon v0.12.6
Compiling python3-dll-a v0.2.9
Compiling libc v0.2.139
Compiling autocfg v1.1.0
Compiling once_cell v1.17.1
Compiling proc-macro2 v1.0.51
Compiling unicode-ident v1.0.6
Compiling quote v1.0.23
Compiling syn v1.0.109
Compiling lock_api v0.4.9
Compiling pyo3-build-config v0.19.1
Compiling parking_lot_core v0.9.7
Compiling cc v1.0.79
Compiling memoffset v0.9.0
Compiling smallvec v1.10.0
Compiling scopeguard v1.1.0
Compiling cfg-if v1.0.0
Compiling parking_lot v0.12.1
Compiling libmimalloc-sys v0.1.35
Compiling pyo3-ffi v0.19.1
Compiling pyo3 v0.19.1
Compiling unindent v0.1.11
Compiling indoc v1.0.9
Compiling mimalloc v0.1.39
Compiling pyo3-macros-backend v0.19.1
Compiling pyo3-macros v0.19.1
Compiling _pendulum v3.0.0 (/home/pi/pendulum-3.0.0/rust)
error: this arithmetic operation will overflow
--> src/helpers.rs:59:20
|
59 | seconds += ((146_097 - 10957) * SECS_PER_DAY as usize) as isize;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute 135140_usize * 86400_usize, which would overflow
|
= note: #[deny(arithmetic_overflow)] on by default

  error: could not compile `_pendulum` (lib) due to 1 previous error
  💥 maturin failed
    Caused by: Failed to build a native library through cargo
    Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_ENVIRONMENT_SIGNATURE="cpython-3.9-64bit" PYO3_PYTHON="/usr/bin/python" PYTHON_SYS_EXECUTABLE="/usr/bin/python" "cargo" "rustc" "--message-format" "json-render-diagnostics" "--manifest-path" "/home/pi/pendulum-3.0.0/rust/Cargo.toml" "--release" "--lib" "--crate-type" "cdylib"`
  Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/usr/bin/python', '--compatibility', 'off'] returned non-zero exit status 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pendulum
Failed to build pendulum
ERROR: Could not build wheels for pendulum, which is required to install pyproject.toml-based projects
`

@lucydog177
Copy link

I'm getting the same error when compiling the latest Flexget because it depends on Pendulum-3.0.0. I'm running a 32-bit OS, specifically:

Raspberry Pi OS (Legacy) Lite
  Release date: March 12th 2024
  System: 32-bit
  Kernel version: 6.1
  Debian version: 11 (bullseye)

@kovbandi
Copy link
Author

kovbandi commented Jun 4, 2024

Hello. I tried to install an older version (Flexget 3.10.2) and it went up without any problems and works.

@Tomcat-Engineering
Copy link

This issue (i.e. smaller usize on arm7 causing a potential overflow which the compiler rejects) is also causing the builds to fail on https://www.piwheels.org/project/pendulum/

@baptistefetet
Copy link

I had the same problem with my debian bookworm 32 bits, and the solution proposed by kovbandi to install an old version worked for me
pip install flexget==3.10.2

@bdrung
Copy link

bdrung commented Sep 5, 2024

The error message

error: this arithmetic operation will overflow
--> src/helpers.rs:59:20
|
59 | seconds += ((146_097 - 10957) * SECS_PER_DAY as usize) as isize;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute 135140_usize * 86400_usize, which would overflow
|
= note: #[deny(arithmetic_overflow)] on by default

is bug #784 where I proposed a fix in #842

@Secrus
Copy link
Collaborator

Secrus commented Sep 22, 2024

Closing as duplicate of #784

@Secrus Secrus closed this as not planned Won't fix, can't repro, duplicate, stale Sep 22, 2024
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

6 participants