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

pip install fails #8

Closed
adrianstaniec opened this issue Jul 4, 2023 · 5 comments · Fixed by #14
Closed

pip install fails #8

adrianstaniec opened this issue Jul 4, 2023 · 5 comments · Fixed by #14

Comments

@adrianstaniec
Copy link

I get this error message when trying to install with pip

Collecting gorilla-cli
  Downloading gorilla-cli-0.0.8.tar.gz (27 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Temp\pip-install-snfk72nj\gorilla-cli_57007838e78a490fb36390faa9c4a90c\setup.py", line 24, in <module>
          long_description=open("README.md").read(),
        File "C:\Users\adrian\scoop\apps\python\current\lib\encodings\cp1252.py", line 23, in decode
          return codecs.charmap_decode(input,self.errors,decoding_table)[0]
      UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 1245: character maps to <undefined>
      [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.
hint: See above for details.
@Mindstormer619
Copy link

Same issue for me. Is this a Windows-specific thing maybe?

@ShishirPatil
Copy link
Member

ShishirPatil commented Jul 6, 2023

Ah thanks for raising this @adrianstaniec and @Mindstormer619.

Potential fix - in setup.py replace long_description=open("README.md").read() with long_description=open("README.md", "r", encoding="utf-8").read() and then install from source:

pip uninstall gorilla-cli
git clone https://github.com/gorilla-llm/gorilla-cli.git 
cd gorilla-cli
pip install -e .

Just to make sure I can test it before tearing a new release, what OS and python version are you running on?

@Mindstormer619
Copy link

OS: Windows 10 22H2
Python: Python 3.11.4

@adrianstaniec
Copy link
Author

OS: Windows 10 22H2

Windows 10 22H2
Python 3.10.8

@ShishirPatil
Copy link
Member

Thank you! Did the above fix help at all? 👀

ShishirPatil added a commit that referenced this issue Jul 18, 2023
…ove examples] (#14)

Fixes:
- 🪟 Windows installs were running into decoding issues. Now decoding
scheme is explicitly stated. Fixes #8 #11
- ✅ Removed the assert that checked for user_id. If a user_id is not
found, it assign a per session unique_id. Fixes #3

Improvements:
- 💼 Brief welcome message. 
- 🚀 Better examples that demonstrate the power of gorilla
- 🦍 Logo in README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants