Comments (4)
Same here....
(netboxenv)root@netbox:/opt/netbox# pip install textfsm
Collecting textfsm
Using cached https://files.pythonhosted.org/packages/a1/0d/a1b490503545b3b4600b965eae5d44cc2b6ce27cfb44f4debc563dbb56d3/textfsm-0.4.1.tar.gz
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/textfsm.egg-info
writing top-level names to pip-egg-info/textfsm.egg-info/top_level.txt
writing dependency_links to pip-egg-info/textfsm.egg-info/dependency_links.txt
writing pip-egg-info/textfsm.egg-info/PKG-INFO
/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-i3s0hljb/textfsm/setup.py", line 50, in
'texttable', 'terminal'])
File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/opt/netbox/netboxenv/lib/python3.4/site-packages/setuptools/command/egg_info.py", line 161, in run
writer(self, ep.name, os.path.join(self.egg_info, ep.name))
File "/opt/netbox/netboxenv/lib/python3.4/site-packages/setuptools/command/egg_info.py", line 349, in write_pkg_info
metadata.write_pkg_info(cmd.egg_info)
File "/usr/lib/python3.4/distutils/dist.py", line 1108, in write_pkg_info
self.write_pkg_file(pkg_info)
File "/usr/lib/python3.4/distutils/dist.py", line 1129, in write_pkg_file
long_desc = rfc822_escape(self.get_long_description())
File "/usr/lib/python3.4/distutils/util.py", line 470, in rfc822_escape
lines = header.split('\n')
TypeError: Type str doesn't support the buffer API
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-i3s0hljb/textfsm/
from textfsm.
I need to reproduce this first, but the long description is actually the content of the README file, I think the open
function from codecs
does not convert it to a string if no encoding is provided in that Python version.
in setup.py
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md')) as f:
long_description = f.read()
from textfsm.
Try to reproduce the error without pip
by cloning the repository and running python setup.py install
. Try forcing the encoding to utf8
in the open
function.
with open(path.join(here, 'README.md'), encoding="utf8") as f:
from textfsm.
https://docs.python.org/3.4/library/codecs.html#codecs.open
from textfsm.
Related Issues (20)
- show cdp neighbor detail template fails when output includes VTP VTP Management Domain Name: null HOT 3
- download src via pip download requires six
- Only the last set of data can be matched HOT 2
- pypi - missing latest version HOT 1
- Bug with the brackets in the v1.1.2 version HOT 1
- Can't install textfsm 1.1.3 HOT 9
- Provide Wheel on pypi.org HOT 1
- Parsing Cisco NXOS-style configuration using textfsm HOT 2
- can line number record? HOT 3
- Parsing show ap stats ethernet summary command HOT 4
- How to assign a default value HOT 1
- Retire copyable_regex_object.py HOT 1
- No need to have future as dependency HOT 4
- Textfsm column is getting populated more than required HOT 1
- Tarball on github reported as 1.1.3 is 1.1.2 HOT 1
- Remove v2 to v3 migration libraries HOT 4
- Question : Can we include textfsm template inside python code ? HOT 2
- pls help with multiple text lines parsing into a LIST HOT 7
- Please help to provide the syntax to parse the info using textfsm HOT 3
- Question: Is It Possible to Extract Data From Different Lines HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textfsm.