google / textfsm

Python module for parsing semi-structured text into python tables.
Apache License 2.0
1.09k stars 168 forks source link

download src via pip download requires six #101

Closed network-shark closed 2 years ago

network-shark commented 2 years ago

Hello !

When downloading the source of TextFSM via

pip download -d . \
   --no-binary :all: \
   textfsm

It results in this error .

Collecting textfsm                                                                                                                                                                                   [50/4543]
  Using cached textfsm-1.1.2.tar.gz (54 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [10 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/qg/yvvzkqjj19g9r9mw2t267f3r0000gn/T/pip-download-k14pr1zi/textfsm_e3f7973f3e6e475ba1adb5ef14d64530/setup.py", line 20, in <module>
          import textfsm
        File "/private/var/folders/qg/yvvzkqjj19g9r9mw2t267f3r0000gn/T/pip-download-k14pr1zi/textfsm_e3f7973f3e6e475ba1adb5ef14d64530/textfsm/__init__.py", line 11, in <module>
          from textfsm.parser import *
        File "/private/var/folders/qg/yvvzkqjj19g9r9mw2t267f3r0000gn/T/pip-download-k14pr1zi/textfsm_e3f7973f3e6e475ba1adb5ef14d64530/textfsm/parser.py", line 41, in <module>
          import six
      ModuleNotFoundError: No module named 'six'
      [end of output]

A quick fix would be install six . This indeed allows downloading the source , but I never had to do it for other sources.

Maybe this could be improved.