python - django-admin error with decoding -


i have problem " django-admin startproject mysite . " command. when try execute it, cygwin returns me error:

traceback (most recent call last): file "/usr/bin/django-admin", line 9, in load_entry_point('django==1.10.2', 'console_scripts', 'django-admin')() file "/usr/lib/python2.7/site-packages/django-1.10.2-py2.7.egg/django/core/management/init.py", line 367, in execute_from_command_line utility.execute() file "/usr/lib/python2.7/site-packages/django-1.10.2-py2.7.egg/django/core/management/init.py", line 359, in execute self.fetch_command(subcommand).run_from_argv(self.argv) file "/usr/lib/python2.7/site-packages/django-1.10.2-py2.7.egg/django/core/management/base.py", line 294, in run_from_argv self.execute(*args, **cmd_options) file "/usr/lib/python2.7/site-packages/django-1.10.2-py2.7.egg/django/core/management/base.py", line 345, in execute output = self.handle(*args, **options) file "/usr/lib/python2.7/site-packages/django-1.10.2-py2.7.egg/django/core/management/commands/startproject.py", line 34, in handle super(command, self).handle('project', project_name, target, **options) file "/usr/lib/python2.7/site-packages/django-1.10.2-py2.7.egg/django/core/management/templates.py", line 164, in handle if new_path.endswith(extensions) or filename in extra_files: unicodedecodeerror: 'ascii' codec can't decode byte 0xc5 in position 22: ordinal not in range(128)

  • i running command in cygwin 6.3
  • python version: 3.5.2
  • django version: 1.10.2

maybe it's important: had serious issue django-admin.py file (django installer didn't install it) found following content of file , maybe it's incorrect?

#!/usr/bin/env python django.core import management  if __name__ == "__main__":     management.execute_from_command_line() 

i reading problem in python 2.x not in 3.x , can't find answer. please, me that.

it seems me, django trying start in python verison 2.7. try changing default python interpreter python3 or python3.5.

or @ least can try change first line of django-admin.py be: #!/usr/bin/env python3.5


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -