-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Convert file to ascii from utf-8 to avoind compile (and install failu… #15
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
Conversation
…re) on windows pip install sagemaker Collecting sagemaker Using cached sagemaker-1.0.0.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\martinfr\AppData\Local\Temp\pip-build-w9iiq2qf\sagemaker\setup.py", line 18, in <module> long_description=read('README.rst'), File "C:\Users\martinfr\AppData\Local\Temp\pip-build-w9iiq2qf\sagemaker\setup.py", line 9, in read return open(os.path.join(os.path.dirname(__file__), fname)).read() File "C:\Tools\Anaconda3\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 2576: character maps to <undefined> Sagemaker now builds and installs on windows 10
Hi, thanks for submitting this! The build is successful for Python 2.7, but for Python 3.5, it produces the following error:
It looks like it's having issues with the smart quotes. Would you mind replacing them with normal quotes? |
Lauren
Ok – so I only have Python 3.6 on windows and the tox command just doesn’t run the tests, and the error you are reporting very similar to the one I saw
Except mine is UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 2576:
While yours is UnicodeDecodeError: 'utf-8' codec can't decode byte 0x93 in position 2568:
I don’t know enough about the .rst file format to be able to tell what is/isn’t permitted – I thought just converting it to ansi would ‘remove any ‘bad’ characters – but obviously this didn’t work.
I looked at character positions 2568 and 2576 and as far as I can tell they are just in the middle of some text – don’t see any special characters. I’m using notepad++, I’ll try a hex editor to see if there’s something not showing.
Any clues as to what needs to be edited would be appreciated
Thanks
Martin
From: Lauren Yu [mailto:[email protected]]
Sent: Friday, December 8, 2017 3:55 PM
To: aws/sagemaker-python-sdk <[email protected]>
Cc: Martin Franklin <[email protected]>; Author <[email protected]>
Subject: Re: [aws/sagemaker-python-sdk] Convert file to ascii from utf-8 to avoind compile (and install failu… (#15)
Hi, thanks for submitting this!
The build is successful for Python 2.7, but for Python 3.5, it produces the following error:
ERROR: actionid: tox
msg: packaging
cmdargs: ['/home/travis/virtualenv/python3.5.3/bin/python', local('/home/travis/build/aws/sagemaker-python-sdk/setup.py'), 'sdist', '--formats=zip', '--dist-dir', local('/home/travis/build/aws/sagemaker-python-sdk/.tox/dist')]
Traceback (most recent call last):
File "setup.py", line 18, in <module>
long_description=read('README.rst'),
File "setup.py", line 9, in read
return open(os.path.join(os.path.dirname(__file__), fname)).read()
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x93 in position 2568: invalid start byte
ERROR: FAIL could not package project - v = InvocationError('/home/travis/virtualenv/python3.5.3/bin/python /home/travis/build/aws/sagemaker-python-sdk/setup.py sdist --formats=zip --dist-dir /home/travis/build/aws/sagemaker-python-sdk/.tox/dist (see /home/travis/build/aws/sagemaker-python-sdk/.tox/log/tox-0.log)', 1)
It looks like it's having issues with the smart quotes. Would you mind replacing them with normal quotes?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#15 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/ABlG_qiKF8e3jhvHY0rj52K7qCeMtdmZks5s-cw_gaJpZM4Q7pVZ> . <https://github.com/notifications/beacon/ABlG_rWaOALXI3Vka6dGS-6qelv3osXrks5s-cw_gaJpZM4Q7pVZ.gif>
|
… 22 octal quote character
Hi Martin, For me, the character at 2568 is the double quote before "doc" on line 81 - it looks like a smart quote given that the lines in the quote are angled rather than vertical, i.e. Edit: Just noticed you posted a commit as I was typing this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching all of those!
… method (aws#15) * Refactor EstimatorBase and Framework to have a prepare_for_training() method * Specify argument directly instead of using **kwargs
Revert "Update to TF 1.0.4"
Integration test of requirements.txt + script bundle functionality
…re) on windows
pip install sagemaker
Collecting sagemaker
Using cached sagemaker-1.0.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\martinfr\AppData\Local\Temp\pip-build-w9iiq2qf\sagemaker\setup.py", line 18, in
long_description=read('README.rst'),
File "C:\Users\martinfr\AppData\Local\Temp\pip-build-w9iiq2qf\sagemaker\setup.py", line 9, in read
return open(os.path.join(os.path.dirname(file), fname)).read()
File "C:\Tools\Anaconda3\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 2576: character maps to
Sagemaker now builds and installs on windows 10