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

apify create cannot create project in a folder with space in path #692

Closed
bornedan opened this issue Nov 5, 2024 · 1 comment · Fixed by #715
Closed

apify create cannot create project in a folder with space in path #692

bornedan opened this issue Nov 5, 2024 · 1 comment · Fixed by #715
Assignees
Labels
t-tooling Issues with this label are in the ownership of the tooling team.

Comments

@bornedan
Copy link

bornedan commented Nov 5, 2024

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:

  1. Open cmd.exe on Windows 11.
  2. Navigate to a folder with a space in its path (e.g., c:\Data\Personal projects\Apify).
  3. 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
@github-actions github-actions bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Nov 5, 2024
@vladfrangu
Copy link
Member

0.20.13 is being released with a fix for this! 🫡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t-tooling Issues with this label are in the ownership of the tooling team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants