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

Installation on Windows fails - bad character in README.rst? #85

Closed
shanselman opened this issue Aug 15, 2012 · 4 comments
Closed

Installation on Windows fails - bad character in README.rst? #85

shanselman opened this issue Aug 15, 2012 · 4 comments
Labels
bug Something isn't working windows Windows specific issue

Comments

@shanselman
Copy link

When running setup.py (doesn't matter how) with Python 3.2.3 I get a error. A bad character perhaps in README.rst.

C:\Users\scottha\Desktop\build\httpie>python setup.py install
Traceback (most recent call last):
  File "setup.py", line 29, in <module>
    long_description=open('README.rst').read(),
  File "C:\Python32\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 0x8f in position 15359:
aracter maps to <undefined>

I got past it and installed by commenting out the open.

long_description="", #open('README.rst').read(),
@jkbrzt jkbrzt closed this as completed in 8bf7f82 Aug 16, 2012
@jkbrzt
Copy link
Member

jkbrzt commented Aug 16, 2012

It should be fixed in master now. You can try installing it with:

pip install -U https://github.com/jkbr/httpie/tarball/master

Thanks for the report!

@shanselman
Copy link
Author

Hm, got this:

C:\windows\system32>pip install -U
https://github.com/jkbr/httpie/tarball/master

Downloading/unpacking https://github.com/jkbr/httpie/tarball/master
Downloading master (494Kb): 494Kb downloaded
Running setup.py egg_info for package from
https://github.com/jkbr/httpie/tarb
all/master

Exception:
Traceback (most recent call last):
File "C:\Python32\lib\site-packages\pip\basecommand.py", line 104, in main
status = self.run(options, args)
File "C:\Python32\lib\site-packages\pip\commands\install.py", line 245,
in run

requirement_set.prepare_files(finder, force_root_egg_info=self.bundle,

bundl
e=self.bundle)
File "C:\Python32\lib\site-packages\pip\req.py", line 1009, in
prepare_files
req_to_install.run_egg_info()
File "C:\Python32\lib\site-packages\pip\req.py", line 230, in run_egg_info
"%(Name)s==%(Version)s" % self.pkg_info())
File "C:\Python32\lib\site-packages\pip\req.py", line 318, in pkg_info
data = self.egg_info_data('PKG-INFO')
File "C:\Python32\lib\site-packages\pip\req.py", line 261, in
egg_info_data
data = fp.read()
File "C:\Python32\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 0x8f in position
21306: ch
aracter maps to

Storing complete log in C:\Users\scottha\AppData\Roaming\pip\pip.log

C:\windows\system32>

On Wed, Aug 15, 2012 at 6:19 PM, Jakub Roztocil notifications@github.comwrote:

It should be fixed in master now. You can try installing it with:

pip install -U https://github.com/jkbr/httpie/tarball/master

Thanks for the report!


Reply to this email directly or view it on GitHubhttps://github.com//issues/85#issuecomment-7774772.

Scott Hanselman
Help me? http://hnsl.mn/fightdiabetes

@jkbrzt jkbrzt reopened this Aug 16, 2012
@jkbrzt jkbrzt closed this as completed in 86256af Aug 16, 2012
@jkbrzt
Copy link
Member

jkbrzt commented Aug 16, 2012

Fixed now. You might be the first person to try HTTPie on Windows with Python 3 :) I've noticed that along with the install process being broken, colorising doesn't work in this environment either (#87). Until it gets fixed, you can use --format to skip colorising as a workaround.

@jkbrzt
Copy link
Member

jkbrzt commented Aug 17, 2012

…and colors are working as well now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows Windows specific issue
Projects
None yet
Development

No branches or pull requests

2 participants