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

UnicodeDecodeError: 'gbk' codec can't decode byte 0xa4 in position 2878: illegal multibyte sequence #347

Open
jazelly opened this issue Jul 18, 2024 · 1 comment

Comments

@jazelly
Copy link

jazelly commented Jul 18, 2024

OS: windows 11

Run pip install groundingdino-py==0.4.0

Error log:

Collecting groundingdino-py==0.4.0 (from -r .\requirements_versions.txt (line 23))
  Using cached groundingdino-py-0.4.0.tar.gz (82 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\31711\AppData\Local\Temp\pip-install-2x73ik2j\groundingdino-py_a28a34501a2442f7b87275b504b4a439\setup.py", line 41, in <module>
          readme = readme_file.read()
      UnicodeDecodeError: 'gbk' codec can't decode byte 0xa4 in position 2878: illegal multibyte sequence
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
@chobitpapa
Copy link

chobitpapa commented Jul 21, 2024

I have the same problem. Since I need this package urgently, I solve it manually.

  1. Download the package from pypi.org, unzip it, and modify the setup.py file. Change open('README.md') to open('README.md', encoding='utf-8').
  2. Compress the folder into a zip package, and then execute pip install groundingdino-py-0.4.0.zip.
    This is only for reference by novices who need to use it urgently like me.

我也有同样的问题,因为我比较着急需要这个包,就先自己手动解决。
1、先从 pypi.org 下载包,解压后修改 setup.py 文件,将 open('README.md') 修改成 open('README.md', encoding='utf-8')
2、将文件夹压缩成zip格式包,然后执行 pip install groundingdino-py-0.4.0.zip
仅提供给和我一样需要着急使用的新手参考。

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

2 participants