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

error when installing via pip (using windows) #29

Open
Kraut-Inferences opened this issue Apr 8, 2023 · 2 comments
Open

error when installing via pip (using windows) #29

Kraut-Inferences opened this issue Apr 8, 2023 · 2 comments

Comments

@Kraut-Inferences
Copy link

when installing i get the following error:
Collecting git+https://github.com/ml-jku/hopfield-layers
Cloning https://github.com/ml-jku/hopfield-layers to c:\users\magma\appdata\local\temp\pip-req-build-hqlogu8q
Running command git clone --filter=blob:none -q https://github.com/ml-jku/hopfield-layers 'C:\Users\Magma\AppData\Local\Temp\pip-req-build-hqlogu8q'
Resolved https://github.com/ml-jku/hopfield-layers to commit f56f929
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\users\magma\appdata\local\programs\python\python36\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Magma\AppData\Local\Temp\pip-req-build-hqlogu8q\setup.py'"'"'; file='"'"'C:\Users\Magma\AppData\Local\Temp\pip-req-build-hqlogu8q\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Magma\AppData\Local\Temp\pip-pip-egg-info-zr1l4u'
cwd: C:\Users\Magma\AppData\Local\Temp\pip-req-build-hqlogu8q
Complete output (7 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Magma\AppData\Local\Temp\pip-req-build-hqlogu8q\setup.py", line 4, in
long_description = readme_handle.read()
File "C:\users\magma\appdata\local\programs\python\python36\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 0x9d in position 3096: character maps to

WARNING: Discarding git+https://github.com/ml-jku/hopfield-layers. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Nix-da added a commit to Nix-da/hopfield-layers that referenced this issue Apr 23, 2023
a symbol (probably the “) caused problems when trying to pip install the library on windows (Issue ml-jku#29)
@Nix-da
Copy link

Nix-da commented Apr 23, 2023

Hi, I had the same problem and created a fork of this repo where I fiexed it. If you still have the problem you may check it out (until the original Lib does)

@Tigxy
Copy link

Tigxy commented Apr 3, 2024

Hi!
I had the same issue. I bypassed it by setting the environment variable PYTHONUTF8 to 1, i.e., execute
set PYTHONUTF8=1. @Nix-da 's solution is definitely better, but it did the job.

Check out https://stackoverflow.com/a/64549704 for some more information :)

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

3 participants