pip returns error when installing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
py3dns |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I faced this error when installing py3dns by pip3.6
# Conclusion
I see the source code [DNS/Base.py](https:/
ref: https:/
Please check and fix if it is true.
# Log
[ec2-user@blah ~]$ sudo -H pip install py3dns
Collecting py3dns
Using cached https:/
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-
import DNS
File "/tmp/pip-
from .Base import DnsRequest
File "/tmp/pip-
SyntaxError: Non-ASCII character '\xc2' in file /tmp/pip-
---
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-
# Environment
Server: Amazon Linux 2018.03
Python: 3.6
Py3DNS: 3.1.0
I am unable to reproduce this. For python3, UTF-8 is the default, so non-ascii coding does not need to be declared. Are you sure you were using a python3 version of pip?
# pip3 install py3dns /files. pythonhosted. org/packages/ 87/0d/35d3d710e c6ca04d5e5f8b34 4c6604fc9590629 918346801cc5e74 25cc4a/ py3dns- 3.1.0.tar. gz __file_ _='/tmp/ pip-build- er3m_6cv/ py3dns/ setup.py' ;f=getattr( tokenize, 'open', open)(_ _file__ );code= f.read( ).replace( '\r\n', '\n');f. close() ;exec(compile( code, __file__, 'exec'))" bdist_wheel -d /tmp/tmphz3a_ d65pip- wheel- --python-tag cp36:
Collecting py3dns
Using cached https:/
Building wheels for collected packages: py3dns
Running setup.py bdist_wheel for py3dns ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----- ------- ------- ------- ------- ------- E6430:/ home# python3
Failed building wheel for py3dns
Running setup.py clean for py3dns
Failed to build py3dns
Installing collected packages: py3dns
Running setup.py install for py3dns ... done
Successfully installed py3dns-3.1.0
root@kitterma-
Python 3.6.6 (default, Jun 27 2018, 14:44:17)
[GCC 8.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import DNS
>>>
Note that the bdist_wheel error doesn't actually stop it from working. As far as I can tell, this works fine.