NEW VERSION OF QSWATMOD SHOWING ERROR

106 views
Skip to first unread message

Diwakar Saran

unread,
Oct 23, 2023, 1:27:43 AM10/23/23
to SWAT-MODFLOW
Respected Dr.Park and other users,
I have been trying to use QSWATMOD latest version 2.6.1 within QGIS 3.22.11. However, when I try to input the HRU shapefile, following error is displayed. Please find attached the screenshot displaying error and help me. 

Also, does anyone have an idea that the latest version of QSWATMOD 2.6.1 is compatible with which version of QGIS? I have tested that it displays the same error when executed within QGIS 3.22.11 & 3.28.11.

Yours sincerely,
Diwakar

An error has occurred while executing Python code:

FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\GWHD\\Desktop\\QSWATMOD_NewDemo\\QSWATMOD_NewMBRW\\GIS\\org_shps\\hru_org.gpkg'
Traceback (most recent call last):
  File "C:\Users/GWHD/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATMOD2\QSWATMOD2.py", line 1382, in hru_shapefile
    shutil.copy(f, outfile)
  File "C:\PROGRA~1\QGIS32~1.11\apps\Python39\lib\shutil.py", line 418, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "C:\PROGRA~1\QGIS32~1.11\apps\Python39\lib\shutil.py", line 264, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\GWHD\\Desktop\\QSWATMOD_NewDemo\\QSWATMOD_NewMBRW\\GIS\\org_shps\\hru_org.gpkg'


Python version: 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]
QGIS version: 3.22.11-Białowieża Białowieża, 106d33d7

Python Path:
C:/PROGRA~1/QGIS32~1.11/apps/qgis-ltr/./python
C:/Users/GWHD/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/GWHD/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA~1/QGIS32~1.11/apps/qgis-ltr/./python/plugins
C:\Program Files\QGIS 3.22.11\bin\python39.zip
C:\PROGRA~1\QGIS32~1.11\apps\Python39\DLLs
C:\PROGRA~1\QGIS32~1.11\apps\Python39\lib
C:\Program Files\QGIS 3.22.11\bin
C:\PROGRA~1\QGIS32~1.11\apps\Python39
C:\PROGRA~1\QGIS32~1.11\apps\Python39\lib\site-packages
C:\PROGRA~1\QGIS32~1.11\apps\Python39\lib\site-packages\win32
C:\PROGRA~1\QGIS32~1.11\apps\Python39\lib\site-packages\win32\lib
C:\PROGRA~1\QGIS32~1.11\apps\Python39\lib\site-packages\Pythonwin
C:/Users/GWHD/AppData/Roaming/QGIS/QGIS3\profiles\default/python

Screenshot (69).png

Gaurav Dumoga

unread,
Oct 23, 2023, 1:36:24 AM10/23/23
to Diwakar Saran, SWAT-MODFLOW
You will have to create folder named org_shps in your directory in GIS manually and after this again you will get a error which will be solved by creating one more folder in same directory named SMshps.
C:\\Users\\GWHD\\Desktop\\QSWATMOD_NewDemo\\QSWATMOD_NewMBRW\\GIS\\org_shps\\hru_org.gpkg
--
You received this message because you are subscribed to the Google Groups "SWAT-MODFLOW" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swat-modflow...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/swat-modflow/b0c60b12-d49a-443f-a8c4-882932527707n%40googlegroups.com.

Diwakar Saran

unread,
Oct 23, 2023, 1:57:52 AM10/23/23
to Gaurav Dumoga, swat-m...@googlegroups.com
Thank you Gaurav for your prompt help. The issue has been resolved. 

Yours sincerely, 
Diwakar

Gaurav Dumoga

unread,
Oct 23, 2023, 2:00:13 AM10/23/23
to Diwakar Saran, swat-m...@googlegroups.com
Glad it worked. 

Seonggyu Park

unread,
Oct 25, 2023, 11:54:31 PM10/25/23
to SWAT-MODFLOW
Hi Diwakar,

Did the error occur when you created a new project without any pre-existing data?

Thanks,
Seonggyu

Seonggyu Park

unread,
Nov 7, 2023, 10:09:12 PM11/7/23
to SWAT-MODFLOW
Reply all
Reply to author
Forward
0 new messages