django - UnicodeDecodeError: 'ascii' codec can not decode byte 0xc3 in position 32: ordinal not in range (128)

1

Good evening guys! I have Ubuntu 16.04, trying to get back to django, ms when I try to start a project with this error here:

  

raceback (most recent call last):
  File "/ home / alekys / Envs / test3 / bin / django-admin", line 11, in <module>   sys.exit (execute_from_command_line ())
  File "/home/alekys/Envs/test3/local/lib/python2.7/site-packages/django/core/management/init.py", line 353, in execute_from_command_line   utility.execute ()
  File "/home/alekys/Envs/test3/local/lib/python2.7/site-packages/django/core/management/init.py", line 345, in execute   self.fetch_command (subcommand) .run_from_argv (self.argv)
  File "/home/alekys/Envs/test3/local/lib/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv   self.execute (args, cmd_options)
  File "/home/alekys/Envs/test3/local/lib/python2.7/site-packages/django/core/management/base.py", line 399, in execute   output = self.handle (args, options)
  File "/home/alekys/Envs/test3/local/lib/python2.7/site-packages/django/core/management/commands/startproject.py", line 33, in handle   super (Command, self) .handle ('project', project_name, target, options)
  File "/home/alekys/Envs/test3/local/lib/python2.7/site-packages/django/core/management/templates.py", line 162, in handle   if new_path.endswith (extensions) or filename in extra_files:   UnicodeDecodeError: 'ascii' codec can not decode byte 0xc3 in position 32: ordinal not in range (128)

using virtualenv, I downloaded django 1.9.7 Someone who can help me? I've tried several things I found on the net, until I remove and reinstall python 2.7 Thank you!

    
asked by anonymous 30.06.2016 / 01:14

1 answer

0

According to this answer what is happening is. In the path of your project there is some character that django can not process.

Example:

/home/usuario/AndrÀ/projetos/

In this case Django will not be able to process the À character. That was the similar error that was found. If possible post what is the path you are trying to create the project.

Because the code that can not be decoded is 0xc3, you have a À character

    
30.06.2016 / 10:31