apify-cli icon indicating copy to clipboard operation
apify-cli copied to clipboard

When running Actor locally it is unable to detect python

Open Njking124 opened this issue 11 months ago • 4 comments

Image

Njking124 avatar Jan 24 '25 07:01 Njking124

Image

this is my apify version

Njking124 avatar Jan 24 '25 07:01 Njking124

Hey! Super super sorry for the slow responses! Could you let us know if you've used any template for the scraper, so we can try to replicate it? If you didn't use a template but wired it up yourself, could you show your folder structure/tree? 🙏

vladfrangu avatar Feb 03 '25 13:02 vladfrangu

Hai @Njking124, slight bump again, could you follow up with the requested info so we can debug this further? 🙏

vladfrangu avatar Feb 17 '25 10:02 vladfrangu

@Njking124 poking again, do you have some time to share some more information so we can debug this? 🙏

vladfrangu avatar Mar 31 '25 05:03 vladfrangu

I'll be closing this for now, as there's been no activity and we've changed how we detect runtimes in CLI. If you can reproduce this bug, please follow up and we'll reopen the issue!

vladfrangu avatar May 26 '25 06:05 vladfrangu

Having the same issue.

Python is installed through windows store under C:\Users[myuserhere]\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0

started building off my-actor template for crew ai

Python was added to path, both by windows and by myself manually

rkzwei avatar Jul 28 '25 08:07 rkzwei

Image

attempted to install python from their own installer, and in the default installation folder, still not found

rkzwei avatar Jul 28 '25 11:07 rkzwei

Can you run npx which python -a please and report the paths here? 🙏

vladfrangu avatar Jul 28 '25 11:07 vladfrangu

no output on command

rkzwei avatar Jul 28 '25 13:07 rkzwei

Huh...and if you open a fresh instance of cmd or powershell, python works?

vladfrangu avatar Jul 28 '25 13:07 vladfrangu

Image

yep

rkzwei avatar Jul 28 '25 13:07 rkzwei

for better context

Image

rkzwei avatar Jul 28 '25 13:07 rkzwei