Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when trying to run itzi. #106

Open
geoendemics opened this issue Sep 5, 2023 · 3 comments
Open

error when trying to run itzi. #106

geoendemics opened this issue Sep 5, 2023 · 3 comments

Comments

@geoendemics
Copy link

Hi guys finally I got the time to try itzï.
I installed it using the source file
I am running Ubuntu 22.04.3 LTS and GRASS GIS 8.2.1. So far, I managed to install and run itzï according the tutorial.

I run the test as you suggested using the following commands and everything seems to be ok

itzi version
itzi run -h

When I try to run the simulation for surface modelling I get the following message:

(Wed Sep 6 00:15:02 2023)
itzi run ch_cuenca1
Starting simulation of ch_cuenca1...
WARNING: Error during execution: itzi.itzi_error.ItziFatal:
'[grass] section is missing.'
Simulation(s) complete. Elapsed times:
ch_cuenca1: 0:00:00
Total: 0:00:00
Average: 0:00:00
(Wed Sep 6 00:15:03 2023) Command finished (0 sec)

below my parameter file

[time]
duration = 02:00:00
record_step = 00:05:00

[input]
dem = Chile_19s_sirgas2021@PERMANENT
friction = n@PERMANENT
rain = rain@PERMANENT
bctype = bctype@PERMANENT
bcval = bcvalue@PERMANENT

[output]
prefix = nc_itzi_tutorial
values = h, wse, v, vdir, boundaries

[statistics]
stats_file = nc_itzi_tutorial.csv

I was looking into the documentation and seems to be that Itzĩ try to run outside the shell, which according to your documentation will require a grass section. But I am running ith from within .

I would appreciate any help I can get to solve this issue
best regards
Rengifo Ortega

@lrntct
Copy link
Contributor

lrntct commented Sep 6, 2023

Itzi has yet to be tested with grass 8, so this might be the issue.

@geoendemics
Copy link
Author

Itzi has yet to be tested with grass 8, so this might be the issue.

thanks for your quick response. I installed grass 7.8.6 on ubuntu 18 lts. Installed itzi as explained in the tutorial still get following error:
itzi run -h
Traceback (most recent call last):
File "/home/tlo/.local/bin/itzi", line 11, in
load_entry_point('itzi==20.5', 'console_scripts',
'itzi')()
File "/usr/lib/python2.7/dist-
packages/pkg_resources/init.py", line 480, in
load_entry_point
return get_distribution(dist).load_entry_point(group,
name)
File "/usr/lib/python2.7/dist-
packages/pkg_resources/init.py", line 2693, in
load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-
packages/pkg_resources/init.py", line 2324, in load
return self.resolve()
File "/usr/lib/python2.7/dist-
packages/pkg_resources/init.py", line 2330, in resolve
module = import(self.module_name,
fromlist=['name'], level=0)
File "/home/tlo/.local/lib/python2.7/site-
packages/itzi/init.py", line 4, in
from itzi.itzi import SimulationRunner
File "/home/tlo/.local/lib/python2.7/site-
packages/itzi/itzi.py", line 79
msgr.message(f"Starting simulation of
{os.path.basename(conf_file)}...")
^
SyntaxError: invalid syntax

I would appreciate any help I can get to solve this issue
best regards
Rengifo Ortega

@lrntct
Copy link
Contributor

lrntct commented Sep 13, 2023

Itzi is only compatible with python 3. It is strange that it tries to run with python 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants