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

Can't install on non-English Windows. #23

Closed
Vovkt opened this issue Dec 18, 2015 · 5 comments
Closed

Can't install on non-English Windows. #23

Vovkt opened this issue Dec 18, 2015 · 5 comments

Comments

@Vovkt
Copy link

Vovkt commented Dec 18, 2015

Sorry for my English.
I have problem with installation.

Log:
C:\Users\MyUser\PycharmProjects\scss_test>pip install django-sass-processor
Collecting django-sass-processor
Using cached django-sass-processor-0.3.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 20, in
File "C:\Users\MyUser\AppData\Local\Temp\pip-build-52so00wf\django-sass-processor\setup.py", line 39, in
long_description=convert('README.md', 'rst'),
File "C:\Users\MyUser\AppData\Local\Temp\pip-build-52so00wf\django-sass-processor\setup.py", line 11, in convert
return fd.read()
File "C:\Python34\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 794: character maps to
----------------------------------------
←[31mCommand "python setup.py egg_info" failed with error code 1 in C:\Users\MyUser\AppData\Local\Temp\pip-build-52so00wf\django-sass-processor←[0m

And I have a solution:
in setup.py need replace
with open(filename, 'r') as fd:
to
with open(filename, 'r', encoding='UTF-8') as fd:

I already tried this on my fork and its work!

@jrief
Copy link
Owner

jrief commented Dec 18, 2015

Thanks for reporting, I'll add a patch soon.

@jrief jrief closed this as completed in e43a665 Dec 18, 2015
@jrief
Copy link
Owner

jrief commented Dec 18, 2015

can you please install from github, ie

git clone https://github.com/jrief/django-sass-processor.git
cd django-sass-processor
pip install -e .

@Vovkt
Copy link
Author

Vovkt commented Dec 18, 2015

Thank! Its work!

C:\Users\MyUser\PycharmProjects\scss_test>pip install https://github.com/jrief/django-sass-processor/archive/master.zip
Collecting https://github.com/jrief/django-sass-processor/archive/master.zip
Downloading https://github.com/jrief/django-sass-processor/archive/master.zip
←[K / 16kB 110kB/ss
Installing collected packages: django-sass-processor
Running setup.py install for django-sass-processor
Successfully installed django-sass-processor-0.3.0

@jrief
Copy link
Owner

jrief commented Dec 18, 2015

Can you please retry with version 0.3.2 from PyPI, ie

pip uninstall django-sass-processor
pip install django-sass-processor

Thanks

@Vovkt
Copy link
Author

Vovkt commented Dec 18, 2015

C:\Users\MyUser\PycharmProjects\scss_test>pip install django-sass-processor
Collecting django-sass-processor
Downloading django-sass-processor-0.3.2.tar.gz
Installing collected packages: django-sass-processor
Running setup.py install for django-sass-processor
Successfully installed django-sass-processor-0.3.2

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