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

Encoding problem during pip install #5

Closed
Noordsestern opened this issue Jun 3, 2019 · 3 comments
Closed

Encoding problem during pip install #5

Noordsestern opened this issue Jun 3, 2019 · 3 comments

Comments

@Noordsestern
Copy link
Contributor

System:

  • Windows 10
  • Python 3.7

I run in to the following problem when running pip install dwdweather2:

PS D:\workspaces\robotframework-dwdweather> pip install dwdweather2
Collecting dwdweather2
  Using cached https://files.pythonhosted.org/packages/b9/0c/fb48f9e43f263a493f0a5e13d00bbe6ca0a31d11958b444836d218951a25/dwdweather2-0.8.0.tar.gz
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\Daidalos\AppData\Local\Temp\pip-install-pa4hwo8d\dwdweather2\setup.py", line 6, in <module>
        README = open(os.path.join(here, 'README.rst')).read()
      File "d:\programs\python\python37\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 2062: character maps to <undefined>
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\Daidalos\AppData\Local\Temp\pip-install-pa4hwo8d\dwdweather2\

Installation works with dwdweather (is this project related to you) but not with dwdweather2.

Installing dwdweather:

PS D:\workspaces\robotframework-dwdweather> pip install dwdweather
Collecting dwdweather
  Downloading https://files.pythonhosted.org/packages/ee/4f/4bd3ceff7b6158133d6e7cbfd68f27e4d72fd2f80c83d032944e16bbbb2f/dwdweather-0.7.tar.gz
Installing collected packages: dwdweather
  Running setup.py install for dwdweather ... done
Successfully installed dwdweather-0.7
@amotl
Copy link
Member

amotl commented Jun 3, 2019

Dear @Noordsestern,

thanks for writing in.

UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 2062: character maps to <undefined>

Ah, the usual suspects if README.rst is not totally ASCII-clean.

Thanks already for providing a fix through #6, we just released version 0.8.2 which should mitigate this issue for both Python 2.7 and Python 3.7.

With kind regards,
Andreas.


P.S.:

Is [the dwdweather] project related to you?

We just took over the further development from there, so dwdweather2 is actually a descendant of dwdweather. See also marians/dwd-weather#3.

amotl added a commit that referenced this issue Jun 3, 2019
@Noordsestern
Copy link
Contributor Author

Any plans migrating to python3?

@amotl amotl mentioned this issue Jun 3, 2019
@amotl
Copy link
Member

amotl commented Jun 3, 2019

Dear @Noordsestern,

thanks for asking. We would love to get Python3 support for this program and moved the respective discussion over to #7.

With kind regards,
Andreas.

@amotl amotl closed this as completed Jun 3, 2019
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