daniperez / vale-python-package

Install 📝 Vale (grammar & style check tool ) in 🐍 Python environments. Package available at 📦 https://pypi.org/project/vale/
MIT License
8 stars 3 forks source link

urllib.error.HTTPError: HTTP Error 404: Not Found on macOS_arm64 #28

Closed stevepiercy closed 9 months ago

stevepiercy commented 9 months ago

After installing vale, attempt to run it. The following stacktrace appears.

$ vale                          
* vale not found. Downloading it...
Traceback (most recent call last):
  File "/Users/stevepiercy/projects/Plone/documentation/submodules/volto/bin/vale", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/stevepiercy/projects/Plone/documentation/submodules/volto/lib/python3.11/site-packages/vale/main.py", line 158, in main
    vale_bin_path = download_vale_if_missing()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/stevepiercy/projects/Plone/documentation/submodules/volto/lib/python3.11/site-packages/vale/main.py", line 119, in download_vale_if_missing
    url = urlopen(url_str)
          ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.11/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.11/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 525, in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.11/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 634, in http_response
    response = self.parent.error(
               ^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.11/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 563, in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.11/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 496, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.11/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

arm should be arm64 in the URL to download Vale. PR incoming.