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

Can't install with pip (Python 3.3) #19

Closed
genericmoniker opened this Issue Sep 13, 2013 · 3 comments

Comments

Projects
None yet
3 participants
@genericmoniker
Copy link

genericmoniker commented Sep 13, 2013

I'm unable to install cerberus either from pypi or git. I'm actually trying to install eve, but cerberus seems to be the culprit (something in the LICENSE file?):

Downloading/unpacking cerberus
  Downloading Cerberus-0.3.0.tar.gz
  Running setup.py egg_info for package cerberus
    Traceback (most recent call last):
      File "", line 16, in 
      File "C:\dev\misc\eve\env\build\cerberus\setup.py", line 17, in 
        license=open('LICENSE').read(),
      File "C:\dev\misc\eve\env\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 287: character maps to undefined>
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "", line 16, in 

  File "C:\dev\misc\eve\env\build\cerberus\setup.py", line 17, in 

    license=open('LICENSE').read(),

  File "C:\dev\misc\eve\env\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 287: character maps to undefined>
@nicolaiarocci

This comment has been minimized.

Copy link
Member

nicolaiarocci commented Sep 16, 2013

Hello,

I just created a new Py33 virtualenv and installed Eve without any issue. Not sure what might be going wrong here... Maybe you're on Windows? I'm on OSX.

@arshsingh

This comment has been minimized.

Copy link
Contributor

arshsingh commented Sep 16, 2013

I got the same error on windows. The problem is that on windows, the encoding defaults to cp1252 which fails to decode the right curly quote in the following text: THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR.....

Just replacing the curly quotes in the license file with normal ones will resolve this issue

@nicolaiarocci

This comment has been minimized.

Copy link
Member

nicolaiarocci commented Sep 16, 2013

Good catch guys, thank you both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment