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

Build fails due to spaces in directory paths #400

Open
Aterolite24 opened this issue Sep 20, 2024 · 3 comments
Open

Build fails due to spaces in directory paths #400

Aterolite24 opened this issue Sep 20, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Aterolite24
Copy link

Describe the bug

When building the project in a directory path that contains spaces, the build process fails due to improper handling of spaces in directory paths. The path is interpreted incorrectly, causing the build to stop with errors related to path formatting.

For example, a directory like C:/Users/Username/My Projects/Symforce causes build failures, as spaces are not properly escaped or quoted.

To Reproduce

Steps to reproduce the behavior:

  1. Clone the repository into a directory that contains spaces, e.g., C:/Users/Username/My Projects/Symforce.
  2. Attempt to build the project with the following command:
    python setup.py build
    # or 
    make px4_sitl_default none_iris
  3. Observe the build failure due to improper path handling.

Expected behavior

The build process should correctly handle directory paths with spaces by escaping or quoting the paths properly, allowing the build to proceed without errors.

Screenshots

N/A (Optional if you want to include terminal screenshots showing the error.)

Environment (please complete the following information):

  • OS and version: Windows 10
  • Python version: 3.11
  • SymForce Version: (please specify the version or commit hash you're using)
@Aterolite24 Aterolite24 added the bug Something isn't working label Sep 20, 2024
@Aterolite24
Copy link
Author

#401 gives my approach to solve the problem. Thanks.

@aaron-skydio
Copy link
Member

Thanks for reporting - generally building on Windows isn't something we support or test in CI, but it sounds like this is probably a cross-platform problem anyway. Building by invoking setup.py directly is also deprecated by setuptools and not supported, but that's also probably not the issue.

Do you have the output of an example build failure? If not we'll see if we can reproduce.

@aaron-skydio aaron-skydio reopened this Sep 23, 2024
@Aterolite24
Copy link
Author

Aterolite24 commented Sep 23, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants