crawlee-python icon indicating copy to clipboard operation
crawlee-python copied to clipboard

pipx fails to run crawlee

Open siddiqkaithodu opened this issue 1 year ago • 5 comments

When I try to pipx run crawlee create my-crawler. I get the following error

I have already installed Crawlee and its visible in the pip list


⚠️  crawlee is already on your PATH and installed at /home/Soider/Projects/Crawlee/Crawlee/.venv/bin/crawlee. Downloading and running anyway.
'crawlee' executable script not found in package 'crawlee'.
Available executable scripts:

siddiqkaithodu avatar Jul 10 '24 11:07 siddiqkaithodu

Can you try pipx run crawlee==0.1.0 create my-crawler?

B4nan avatar Jul 12 '24 10:07 B4nan

Also, if you have crawlee already installed, you can execute the CLI directly (not via pipx):

$ crawlee create

vdusek avatar Jul 12 '24 11:07 vdusek

Yes . It is working .. @B4nan

also crawlee create mycrawler did the best

Confused with the documentation though

siddiqkaithodu avatar Jul 12 '24 11:07 siddiqkaithodu

@siddiqkaithodu Sorry for that. The main command from the home page:

pipx run crawlee create my-crawler

should work in all cases. Currently, it seems, it only works if crawlee is not installed globally.

We will work on fixing either the pipx-related behavior or the template command.

So if you don't mind, I'll reopen the issue.

vdusek avatar Jul 12 '24 11:07 vdusek

I think it is best to completely avoid pipx run for the sake of laziness :) @vdusek

siddiqkaithodu avatar Jul 12 '24 11:07 siddiqkaithodu

After checking in with @B4nan and trying pipx run on a fresh user account, I'm convinced that the issue was caused by a cached older version of crawlee which did not have any console entry points.

janbuchar avatar Jul 22 '24 14:07 janbuchar