question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug description

pip-audit crashes at pip_audit/_service/interface.py, line 162

Right here: https://github.com/pypa/pip-audit/blob/v2.4.6/pip_audit/_service/interface.py#L162

Reproduction steps

tox -e audit

Expected behavior

No errors.

Screenshots and logs

Traceback (most recent call last):
  File "/home/jordy/repo/.tox/audit/bin/pip-audit", line 8, in <module>
    sys.exit(audit())
  File "/home/jordy/repo/.tox/audit/lib/python3.10/site-packages/pip_audit/_cli.py", line 434, in audit
    for (spec, vulns) in auditor.audit(source):
  File "/home/jordy/repo/.tox/audit/lib/python3.10/site-packages/pip_audit/_audit.py", line 66, in audit
    for dep, vulns in self._service.query_all(specs):
  File "/home/jordy/repo/.tox/audit/lib/python3.10/site-packages/pip_audit/_service/interface.py", line 156, in query_all
    yield self.query(spec)
  File "/home/jordy/repo/.tox/audit/lib/python3.10/site-packages/pip_audit/_service/osv.py", line 150, in query
    published=self._parse_rfc3339(vuln.get("published")),
  File "/home/jordy/repo/.tox/audit/lib/python3.10/site-packages/pip_audit/_service/interface.py", line 162, in _parse_rfc3339
    return datetime.strptime(dt, "%Y-%m-%dT%H:%M:%SZ")
  File "/home/jordy/.pyenv/versions/3.10.6/lib/python3.10/_strptime.py", line 568, in _strptime_datetime
    tt, fraction, gmtoff_fraction = _strptime(data_string, format)
  File "/home/jordy/.pyenv/versions/3.10.6/lib/python3.10/_strptime.py", line 349, in _strptime
    raise ValueError("time data %r does not match format %r" %
ValueError: time data '2022-10-22T00:00:27.668938Z' does not match format '%Y-%m-%dT%H:%M:%SZ'

Platform information

  • OS name and version: Ubuntu 20.04.5 LTS
  • pip-audit version (pip-audit -V): 2.4.6
  • Python version (python -V or python3 -V): 3.10.6
  • pip version (pip -V or pip3 -V): 22.3.1

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
woodruffwcommented, Nov 26, 2022

No problem! In the mean time, the PyPI service (-s pypi) should still be functioning correctly.

0reactions
TECH7Foxcommented, Nov 26, 2022

Glad to hear it! I’ll merge and get a release cut soon. Thanks again for reporting, and for helping debug!

Great, thanks for the fast update!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apache Httpd Server 2.4.6 is Crashing with Segmentation Fault
Apache Httpd Server 2.4.6 is Crashing with Segmentation Fault (Doc ID ... 12cR2(12.2.1.2.0) causes process crash for the Apache 2.4.6 with a ...
Read more >
OpenLP 2.4.6 Crashing on Windows 10
It is like the program comes up ready to work correctly OR it is going to crash when I double click on a...
Read more >
BitLord 2.4.6-332 for Windows - Crash reporting
In this release we focus solely on crash reporting. We have added a better system to track bug that cause crashes. If you...
Read more >
B757 2.4.6 crashes Xplane11.50b11 inVR
Xplane11 keeps crashing when trying to reconnect Oculus VR, with the log file message: --=={This application has crashed because of the ...
Read more >
Wireshark 2.4.6 Release Notes
2.1. Bug Fixes. The following vulnerabilities have been fixed: wnpa-sec-2018-15. The MP4 dissector could crash. (Bug 13777).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found