FarisHijazi / localCopilot

A self-hosted github copilot guide using oobabooga webui
152 stars 11 forks source link

try different encoding to fix read error #2

Closed o0oradaro0o closed 11 months ago

o0oradaro0o commented 11 months ago

was getting this error: × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [8 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\lvana\AppData\Local\Temp\pip-req-build-e1y4flvp\setup.py", line 8, in long_description = fh.read().replace('](', '](https://raw.githubusercontent.com/FarisHijazi/PrivateGitHubCopilot/master/') File "C:\ProgramData\Anaconda3\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 0x81 in position 955: character maps to [end of output]

changing your setup to specify utf-8 encoding fixed it.

o0oradaro0o commented 11 months ago

ugh im still having issues Traceback (most recent call last): File "C:\Users\lvana\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\lvana\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\lvana\AppData\Local\Programs\Python\Python310\Scripts\PrivateGitHubCopilot.exe__main__.py", line 4, in ModuleNotFoundError: No module named 'middleware'

i'll reopen a pr if i actually solve them