#so I double checked that python is 3.12.
1 messages ยท Page 1 of 1 (latest)
is there anything else I should check? Should I check what's in the local dagger image on macOS?
it's currently registry.dagger.io/engine:v0.11.2
If you run dagger run python version what do you get? I have the feeling that dagger run is picking your python binary from a different place
are you sure of this command? It's trying to execute version which obviously doesn't exist
I created a quick python code to output the version it gives me this
Python version
3.12.3 (main, Apr 9 2024, 08:09:14) [Clang 15.0.0 (clang-1500.3.9.4)]
Version info.
sys.version_info(major=3, minor=12, micro=3, releaselevel='final', serial=0)```
dagger is version 1.3.0 in my python environment
Sorry, dagger run python --version does that print 3.12.3 also?
same as my code 3.12.3, which makes sense.
Hmm ok. It's super late here. I'll ping you tomorrow to keep looking at this ๐
thanks and no worries. I also don't have discord open often...
Though, I wonder why the code works in 3.12 in the github action. Isn't the <> fully unsupported now since Python 3.10? When I go change that for != in the dagger.py file on my venv, it goes further and complains about other things.
I feel like there is some remaining python 2 lines of code like this one
print 'Warning: failed to load "%s"' % (self.filename)
print requires parenthesis in python3
ok I sorted out something....
I had done pip install dagger that all time and not dagger-io I must have read a wrong documentation...
so that all time I was not using the right dagger ๐ LOL my bad ๐
everything is fine now...