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

long_description=open("README.rst").read() cause UnicodeDecodeError #4

Open
eromoe opened this issue Jan 13, 2016 · 3 comments
Open

Comments

@eromoe
Copy link

eromoe commented Jan 13, 2016

In python 3 win7 x64 chinese,
detail

> pip install feedfinder2
Collecting feedfinder2
  Downloading http://mirrors.aliyun.com/pypi/packages/source/f/feedfinder2/feedfinder2-0.0.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "c:\users\kasim\appdata\local\temp\pip-build-sapqnv\feedfinder2\setup.py", line 21, in <module>
        long_description=open("README.rst").read(),
    UnicodeDecodeError: 'gbk' codec can't decode bytes in position 161-162: illegal multibyte sequence

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\kasim\appdata\local\temp\pip-build-sapqnv\feedfi
nder2
@dfm
Copy link
Owner

dfm commented Jan 14, 2016

This should be fixed on pypi with version 0.0.2 and on the GitHub master. Give it a shot!

@eromoe
Copy link
Author

eromoe commented Jan 15, 2016

I think you should not import feedfinder2 before setup(),
because six maybe hasn't installed yet.

> pip install https://github.com/dfm/feedfinder2/archive/master.zip
Collecting https://github.com/dfm/feedfinder2/archive/master.zip
  Downloading https://github.com/dfm/feedfinder2/archive/master.zip
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "c:\users\xxx\appdata\local\temp\pip-n2ao06-build\setup.py", line 8, in <module>
        import feedfinder2
      File "feedfinder2.py", line 12, in <module>
        from six.moves.urllib import parse as urlparse
    ImportError: No module named six.moves.urllib

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\xxx\appdata\local\temp\pip-n2ao06-build

@dfm
Copy link
Owner

dfm commented Jul 6, 2016

This should be fixed now too. Sorry about not responding earlier!

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