Python Forum
Failed to execute child process (No such file or directory)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Failed to execute child process (No such file or directory)
#1
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=bkfHQoVd...Zt&index=8
Reply
#2
You followed the tutorial but there is no entry_points in your setup() call. It is probably the problem.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Create csv file with 4 columns for process mining thomaskissas33 3 754 Nov-06-2023, 09:36 PM
Last Post: deanhystad
  Using pyinstaller with .ui GUI files - No such file or directory error diver999 3 3,359 Jun-27-2023, 01:17 PM
Last Post: diver999
  Reading data from excel file –> process it >>then write to another excel output file Jennifer_Jone 0 1,108 Mar-14-2023, 07:59 PM
Last Post: Jennifer_Jone
  Extract file only (without a directory it is in) from ZIPIP tester_V 1 1,000 Jan-23-2023, 04:56 AM
Last Post: deanhystad
  Using one child class method in another child class garynewport 5 1,593 Jan-11-2023, 06:07 PM
Last Post: garynewport
Thumbs Up Need to compare the Excel file name with a directory text file. veeran1991 1 1,127 Dec-15-2022, 04:32 PM
Last Post: Larz60+
  no such file or directory in SFTP saisankalpj 2 1,555 Nov-25-2022, 11:07 AM
Last Post: DeaD_EyE
Photo Making Zip file of a file and Directory Nasir 2 1,034 Oct-07-2022, 02:01 PM
Last Post: Nasir
  Need Help: FileNotFoundError:[Errno 2] No such file or directory python202209 5 2,659 Sep-12-2022, 04:50 AM
Last Post: python202209
  How To Set Up And Execute A Python File knight2000 4 1,912 May-31-2022, 10:02 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020