Click here to donate to keep PhreeqcUsers open
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Forum Home
Login
Register
PhreeqcUsers Discussion Forum
»
Conceptual Models
»
Incorporation PHREEQC in programming languages
»
The example parallel_advect.py is obsolete and does not run in Python 3.xx
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: The example parallel_advect.py is obsolete and does not run in Python 3.xx (Read 473 times)
shazux
Contributor
Posts: 1
The example parallel_advect.py is obsolete and does not run in Python 3.xx
«
on:
July 24, 2024, 02:24:15 PM »
Dear Developers,
I was interested how to couple Phreeqc with Python. The example given by Iphreeqc developers showing how this is done for a reactive transport model is unfortunately obsolete. My guess is that it was written for Python 2.7 and now runs to many errors with the current python 3.xx versions.
A revisit of the code or a problem-free version of this example will be very appreciated.
Cheers
Logged
hydrocomputing
Contributor
Posts: 3
Re: The example parallel_advect.py is obsolete and does not run in Python 3.xx
«
Reply #1 on:
July 24, 2024, 05:09:23 PM »
Dear shazux,
I just installed PhreeqPy from PyPi and ran:
python parallel_advect_dll.py
with Python 3.12.4.
Everything works as expected. I am on MacOS M1, i.e arm64. But it should work on all operating systems. What is the error message you get?
This the source code:
https://github.com/hydrocomputing/phreeqpy/blob/main/examples/iphreeqc/parallel_advect_dll.py
and this is the database:
https://github.com/hydrocomputing/phreeqpy/blob/main/examples/iphreeqc/phreeqc.dat
I used.
Best,
Mike
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
PhreeqcUsers Discussion Forum
»
Conceptual Models
»
Incorporation PHREEQC in programming languages
»
The example parallel_advect.py is obsolete and does not run in Python 3.xx