E
E
Elektroyurist2020-08-29 00:13:19
Python
Elektroyurist, 2020-08-29 00:13:19

Python 2.7.18 when installing iAirPyrt gives UnicodeDecodeError: 'ascii' codec can't decode. How to decide?

I really want to change the region on my Apple Airport Extreme according to the instructions https://habr.com/en/post/501404/ .
I get an error while installing the iAirPyrt module. Help decide.

Log below:

spoiler
C:\Python27>easy_install github.com/x56…ols/archive/master.zip
Downloading github.com/x56…ols/archive/master.zip
Processing master.zip
Writing c:\users\7403~1\appdata\local\temp\easy_install-x1x8th\airpyrt-tools-master\setup.cfg
Running airpyrt-tools-master\setup.py -q bdist_egg --dist-dir c:\users\7403~1\appdata\local\temp\easy_install-x1x8th\airpyrt-tools-master\egg-dist-tmp-dqmltk
zip_safe flag not set; analyzing archive contents…
Removing c:\python27\lib\site-packages\acp-1.0-py2.7.egg
Moving acp-1.0-py2.7.egg to c:\python27\lib\site-packages
acp 1.0 is already the active version in easy-install.pth
Installing acp-script.py script to c:\python27\Scripts
Installing acp.exe script to c:\python27\Scripts

