Open tomviolin opened 3 months ago
Hello @tomviolin
I'll wait for the update. Thanks!
@tomviolin I tried again to reproduce your error on Linux using different orders of installation. However, I was unable to reach the same messages you received when running lettuce
after python setup.py install
or python setup.py develop
. Could you share some further context about
lettuce/__init__.py
(which appears to be significantly different from what I see after I installed lettuce)Also, try updating your environment before installing lettuce (conda update --all
).
I will revisit my installation and get you the info.
In the meantime, can you please give me the exact steps you did to install lettuce without getting the errors? Maybe I'm doing something completely wrong.
-Tom
-- Tom Hansen, Ph.D. Programmer/Analyst-Research UWM School of Freshwater Sciences @.***
From: PhiSpel @.> Sent: Thursday, August 22, 2024 5:15 AM To: lettucecfd/lettuce @.> Cc: Thomas Frederick Hansen @.>; Mention @.> Subject: Re: [lettucecfd/lettuce] [Bug]: numerous cases of deprecated Python syntax (Issue #219)
@tomviolinhttps://github.com/tomviolin I tried again to reproduce your error on Linux using different orders of installation. However, I was unable to reach the same messages you received when running lettuce after python setup.py install or python setup.py develop. Could you share some further context about
— Reply to this email directly, view it on GitHubhttps://github.com/lettucecfd/lettuce/issues/219#issuecomment-2304294337, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABHUVK7TP4JVMPCIES2UL7TZSW23FAVCNFSM6AAAAABMVE6WOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBUGI4TIMZTG4. You are receiving this because you were mentioned.Message ID: @.***>
I pretty much follow the instructions in README.rst (because these work well for Linux with conda and a GPU compatible with CUDA 12.1:
conda create -n lettuce
conda activate lettuce
conda install pytorch pytorch-cuda=12.1 -c pytorch -c nvidia
conda install -c pytorch -c conda-forge matplotlib pytest click pyevtk mmh3 h5py scipy pandas numpy
git clone https://github.com/lettucecfd/lettuce
cd lettuce
python setup.py install
lettuce convergence
Contact Details
tomh@uwm.edu
What happened?
When I install
lettuce
, either from source usinggit clone
from the github repository, or from PyPi usingpip install lettuce
, I get the following error upon running thelettuce
command from the shell:This appears to be an old deprecated
except
syntax from Python 2.x. When I go in and fix that one on my copy, it reveals a large number of similar errors that follow, along with several instances of the old Python 2.xprint
syntax.How can this be, with a package that appears to have been completely authored after Python 2.x was EOLed?
Version
0.2.1, 0.2.3
What operating system are you seeing the problem on?
Linux
Relevant log output
Note that I see the same error whether I install lettuce 0.2.1 or 0.2.3. I haven't tried 0.2.2 because it seems the relevant code didn't change from 0.2.1 to 0.2.3.