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

Error when installing the package #72

Closed
Jaime02 opened this issue Sep 28, 2019 · 10 comments
Closed

Error when installing the package #72

Jaime02 opened this issue Sep 28, 2019 · 10 comments

Comments

@Jaime02
Copy link
Contributor

Jaime02 commented Sep 28, 2019

I get this error while installing the module:

C:\WINDOWS\system32>pip install vg
Collecting vg
  Using cached https://files.pythonhosted.org/packages/34/42/aad07165a66eb402ec60d2e40640b585ca56b748b42e9923c1242be4d06b/vg-1.2.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\reas\AppData\Local\Temp\pip-install-2c8clwqs\vg\setup.py", line 10, in <module>
        readme = f.read()
      File "c:\program files (x86)\python37-32\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 0x8d in position 1618: character maps to <undefined>
@paulmelnikow
Copy link
Member

Hi! Thanks for the report. I haven't used this on Windows; any idea what the problem might be? I'd be happy to accept a pull request :)

@Jaime02
Copy link
Contributor Author

Jaime02 commented Sep 29, 2019

I have no experience working with files and encodig, but the problem seems to be the file encoding. Maybe this links can help:
https://stackoverflow.com/questions/12468179/unicodedecodeerror-utf8-codec-cant-decode-byte-0x9c
https://stackoverflow.com/questions/9233027/unicodedecodeerror-charmap-codec-cant-decode-byte-x-in-position-y-character

@Jaime02
Copy link
Contributor Author

Jaime02 commented Sep 29, 2019

#74

@paulmelnikow
Copy link
Member

It looks like that fix doesn't work in Python 2. Am I right that you're using Python 3?

@Jaime02
Copy link
Contributor Author

Jaime02 commented Sep 29, 2019

Yes, I am using Python 3.7. Do you want to keep using both versions?

@paulmelnikow
Copy link
Member

Yea, new releases of this library will support Python 2 until the deprecation in January.

@paulmelnikow
Copy link
Member

If I push a branch could you check it out and run python setup.py install on Windows?

@Jaime02
Copy link
Contributor Author

Jaime02 commented Sep 29, 2019

Sure, I am here for helping you. I will check it.
Edit: My commit passed the python 2 test, why it did not show the error?

@paulmelnikow
Copy link
Member

Not sure! Seems well documented that the encoding parameter doesn't exist in Python 2…

@paulmelnikow
Copy link
Member

Released in 1.2.2!

@Jaime02 Jaime02 closed this as completed Sep 29, 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