`apify create` cannot create project in a folder with space in path
Closed this issue · 1 comments
bornedan commented
Problem description: The apify create my-actor -t python-playwright
command fails to create a project in a folder with spaces in its path. When running this command in a directory with a space in the path, the following error occurs.
Example:
Working directory path: c:\Data\Personal projects\Apify
Steps to reproduce:
- Open
cmd.exe
on Windows 11. - Navigate to a folder with a space in its path (e.g.,
c:\Data\Personal projects\Apify
). - Run the command:
apify create my-actor -t python-playwright
.
Error message:
c:\Data\Personal projects\Apify>apify create my-actor -t python-playwright
Info: Python version 3.11.9 detected.
Info: Creating a virtual environment in "c:\Data\Personal projects\Apify\my-actor\.venv" and installing dependencies from "requirements.txt"...
Run: python -m venv --prompt . .venv
Run: c:\Data\Personal projects\Apify\my-actor\.venv\Scripts\python.exe -m pip install --no-cache-dir --no-warn-script-location --upgrade pip setuptools wheel
'c:\Data\Personal' is not recognized as an internal or external command,
operable program or batch file.
Error: c:\Data\Personal projects\Apify\my-actor\.venv\Scripts\python.exe exited with code 1
Additional information:
- When I run this command in a folder without spaces in the path, it works correctly.
- System: Windows 11
- Command Line: cmd.exe
- Apify version:
apify-cli/0.20.11 win32-x64 node-v22.11.0
vladfrangu commented
0.20.13 is being released with a fix for this! 🫡