#28630: Cann't install django when there are chinese-characters in my home
directory name on Windows10
-------------------------------------+-------------------------------------
     Reporter:  zhaogp               |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:                       |                  Version:  master
  Internationalization               |
     Severity:  Normal               |               Resolution:
     Keywords:  install, unicode,    |             Triage Stage:
  encode, chinese characters         |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by zhaogp):

 Replying to [comment:1 Claude Paroz]:
 > Without the full traceback, it's impossible to say if Django is at
 fault. Could you give us that information?

 Hi Claude, here the full traceback is, thanks!

 C:\Users\赵国平\django>pip install -e .
 Obtaining file:///C:/Users/%E8%B5%B5%E5%9B%BD%E5%B9%B3/django
 Requirement already satisfied: pytz in c:\python34\lib\site-packages (from
 Django==2.1.dev20170924155150)
 Installing collected packages: Django
   Found existing installation: Django 2.1.dev20170924155150
     Uninstalling Django-2.1.dev20170924155150:
       Successfully uninstalled Django-2.1.dev20170924155150
   Running setup.py develop for Django
     Complete output from command c:\python34\python.exe -c "import
 setuptools, tokenize;__file__='C:\\Users\\赵国平
 \\django\\setup.py';f=getattr(tokenize, 'open',
 open)(__file__);code=f.read().replace
 ('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop
 --no-deps:
     running develop
     running egg_info
     writing dependency_links to Django.egg-info\dependency_links.txt
     writing requirements to Django.egg-info\requires.txt
     writing entry points to Django.egg-info\entry_points.txt
     writing Django.egg-info\PKG-INFO
     writing top-level names to Django.egg-info\top_level.txt
     reading manifest file 'Django.egg-info\SOURCES.txt'
     reading manifest template 'MANIFEST.in'
     warning: no previously-included files matching '__pycache__' found
 anywhere in distribution
     writing manifest file 'Django.egg-info\SOURCES.txt'
     running build_ext
     Creating c:\python34\lib\site-packages\Django.egg-link (link to .)
     Django 2.1.dev20170924155150 is already the active version in easy-
 install.pth
     Installing django-admin-script.py script to c:\python34\Scripts
     Installing django-admin.exe script to c:\python34\Scripts
         Traceback (most recent call last):
     File "<string>", line 1, in <module>
     File "C:\Users\赵国平\django\setup.py", line 72, in <module>
       'Topic :: Software Development :: Libraries :: Python Modules',
     File "c:\python34\lib\distutils\core.py", line 148, in setup
       dist.run_commands()
     File "c:\python34\lib\distutils\dist.py", line 955, in run_commands
       self.run_command(cmd)
     File "c:\python34\lib\distutils\dist.py", line 974, in run_command
       cmd_obj.run()
     File "c:\python34\lib\site-packages\setuptools\command\develop.py",
 line 36, in run
       self.install_for_development()
     File "c:\python34\lib\site-packages\setuptools\command\develop.py",
 line 150, in install_for_development
       self.process_distribution(None, self.dist, not self.no_deps)
     File "c:\python34\lib\site-
 packages\setuptools\command\easy_install.py", line 727, in
 process_distribution
       self.install_egg_scripts(dist)
     File "c:\python34\lib\site-packages\setuptools\command\develop.py",
 line 186, in install_egg_scripts
       self.install_script(dist, script_name, script_text, script_path)
     File "c:\python34\lib\site-
 packages\setuptools\command\easy_install.py", line 806, in install_script
       self.write_script(script_name, _to_ascii(script_text), 'b')
     File "c:\python34\lib\site-
 packages\setuptools\command\easy_install.py", line 107, in _to_ascii
       return s.encode('ascii')
   UnicodeEncodeError: 'ascii' codec can't encode characters in position
 241-243: ordinal not in range(128)

   ----------------------------------------
 Rolling back uninstall of Django
 mmand "c:\python34\python.exe -c "import setuptools,
 tokenize;__file__='C:\\Users\\赵国平
 \\django\\setup.py';f=getattr(tokenize, 'open',
 open)(__file__);code=f.read().replace('\r\n', '\n');f.close()
 xec(compile(code, __file__, 'exec'))" develop --no-deps" failed with error
 code 1 in C:\Users\赵国平\django\

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28630#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.97a68b09b94fe15745f1782f78b6bbf3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to