Python Forum
Failed to execute child process (No such file or directory) - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Failed to execute child process (No such file or directory) (/thread-38201.html)



Failed to execute child process (No such file or directory) - uriel - Sep-15-2022

Hello everyone!
After successfully creating the .deb file with setuptools and extracting it. When launching the application desktop file, it gives an error:
Error:
Failed to execute child process "simpleCalculatorGUI" (No such file or directory)
setup.py file:
from setuptools import setup

setup(
    name='simpleCalculator',
    version='1.0',
    description='Simple calculator',
    long_description='Calculator that only supports one operation at a time',
    author='JustLucifer',
    license='MIT',
    packages=['simpleCalculatorGUI'],
    package_dir={'simpleCalculatorGUI': 'simpleCalculatorGUI/'},
    install_requires=['PySimpleGUI'],
    classifiers=[
        'Programming Language :: Python :: 3',
        'License :: OSI Approved :: MIT License',
        'Environment :: Console',
        'Operating System :: POSIX :: Linux'
    ],  
    data_files=[('share/applications/', ['simpleCalculator.desktop'])],
    keywords='simple calculator gui',
    python_requires='>=3.8'
)
simpleCalculator.desktop file:

[Desktop Entry]
Version=1.0
Type=Application
Name=SimpleCalculator
Exec=simpleCalculatorGUI
Categories=Utility;
Terminal=true
StartupNotify=true
StartupWMClass=simpleCalculatorGUI
Project structure
.
├── LICENSE
├── MANIFEST.in
├── setup.py
├── simpleCalculator.desktop
└── simpleCalculatorGUI
    ├── calculator.py
    ├── __init__.py
How can I specify the path to the file? What do i need to change?
I followed this tutorial https://www.youtube.com/watch?v=bkfHQoVdVFw&list=PLke5uKXgh5l5ibYZk_lLDPbrivLz0uBZt&index=8


RE: Failed to execute child process (No such file or directory) - Gribouillis - Sep-15-2022

You followed the tutorial but there is no entry_points in your setup() call. It is probably the problem.