Installed c:\python27\lib\site-packages\acp-1.0-py2.7.egg
Processing dependencies for acp==1.0
Searching for pycrypto
Reading pypi.org/simple/pycrypto
Downloading files.pythonho…7a88aa92b3a65528f60a3c
Best match: pycrypto 2.6.1
Processing pycrypto-2.6.1.tar.gz
Writing c:\users\7403~1\appdata\local\temp\easy_install-us_djk\pycrypto-2.6.1\setup.cfg
Running pycrypto-2.6.1\setup.py -q bdist_egg --dist-dir c:\users\7403~1\appdata\local\temp\easy_install-us_djk\pycrypto-2.6.1\egg-dist-tmp-4u8tel
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
Traceback (most recent call last):
File «c:\python27\lib\runpy.py», line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File «c:\python27\lib\runpy.py», line 72, in _run_code
exec code in run_globals
File «C:\Python27\Scripts\easy_install.exe\__main__.py», line 9, in File «c:\python27\lib\site-packages\setuptools\command\easy_install.py», line 2316, in main
**kw
File «c:\python27\lib\site-packages\setuptools\__init__.py», line 145, in setup
return distutils.core.setup(**attrs)
File «c:\python27\lib\distutils\core.py», line 151, in setup
dist.run_commands()
File «c:\python27\lib\distutils\dist.py», line 953, in run_commands
self.run_command(cmd)
File «c:\python27\lib\distutils\dist.py», line 972, in run_command
cmd_obj.run()
File «c:\python27\lib\site-packages\setuptools\command\easy_install.py», line 418, in run
self.easy_install(spec, not self.no_deps)
File «c:\python27\lib\site-packages\setuptools\command\easy_install.py», line 655, in easy_install
return self.install_item(None, dl, tmpdir, deps, True)
File «c:\python27\lib\site-packages\setuptools\command\easy_install.py», line 707, in install_item
self.process_distribution(spec, dist, deps)
File «c:\python27\lib\site-packages\setuptools\command\easy_install.py», line 752, in process_distribution
[requirement], self.local_index, self.easy_install
File «c:\python27\lib\site-packages\pkg_resources\__init__.py», line 782, in resolve
replace_conflicting=replace_conflicting
File «c:\python27\lib\site-packages\pkg_resources\__init__.py», line 1065, in best_match
return self.obtain(req, installer)
File «c:\python27\lib\site-packages\pkg_resources\__init__.py», line 1077, in obtain
return installer(requirement)
File «c:\python27\lib\site-packages\setuptools\command\easy_install.py», line 679, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File «c:\python27\lib\site-packages\setuptools\command\easy_install.py», line 705, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File «c:\python27\lib\site-packages\setuptools\command\easy_install.py», line 890, in install_eggs
return self.build_and_install(setup_script, setup_base)
File «c:\python27\lib\site-packages\setuptools\command\easy_install.py», line 1158, in build_and_install
self.run_setup(setup_script, setup_base, args)
File «c:\python27\lib\site-packages\setuptools\command\easy_install.py», line 1144, in run_setup
run_setup(setup_script, args)
File «c:\python27\lib\site-packages\setuptools\sandbox.py», line 253, in run_setup
raise
File «c:\python27\lib\contextlib.py», line 35, in __exit__
self.gen.throw(type, value, traceback)
File «c:\python27\lib\site-packages\setuptools\sandbox.py», line 195, in setup_context
yield
File «c:\python27\lib\contextlib.py», line 35, in __exit__
self.gen.throw(type, value, traceback)
File «c:\python27\lib\site-packages\setuptools\sandbox.py», line 166, in save_modules
saved_exc.resume()
File «c:\python27\lib\site-packages\setuptools\sandbox.py», line 141, in resume
six.reraise(type, exc, self._tb)
File «c:\python27\lib\site-packages\setuptools\sandbox.py», line 154, in save_modules
yield saved
File «c:\python27\lib\site-packages\setuptools\sandbox.py», line 195, in setup_context
yield
File «c:\python27\lib\site-packages\setuptools\sandbox.py», line 250, in run_setup
_execfile(setup_script, ns)
File «c:\python27\lib\site-packages\setuptools\sandbox.py», line 45, in _execfile
exec(code, globals, locals)
File «c:\users\7403~1\appdata\local\temp\easy_install-us_djk\pycrypto-2.6.1\setup.py», line 456, in File «c:\python27\lib\distutils\core.py», line 151, in setup
dist.run_commands()
File «c:\python27\lib\distutils\dist.py», line 953, in run_commands
self.run_command(cmd)
File «c:\python27\lib\distutils\dist.py», line 972, in run_command
cmd_obj.run()
File «c:\python27\lib\site-packages\setuptools\command\bdist_egg.py», line 172, in run
cmd = self.call_command('install_lib', warn_dir=0)
File «c:\python27\lib\site-packages\setuptools\command\bdist_egg.py», line 158, in call_command
self.run_command(cmdname)
File «c:\python27\lib\distutils\cmd.py», line 326, in run_command
self.distribution.run_command(command)
File «c:\python27\lib\distutils\dist.py», line 972, in run_command
cmd_obj.run()
File «c:\python27\lib\site-packages\setuptools\command\install_lib.py», line 11, in run
self.build()
File «c:\python27\lib\distutils\command\install_lib.py», line 111, in build
self.run_command('build_ext')
File «c:\python27\lib\distutils\cmd.py», line 326, in run_command
self.distribution.run_command(command)
File «c:\python27\lib\distutils\dist.py», line 972, in run_command
cmd_obj.run()
File «c:\users\7403~1\appdata\local\temp\easy_install-us_djk\pycrypto-2.6.1\setup.py», line 253, in run
File «c:\python27\lib\distutils\command\build_ext.py», line 340, in run
self.build_extensions()
File «c:\users\7403~1\appdata\local\temp\easy_install-us_djk\pycrypto-2.6.1\setup.py», line 150, in build_extensions
File «c:\python27\lib\distutils\command\build_ext.py», line 449, in build_extensions
self.build_extension(ext)
File «c:\python27\lib\distutils\command\build_ext.py», line 499, in build_extension
depends=ext.depends)
File «c:\python27\lib\distutils\msvc9compiler.py», line 473, in compile
self.initialize()
File «c:\python27\lib\distutils\msvc9compiler.py», line 383, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File «c:\python27\lib\site-packages\setuptools\msvc.py», line 147, in msvc9_query_vcvarsall
return EnvironmentInfo(arch, ver).return_env()
File «c:\python27\lib\site-packages\setuptools\msvc.py», line 1231, in return_env
exists),
File «c:\python27\lib\site-packages\setuptools\msvc.py», line 1278, in _build_paths
return os.pathsep.join(unique_paths)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 9: ordinal not in range(128)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question