You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Running Preswald on Windows encounters multiple issues:
FileNotFoundError when 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
The text was updated successfully, but these errors were encountered:
aaryan182
added a commit
to aaryan182/preswald
that referenced
this issue
Feb 1, 2025
Describe the bug
Running Preswald on Windows encounters multiple issues:
FileNotFoundError
when running example scripts (e.g.,examples/earthquakes/hello.py
)__file__
variable in Windows environmentSteps to Reproduce
Install Preswald on Windows:
git clone https://github.com/StructuredLabs/preswald.git cd preswald
Try to run the earthquake example:
Observe errors:
Expected behavior
Environment
Additional context
The issues appear to be related to:
\
vs/
)The text was updated successfully, but these errors were encountered: