Giter Club home page Giter Club logo

Comments (4)

ezequieljardim avatar ezequieljardim commented on June 3, 2024 2

Hey everyone, I found the same issue. I was running this in a virtualenv, so I'll share my solution in this scope.

The code I executed to generate the exe was: pyinstaller myfile.py --onedir. With this, instead of packaging everything into a single file, it creates an EXE with the libraries in a folder. Once inside the folder that was created, if I executed the EXE it would throw the same error.

The solution I found was: I went to [myVirtualEnv]/Lib/site-packages/swagger_spec_validator and copied that folder. I pasted it into the folder that was generated by pyinstaller, and it worked as expected!

Good luck!

from pyinstaller-hooks-contrib.

bwoodsend avatar bwoodsend commented on June 3, 2024 1

--collect-data=swagger_spec_validator should be all you need.

from pyinstaller-hooks-contrib.

verata-veritatis avatar verata-veritatis commented on June 3, 2024

I'm having the same issue. I'm guessing it's something you have to include with the installation but I don't know what.

from pyinstaller-hooks-contrib.

pavs94 avatar pavs94 commented on June 3, 2024

I'm having this same issue

from pyinstaller-hooks-contrib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.