Bug 1927382 - [abrt] python3-rust2rpm: raise_for_status(): models.py:941:raise_for_status:requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://crates.io/api/v1/crates/crate/https:/github.com/cjdelisle/packetcrypt_rs/download
Summary: [abrt] python3-rust2rpm: raise_for_status(): models.py:941:raise_for_status:r...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rust-packaging
Version: 33
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rust SIG
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:e7a8561f55276ebaddd5770c950...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-10 16:04 UTC by Фукидид
Modified: 2021-09-27 15:29 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-27 15:29:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.27 KB, text/plain)
2021-02-10 16:04 UTC, Фукидид
no flags Details
File: cpuinfo (2.19 KB, text/plain)
2021-02-10 16:04 UTC, Фукидид
no flags Details
File: environ (2.99 KB, text/plain)
2021-02-10 16:04 UTC, Фукидид
no flags Details
File: mountinfo (2.74 KB, text/plain)
2021-02-10 16:04 UTC, Фукидид
no flags Details
File: namespaces (172 bytes, text/plain)
2021-02-10 16:04 UTC, Фукидид
no flags Details
File: open_fds (321 bytes, text/plain)
2021-02-10 16:04 UTC, Фукидид
no flags Details

Description Фукидид 2021-02-10 16:04:20 UTC
Version-Release number of selected component:
python3-rust2rpm-16-1.fc33

Additional info:
reporter:       libreport-2.14.0
cgroup:         0::/user.slice/user-1000.slice/session-2.scope
cmdline:        /usr/bin/python3 /usr/bin/rust2rpm crate https://github.com/cjdelisle/packetcrypt_rs
crash_function: raise_for_status
exception_type: requests.exceptions.HTTPError
executable:     /usr/bin/rust2rpm
interpreter:    python3-3.9.1-2.fc33.x86_64
kernel:         5.10.13-200.fc33.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
models.py:941:raise_for_status:requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://crates.io/api/v1/crates/crate/https:/github.com/cjdelisle/packetcrypt_rs/download

Traceback (most recent call last):
  File "/usr/bin/rust2rpm", line 33, in <module>
    sys.exit(load_entry_point('rust2rpm==16', 'console_scripts', 'rust2rpm')())
  File "/usr/lib/python3.9/site-packages/rust2rpm/__main__.py", line 267, in main
    crate, diff, metadata = make_diff_metadata(args.crate, args.version,
  File "/usr/lib/python3.9/site-packages/rust2rpm/__main__.py", line 206, in make_diff_metadata
    cratef, crate, version = download(crate, version)
  File "/usr/lib/python3.9/site-packages/rust2rpm/__main__.py", line 137, in download
    req.raise_for_status()
  File "/usr/lib/python3.9/site-packages/requests/models.py", line 941, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://crates.io/api/v1/crates/crate/https:/github.com/cjdelisle/packetcrypt_rs/download

Local variables in innermost frame:
self: <Response [404]>
http_error_msg: '404 Client Error: Not Found for url: https://crates.io/api/v1/crates/crate/https:/github.com/cjdelisle/packetcrypt_rs/download'
reason: 'Not Found'

Comment 1 Фукидид 2021-02-10 16:04:23 UTC
Created attachment 1756262 [details]
File: backtrace

Comment 2 Фукидид 2021-02-10 16:04:24 UTC
Created attachment 1756263 [details]
File: cpuinfo

Comment 3 Фукидид 2021-02-10 16:04:25 UTC
Created attachment 1756264 [details]
File: environ

Comment 4 Фукидид 2021-02-10 16:04:27 UTC
Created attachment 1756265 [details]
File: mountinfo

Comment 5 Фукидид 2021-02-10 16:04:28 UTC
Created attachment 1756266 [details]
File: namespaces

Comment 6 Фукидид 2021-02-10 16:04:29 UTC
Created attachment 1756267 [details]
File: open_fds

Comment 7 Fabio Valentini 2021-09-27 15:29:19 UTC
Looks like you ran rust2rpm against a GitHub URL instead of a crate name (as published on crates.io).
This is not supported (though crashing is not something rust2rpm should do in this case, either).
I filed an upstream issue for this here: https://pagure.io/fedora-rust/rust2rpm/issue/145


Note You need to log in before you can comment on or make changes to this bug.