Hey guys I can run everything which i've made just fine with a python xx.py command but when I change it to .exe using either pyinstaller or nuitka it keeps giving me an error and it says that some of the dependencies aren't installed on my pc (after it builds i install and it crashes). but they are since it works on python clearly. every time i tap the .exe it crashes in 2 seconds
#🔒 Python to .exe
87 messages · Page 1 of 1 (latest)
@kindred sable
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
I'm planning on selling the tool I created so I need to keep it more closed src even after buying so it doesnt get leaked, exe doenst make it too hard but it makes it harder to leak
If there are any methods for me to keep it as a closed src so it doesnt get leaked and still have it functional it'd be much appreciated
before this I was able to launch it on pyinstaller BUT it wouldnt interact with the libraries i wanted it to import related to ethereum, so even when a correct data was inputted it was displayed as wrong or (BAD) in this case
Nuitka is pretty hard to decompile
Also, what dependencies are missing? What command did you use with nuitka to compile? Can you show your imports?
sure
import random
import asyncio
import nltk
from eth_account import Account
from eth_utils.exceptions import ValidationError
from colorama import Fore, Style, init
import os
import time
import tkinter as tk
from tkinter import filedialog
import os
import json as jsond
import time
import binascii
from uuid import uuid4
import platform
import subprocess
import sys
import time
import platform
import os
import hashlib
from datetime import datetime
import keyboard
Hey @kindred sable!
It looks like you're trying to paste code into this channel.
Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.
To do this, use the following method:
```py
print('Hello, world!')
```
This will result in the following:
print('Hello, world!')```
You can **edit your original message** to correct your code block.
And what dependencies are missing? Also what command did you use?
i used this : python -m nuitka --standalone seed_stealer.spec
and another one too which had the dependencies in the line (that one didnt work and crashed)
ill show the dependencies which are "missing" one sec
You need to enable pluging tk-inter
nltk
eth_account
eth_utils
colorama
keyboard
win32security
requests
Crypto.Cipher
Crypto.Hash
Crypto.Util.Padding
Crypto
--enable-plugin=tk-inter
If i remember correctly
oh how do i do that
where do i put that
oh yea
nvm i got it
With the command to compile
python -m nuitka --enable-plugin=tk-inter --standalone seed_stealer.spec
like this?
Also maybe add the follow imports argument
ok yh
python -m nuitka --enable-plugin=tk-inter --follow-imports --standalone seed_stealer.spec
I'd also go with onefile option for easier distribution instead of standalone
wait your file is called seed_stealer I can't help with that
Bruh
its a joke
lmaooo
should i just have it point to the mainfile
That's how I usually do it, yes
alr got it
Btw I'd recommend to read the nuitka manual, it's very very in depth
And let you customize your end product to a very fined tuned executable
yessir, thanks for the help
ill let you know if it goes well
Okay dokey
nuitka does not use .spec files
nuitka be complex
yea it still crashes on launch
imma go to sleep now but if you have any info you can lmk here
ty
send the entire source code and i can check.
not really? it's pretty straightfoward
The manual is fairly big and offers lots of fined tuned options, the avrage usage is simple and straight forward, yes
I can’t right now cause I’m on mobile n I just shut my pc down to go to sleep
But I assure you nothings wrong with the src code
since it runs on python properly
as a maintainer of nuitka, it's impossible for me to help someone without having the source code.
What's the error then? Wrap the whole thing in try except and add input() at the end to pause before existing
Dayum you a maintainer nvm I take my words back
Got it, I’ll send it tmrw
yeah fair, although, nuitka --onefile filename.py is what's needed 98% of the time
sometimes plugins like tkinter are needed
I worked on a long pyqt6 scirpt, ended up using about 13 arguments when compiling
what plugins would be needed for this
none.
damn so just nuitka —one file filename.py?
should be enough, yes.
also my code interacts with a library btw and like when I attempted to make it Exe with py installer it made it functional BUT it didn’t display stats from the library
But it does on python
Py ethchecka.py
and it works properly but when I make it an Exe it’s difficult
Idk why
Shouldn't they enable tcl pluging?
without the source, all i can do is guess.
i don't see them importing tkinter nor anything that uses it
That's the import list
ah, then yeah they do
I’ll update you guys tommorow once I’m awake lol
gl I guess
Having a maintainer help you is somthing you don't wanna miss though
It'll save you headech
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.