Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/bin/sh: 1: python: not found #5

Open
9acca9 opened this issue Nov 1, 2024 · 5 comments
Open

/bin/sh: 1: python: not found #5

9acca9 opened this issue Nov 1, 2024 · 5 comments

Comments

@9acca9
Copy link

9acca9 commented Nov 1, 2024

Sorry my dumb question.
Im working with Ubuntu 22.04
i create an alias to use "python" to call python3
but im getting that error when trying to run:
kvdeveloper create TestProject --template nav_toolbar --structure MVC

As you can see here the alias works:
image

thanks

@Novfensec
Copy link
Owner

The module runs a subprocess which basically runs in a separate alias or subshell inside the terminal, so I made some changes to the module to use sys.executable for running scripts inside the shell.

You can see the changes with the github version:

pip install git+https://github.com/Novfensec/KvDeveloper.git

Then run the command.

kvd create Test --structure MVC --template nav_toolbar

@9acca9
Copy link
Author

9acca9 commented Nov 2, 2024

Thank you, but im having the same problem.
Thanks


panchines@dev:~/kivyDeveloper$ pip cache purge
Files removed: 268
panchines@dev:~/kivyDeveloper$ pip install git+https://github.com/Novfensec/KvDeveloper.git
Defaulting to user installation because normal site-packages is not writeable
Collecting git+https://github.com/Novfensec/KvDeveloper.git
  Cloning https://github.com/Novfensec/KvDeveloper.git to /tmp/pip-req-build-vx1gdza3
  Running command git clone --filter=blob:none --quiet https://github.com/Novfensec/KvDeveloper.git /tmp/pip-req-build-vx1gdza3
  Resolved https://github.com/Novfensec/KvDeveloper.git to commit 5919fcf7a0b532f6c7551c1b39bd9308ec7dc3f8
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
panchines@dev:~/kivyDeveloper$ kvd create Test --structure MVC --template nav_toolbar

  _  __      ____                 _                       
 | |/ /_   _|  _ \  _____   _____| | ___  _ __   ___ _ __ 
 | ' /\ \ / / | | |/ _ \ \ / / _ \ |/ _ \| '_ \ / _ \ '__|
 | . \ \ V /| |_| |  __/\ V /  __/ | (_) | |_) |  __/ |   
 |_|\_\ \_/ |____/ \___| \_/ \___|_|\___/| .__/ \___|_|   
                                         |_|               


Creating project 'Test' with template 'nav_toolbar': Navigation and toolbar screens with HomeScreen and LoginScreen components.

Applying structure 'MVC': Model-View-Controller architecture.
/bin/sh: 1: python: not found

@Novfensec
Copy link
Owner

Novfensec commented Nov 3, 2024

I don't have much experience with ubuntu systems but there might be a problem with the environment configuration for python. Basically the module is not able to detect the python interpreter in the environment.
Upgrading to python 3.11 might help or higher.

@Novfensec
Copy link
Owner

Novfensec commented Jan 1, 2025

@9acca9
Is it resolved? Have you tried with reworking python environment setup?

@9acca9
Copy link
Author

9acca9 commented Jan 14, 2025

sorry, i will try when go back home. Im in vacations!
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants