ido50 / morgan

PyPI Mirror for Restricted/Offline Environments
Apache License 2.0
105 stars 7 forks source link

http error 404 #23

Closed shamilbi closed 5 months ago

shamilbi commented 7 months ago

morgan.ini

[env.None]
os_name = posix
sys_platform = linux
platform_machine = x86_64
platform_python_implementation = CPython
platform_system = Linux
python_version = 3.11
python_full_version = 3.11.9
implementation_name = cpython

[requirements]
fail2ban =
morgan mirror
fail2ban
Traceback (most recent call last):
  File "~/apps/morgan/.venv/bin/morgan", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "~/apps/morgan-http404/.venv/lib64/python3.12/site-packages/morgan/__init__.py", line 484, in main
    mirror(args.index_path)
  File "~/apps/morgan-http404/.venv/lib64/python3.12/site-packages/morgan/__init__.py", line 447, in mirror
    m.mirror("{}{}".format(package, m.config["requirements"][package]))
  File "~/apps/morgan-http404/.venv/lib64/python3.12/site-packages/morgan/__init__.py", line 74, in mirror
    deps = self._mirror(requirement)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/apps/morgan-http404/.venv/lib64/python3.12/site-packages/morgan/__init__.py", line 132, in _mirror
    with urllib.request.urlopen(request) as response:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/urllib/request.py", line 521, in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/urllib/request.py", line 630, in http_response
    response = self.parent.error(
               ^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/urllib/request.py", line 559, in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "/usr/lib64/python3.12/urllib/request.py", line 639, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found