Pyinstaller with crawl4ai module not working? #9036
Replies: 8 comments 5 replies
-
Does collecting data files for |
Beta Was this translation helpful? Give feedback.
-
I think that helped - using this command it seems to work now:
Thanks for your help! |
Beta Was this translation helpful? Give feedback.
-
Hello - i have a follow up question - i now try to bundle this also on a Mac computer using the following command:
But i get this error:
How can i bundle this also on Mac? |
Beta Was this translation helpful? Give feedback.
-
ok i see - thanks a lot again - i tried to bundle this now using the following command:
but on Mac i get this error:
Is it probably necessary to use here something else after the colon:
|
Beta Was this translation helpful? Give feedback.
-
ok i think i understand - |
Beta Was this translation helpful? Give feedback.
-
I checked this path
|
Beta Was this translation helpful? Give feedback.
-
Hello it seems that i now get a different error when doing:
Any idea what i should do now?
|
Beta Was this translation helpful? Give feedback.
-
Hello due your great help and patience i think i found a solution: due the reasson that --add-data is not possible on MAC we need to create the folder with --onedir and then copy the .local browsers to the created dir
|
Beta Was this translation helpful? Give feedback.
-
I have created the following program using the crawl4ai module and now try to compile this to an executable file for windows -
Program code which is running fine generally:
I used the following command for the executable creation:
pyinstaller --onefile --add-data="C:/DEVNEU/.venv/crawl4ai/Lib/site-packages/playwright_stealth/js;./playwright_stealth/js" --collect-data fake_http_header.data --collect-data fake_useragent.data crawl_multi_url.py
When i run the above code as python-file its working fine - but when i run the created executable program i get this error:
How can i create a working exe-file using pyinstaller for this?
Beta Was this translation helpful? Give feedback.
All reactions