You are not logged in.

#1 2015-08-21 08:39:46

riddle00
Member
From: Lithuania
Registered: 2015-05-26
Posts: 81

unicode decode error when downloading python package

Hello,

I am trying to run localserver to develop a webpage with python and django. When I run "make" command to download and configure python packages, I get this error:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 196: ordinal not in range(128)
An error occurred when trying to install hexagonit.recipe.download 1.7. Look above this message for any errors that were output by easy_install.
While:
  Installing.
  Getting section jquery.
  Initializing section jquery.
  Installing recipe hexagonit.recipe.download.
  Getting distribution for 'hexagonit.recipe.download==1.7'.
Error: Couldn't install: hexagonit.recipe.download 1.7
Makefile:40: recipe for target 'bin/django' failed
make: *** [bin/django] Error 1

What could be the problem here? I have successfully created this working environment on Linux Mint by the way.

If I need to post more info or error logs, let me know.

Thanks


Vim is not just an editor (...); it is for all intents and purposes a universal design pattern. --  Jason Ryan

Offline

#2 2015-08-22 01:34:55

Techmeology
Member
Registered: 2012-08-21
Posts: 19

Re: unicode decode error when downloading python package

On the face of it, the problem seems to be that the script is trying to decode non-ASCII data as ASCII, and getting stuck when it encounters a non-ASCII character. One way I can think of that this could come about is if the script is intended to run in Python2. Archlinux uses Python3 by default. Many distributions are still using Python2. IIRC, Python3 and Python2 have different handling for unicode strings. Try changing the makefile (or scripts if you're using a shebang) to use /usr/bin/env python2 rather than python3.

Offline

Board footer

Powered by FluxBB