change:
r"C:\\Program Files (x86)\\USGS\Phreeqc Interactive
3.3.3-10424\\database\\phreeqc.dat"
either in:
r"C:\Program Files (x86)\USGS\Phreeqc Interactive 3.3.3-10424\database\phreeqc.dat"
or in:
"C:\\Program Files (x86)\\USGS\Phreeqc Interactive
3.3.3-10424\\database\\phreeqc.dat")
The prefix `r` creates a raw string and you can paste the full path from explorer.
Without the `r`, use a double backslash. But don't do both at the am time.
Mike
> *phreeqc.phc_database_error_count= 295*
>
> Traceback (most recent call last):
> File "C:\Users\218007366\Desktop\PhreeqcWebDEV\testPhreeqc.py", line 37, in
> <module>
> phreeqc.run_string(initial_conditions)
> File
> "C:\Users\218007366\AppData\Local\Continuum\Anaconda2\lib\site-packages\phreeqpy\iphreeqc\phreeqc_dll.py",
> line 287, in run_string
> self.raise_string_error(errors)
> File
> "C:\Users\218007366\AppData\Local\Continuum\Anaconda2\lib\site-packages\phreeqpy\iphreeqc\phreeqc_dll.py",
> line 117, in raise_string_error
> raise Exception(msg + self.get_error_string())
> Exception: An error occured.
> *ERROR: RunString: No database is loaded*
>
> >>>
>
> *I saw the post "problem reading database", I put the absolute path in
> "phreeqc.load_database". It still showed the same error message,
> and phreeqc.phc_database_error_count=295. Please help!*
> *print "phreeqc.phc_database_error_count=",phreeqc.phc_database_error_count*
> <mailto:
phreeqpy-user...@googlegroups.com>.