i am trying to convert audio from webm to mp3 using pudub module in android using kivy. I've included pydub,ffprobe-python,ffmpeg-python in buildozer.spec file but when i run the app i get the following error !
FileNotFoundError: [Errno 2] No such file or directory: 'ffprobe'
You will need to embed ffmpeg suite binaries. ffprobe-python and ffmpeg-python are only connectors to call the binaries.
Related
I'm working with django 1.6.5 and python 2.7.
I have import feature in my app and I get error:
OSError: [Errno 18] Invalid cross-device link
I have problem with this part of code:
os.rename(db_temp, settings.DATABASES['bookmat']['NAME'])
code in settings:
'bookmat': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': '/my_projects/book/db/bookmat.sqlite3',
},
os.rename only works if source and destination are on the same file system. You should use shutil.move instead.
rename only works when the source and target names are on the same file system. You probably have different mounts. Otherwise you get that error. You can implement the same effect with a copy and a delete.
I try to build a standalone app with PyInstaller but I don't manage to do it when I add images to my app.
My .exe file works well when I don't include the .ico, .jpg, .png but when I inclue it, it doesn't work anymore (FileNotFoundError: [Errno 2] No such file or directory: 'Pictures/picture.png').
I tried to modify the --path option (I tried with the "main.py" path and also with "." path but it makes nothing.
My app uses Tkinter and Pillow for the images.
Interesting fact : I tried to run my .exe file with a copy of my picture files in user/username/pictures/ and it works. But I can't create a standalone app like that.
Mac version : 11.2.1
Python version : 3.8.5
When I try to run a .exe file made with python, I get the following message:
No such file or directory:
'C:\Users\[myUsername]\AppData\Local\Temp\_MEI171122\tldextract\.tld_set'
What should I do?
I am using Python Version 3.7.3 and PyInstaller 3.5. I have written a Python script named read.py which will read the scanned PDF and convert it to a text file. I could successfully generate the exe using the PyInstaller commands pyi-makespec --onefile read.py and pyinstaller --onefile read.spec. The .exe file is working fine in my system where i have all the packages installed, but when I tried to run it on a different Windows PC where the Python packages are not available, it is looking for the poppler module.
I even tried to add the hook file for poppler in pyinstaller hooks folder but it did not take this hook file while generating the .exe file.
Please help to resolve this issue, or please let me know if there is any other way to generate the exe without having the dependencies on the Python supporting files.
Below is the error which I'm getting when I execute the .exe file on a different PC:
File "read_image.py", line 29, in <module>
File "site-packages\pdf2image\pdf2image.py", line 54, in convert_from_path
File "site-packages\pdf2image\pdf2image.py", line 244, in _page_count pdf2image.exceptions.PDFInfoNotInstalledError: Unable to get page count. Is poppler installed and in PATH? [17920] Failed to execute script read_image
Thanks for the Help...
I'm trying to convert a py file to a .exe using cx_Freeze. I used Python 3.6 to made the program and I'm using a Mac.
I've watched many tutorials on YouTube and I understand I have to create a file named setup.py with the following code:
from cx_Freeze import setup, Executable
setup(name='program',
version='0.1',
description = 'program for mun',
executables = [Executable('main.py')]
)
And then when in Terminal I must enter:
python3 setup.py build
After some seconds it shows the following error:
error: [Errno 2] No such file or directory: '/Library/Frameworks/Tcl.framework/Versions/8.5/Tcl'
Does anyone know why? Thanks.