Comments (1)
Pyinstaller isn't looking in the right place for dependencies, some things you can try:
tell pyinstaller where discum is:
--paths "/full_path_to/venv/lib/python3.x/site-packages/discum/"
tell pyinstaller where discum.start is:
--paths "/full_path_to/venv/lib/python3.x/site-packages/discum/start"
tell pyinstaller to collect everything under discum package:
--collect-all "discum"
tell pyinstaller to collect discum.start as a hidden import:
--hidden-import "discum.start"
if those don't solve it, there are some more exotic options like adding a runtime-hook that imports the discum package and initializes your script, or making discum into a shared library and adding it to the compiled exe and modifying your script to call the functions from the library.
But probably one of the above options, or some combination of those options, will fix it. In all likelihood you just need to tell pyinstaller where to look for dependencies. Also make sure you're running pyinstaller from the same virtual environment where discum is installed. And also on that note, sometimes it can help to make a fresh virtual environment and install the dependencies for your script in the fresh virtual environment, and then install and run pyinstaller in the same environent after dependencies are installed.
Pyinstaller can be finicky sometimes and there are multiple ways you can accomplish the same thing which is kind of annoying and unpythonic but with some experimentation you can usually find a way that works for your situation. Also you might want to consider using the auto-py-to-exe package to initialize pyinstaller, it has some advantages like being able to see all the different options for collecting dependencies so you can try them all systematically in a more organized way, and it gives you verbose output by default. In general it just makes troubleshooting easier.
Hope this helps.
from discord-s.c.u.m.
Related Issues (20)
- Need help about join Guild with token Hcaptcha
- Flashbang Feature
- Question about bot.getProfile
- Fetching members: only getting 14-30% HOT 2
- Sus discum activity when downloaded by using "pip install -r requirements" HOT 1
- Reconnecting makes the bot idle for some reason HOT 1
- on_presence_update don't detect when i change my activity
- Sending Slash Commands in a Guild Channel
- Unable to read content from "ephemeral" messages? HOT 1
- Slash command with an image in inputs
- KeyError in findButton(), Button class
- How can I get a messageID automatically?
- KeyError: 'user' again HOT 1
- Discum + Flask in debug mode
- KeyError: 'user_settings' while setStatus
- member scraping patched
- how to use slash with sub command and input? HOT 2
- How to reply to modals?
- How to boost guild using this library?
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 discord-s.c.u.m.