Open PH0TRA opened 2 years ago
I'm having this problem too... were you able to fix it?
If it works on the default input.xml it could be that there is a problem with a cpt. We are busy with the release of version 2.1. In the mean time please download a new cpt_tool.py from this repository and replace the one that was installed.
Replacing cpt_tool.py did not work. This makes sense as the file in the repository is not different from the one in the install folder. Replacing bro.py with the one from the repo did work however!
My version worked before, but now I receive this error message: "Error in script "cpt_tool.py" during calculation. Input JSON is now located in "C:\Users\d08334\AppData\Local\Temp\OURS_11196\"."
Replacing cpt_tool.py and bro.py did not work, most likely since dates/versions are exactly the same.
Any ideas on this?
Hi.
The best way to get relevant feedback is to run the cpt_tool seperatly. That will give more specific error messages. The way to do this is as follows:
Run OURS as before Go to the location shown in error box (TEMP\OURS_XXXX) Copy the file input.json to some other location Start a command prompt (cmd.exe) Go to you ours installation directory and subdirectory Python Run: Python.exe cpt_tool.py -I [inputfilepath]\input.json -o [outputpathname]
In your console you may be able to see the error messages. Copy these and post them.
Hi Arnoud, is this what you asked for:
C:\Program Files\RIVM\OURS-UI 2.0\python>Python.exe cpt_tool.py -i "C:\Users\d08334\Downloads\Python test\input.json" -o "C:\Users\d08334\Downloads\Python test\"
Traceback (most recent call last):
File "C:\Program Files\RIVM\OURS-UI 2.0\python\cpt_tool.py", line 389, in
I attached the screenshot as well.
Almost. Please do not use the last \ The command in de text is correct, so is is: Python.exe cpt_tool.py -i "C:\Users\d08334\Downloads\Python test\input.json" -o "C:\Users\d08334\Downloads\Python test" instead of: Python.exe cpt_tool.py -i "C:\Users\d08334\Downloads\Python test\input.json" -o "C:\Users\d08334\Downloads\Python test\ "
(used a trailing space because github removes the \ if it is followed by a " )
Ah, this gives another output Arnoud:
C:\Program Files\RIVM\OURS-UI 2.0\python>Python.exe cpt_tool.py -i "C:\Users\d08334\Downloads\Python test\input.json" -o "C:\Users\d08334\Downloads\Python test" WARNING:root:Checking if index exists, if index does not exist it should be created, this may take a while... WARNING:root:Found 121 CPTs in intersecting polygons. WARNING:root:Found 0 CPTs in circle. Traceback (most recent call last): File "C:\Program Files\RIVM\OURS-UI 2.0\python\pandas\core\indexes\base.py", line 3621, in get_loc return self._engine.get_loc(casted_key) File "pandas_libs\index.pyx", line 136, in pandas._libs.index.IndexEngine.get_loc cpdef get_loc(self, object val): File "pandas_libs\index.pyx", line 163, in pandas._libs.index.IndexEngine.get_loc return self.mapping.get_item(val) File "pandas_libs\hashtable_class_helper.pxi", line 5198, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas_libs\hashtable_class_helper.pxi", line 5206, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'localFriction'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Program Files\RIVM\OURS-UI 2.0\python\cpt_tool.py", line 389, in
Again, I attached a screenshot.
Did you download the more recent bro.py?
Copy it to the python subdirectory under OURS. This version is slightly newer than the release. (we are preparing a new release with an updated building module). This bro.py should check if all required columns are there (in your case it seems one is missing).
I did Arnoud, but the file is of the exact same date and time as the most recent one. Does not make a difference.
Can you double check. The red lines snot be there and the green lines should be in the bro.py.
If this is the same please attach the input.json and I will try to find out what is wrong.
Hey Arnaud, this seems to have solved the problem. Thanks..
On Fri, 7 Oct 2022 at 12:28, ArnaudYK @.***> wrote:
Try this one then. It should contain the green lines. bro.zip https://github.com/rivm-syso/OURS/files/9733117/bro.zip
— Reply to this email directly, view it on GitHub https://github.com/rivm-syso/OURS/issues/8#issuecomment-1271414687, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM7MIEVKE23TVBDTDPQGKCLWB73NHANCNFSM5N3A43JA . You are receiving this because you commented.Message ID: @.***>
Ours 2.0 stops when it tries to calculate the ground module: Error 8-2-2022 17:50:29 Error in module "cpt_tool.py". Exit code: 0! It appears on my own input xml's but not on the default input.xml brocptvolledigeset.gpkg is installed in the right directorry