os-climate / sostrades-dev-tools

SoSTrades platform local environment deployment
Apache License 2.0
0 stars 4 forks source link

PrepareVenv.py does not create lib/site-packages #9

Open MichaelTiemannOSC opened 2 weeks ago

MichaelTiemannOSC commented 2 weeks ago

In a completely clean environment, the PrepareVenv.py script exits with a failure that the environment was not properly set up, due to the fact that the path .../lib/site-packages does not exist. If that directory is manually created, the script completes without error (and writes all the things to that path that are needed).

ggoyon commented 5 days ago

Hi Michael Could you please share more details about your environment (os, python version)

MichaelTiemannOSC commented 5 days ago

I'm on a Mac (OSX 15.1) with Python 3.9.20. The complexifying detail is that my GitHub world lives under the Documents directory, and I use Dropbox to backup that folder. Because I run Dropbox across multiple Macs, Dropbox makes the decision to inject my machine identifier into the filesystem path (that I don't normally see from the shell or the finder, but which os calls do see). Because there's a space in the filename of my machine identifier, there's a space in my path. That space screws up the simplistic assumptions of what can and cannot be properly globbed and exec'd within f-strings.

ggoyon commented 5 days ago

Thanks for context, we'll work on a fix for installation with spaces in paths