python exe file crashing after compiling
I’ve created a simple python script. user should enter a path to an image, and the script should find a circle in the image, and calculate the center and the radius for x and y axis. everything is working as it should.
after converting the script to exe file, using Auto Py to Exe application (I used one file and console based), the exe compilation finished without any exceptions.
after the user entering the path, the script keep crashing with the following error:
ModuleNotFoundError: No Module named ‘scipy._lib.array_api_compat.numpy.fft’
how can I fix this issue?
Script to check if all the needed python libraries including python are downloaded
I have made a pure Python program with a few libraries which I want to convert to an exe file. The problem is that I have to download it later to a few other computers and they might not have python or the needed libraries installed.
My question is – when the exe file is started (for the first time or not) i want to check if the needed components (library and python version from requirements.txt) are present on the computer and if they are not, i need them to be downloaded.
Any help?
Terminate exe from python
I have a python code that opens an exe file, passes some commands and produces output. Problem is that the exe still opened and the Jupiter notebook cell keeps running even after the last command is executed. I want an edit that terminates the exe and stops the cell from running after the output is generated.
I have tried this, but it requires a specific time after which it stops the cell which of course is not efficient because it doesn’t guarantee the process to be done.
Pillow error with ImageFont OSError: cannot open resource
I have a very strange error in my code. I’m writing a python program that generates barcodes and combines them into an image. When I execute the .exe file, it gives me an error. However, it’s strange because when I run it from VS Code without any issues, the code works correctly. But when I convert it to an .exe file, it gives me an error.