Warm tip: This article is reproduced from serverfault.com, please click

unable to install python swagger client using terminal

发布于 2021-01-26 16:26:51

Trying to install generated swagger client (from https://editor.swagger.io/) and failing miserably.

i change to the correct directory and type this into terminal: python setup.py install

It begins successfully, but the final line shows an error: error: [Errno 38] Function not implemented: 'dist/swagger_client-1.0.0-py3.6.egg

Any ideas? Thanks for your help in advance!

Questioner
Hattie
Viewed
0
Hattie 2021-01-27 20:15:02

SOLVED IT!

The egg file it errors on had been copied into the correct location but .egg files are zip files, so it needed to be unzipped in order to be recognised by the Python import function.

so i just used the unzip command in the CLI and it worked like a charm. some sources online say you need to rename your .egg file to a .zip file before unzipping, but i didnt find that to be necessary.