Comments (4)
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.
--collect-data=swagger_spec_validator
should be all you need.
from pyinstaller-hooks-contrib.
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.
I'm having this same issue
from pyinstaller-hooks-contrib.
Related Issues (20)
- Can't find libtorchtext.so when executing file HOT 10
- SVM module not found error HOT 2
- June release / release schedule HOT 1
- Pydantic.compiled Depreciated
- Pydantic V2 no longer containers a compile flag which results in an error during build HOT 1
- jsonschema hook is broken for jsonschema >= 4.18
- hook-rtree.py: libspatialindex is either not installed ... HOT 2
- ModuleNotFoundError: No module named 'dbus_fast._private.marshaller' HOT 1
- for python3 it is no need `prettytable` hooks HOT 2
- Missing imports during packaging with PyInstaller 5.13 and pyinstaller-hooks-contrib 2023.12 HOT 2
- ImportError: cannot import name '_pylon' from 'pypylon' after pyinstaller 6.3.0 HOT 2
- OpenCV missing data files in /cv2/data directory HOT 1
- sklearn dropped neighbors._typedef in version 1.0.2 HOT 1
- Add PyInstaller in 'I want to help' section HOT 2
- Falcon hook
- PyInstaller: Unable to find '/usr/sbin/neato' when adding binary and data files HOT 8
- hook-transformers fails to run due to partially initialized huggingface_hub HOT 4
- cryptography with OpenSSL 3.x HOT 18
- `gcloud-aio-*` (and probably also `gcloud-rest-*`) trigger `gcloud` hook, which fails because `gcloud` is not installed. HOT 1
- 2024.5 issue importing cryptography hook during build HOT 15
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 pyinstaller-hooks-contrib.