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

BUG: Decoding error in setup.py on Windows. #82

Closed
nonhermitian opened this issue Oct 23, 2017 · 2 comments
Closed

BUG: Decoding error in setup.py on Windows. #82

nonhermitian opened this issue Oct 23, 2017 · 2 comments

Comments

@nonhermitian
Copy link

Currently, installing OpenFermion on Windows with Python 3 (have not checked on Py2) fails due to a decoding error in the opening of README.rst for the long description:

Traceback (most recent call last):
  File "setup.py", line 22, in <module>
    long_description = open('README.rst').read()
  File "C:\Users\J44364\AppData\Local\Continuum\Anaconda3\lib\encodings\cp1252.p
y", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 5418: cha
racter maps to <undefined>

this is fixed by adding encoding="utf-8" as an argument to open.

@babbush
Copy link
Contributor

babbush commented Oct 23, 2017

Thanks! We'll look into this. Unfortunately because the electronic structure package dependancies (Psi4 and PySCF) are only supported on mac and linux, we do not yet fully support Windows. For those running on Windows we would recommend using the Docker installation.

However, it is nice to know that the core library installs at all on Windows! This does seem like a fairly easy issue to address.

@nonhermitian
Copy link
Author

That should probably be mentioned in the readme then. Having been doing open source quantum stuff for a while now, I know that Windows support is kind of a requirement for wide acceptance. Sadly, it is also a pain in the butt.

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