-
Notifications
You must be signed in to change notification settings - Fork 649
Closed
Description
Describe the bug
Running Preswald on Windows encounters multiple issues:
FileNotFoundErrorwhen running example scripts (e.g.,examples/earthquakes/hello.py)- Path resolution issues with
__file__variable in Windows environment - Data file path resolution failing on Windows-style paths
Steps to Reproduce
-
Install Preswald on Windows:
git clone https://github.com/StructuredLabs/preswald.git cd preswald -
Try to run the earthquake example:
preswald run examples/earthquakes/hello.py
-
Observe errors:
Running 'hello.py' on http://localhost:8501 with log level INFO 🎉! Starting Preswald server at http://localhost:8501 Will run script: /preswald/examples/earthquakes/hello.py INFO: Started server process [487] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:8501 FileNotFoundError: [Errno 2] No such file or directory: 'data/earthquake_data.csv'
Expected behavior
- Example scripts should run without path-related errors on Windows
- File paths should be properly resolved regardless of OS
- Data files should be found using relative paths from the script location
Environment
- OS: Windows 11
- Python version: 3.x
- Shell: Git Bash/PowerShell/CMD
Additional context
The issues appear to be related to:
- Windows path separator differences (
\vs/) - Path resolution in Windows environment
- Relative path handling in different shells on Windows
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels