Error migrating from ArcSWAT to QSWAT

93 views
Skip to first unread message

Maukthik Srivathsan J

unread,
Apr 8, 2024, 10:47:03 AM4/8/24
to QSWAT
Hello,
I recently tried migrating an old swat model from arcswat to qswat through the swat editor runConvertFromArc command, but the command prompt displays "Cannot find QGIS 3.16 at C:\Program Files (x86)\QGIS 3.16.  Hit Enter to exit".
I have QGIS 3.18.3-Zürich (32 Bit), QSWAT3 1.6.0, SWAT editor 2012 10.12.30

Thank you in advance.  

Chris George

unread,
Apr 8, 2024, 11:07:20 AM4/8/24
to Maukthik Srivathsan J, QSWAT
You need to do a bit of editing to runConvertFromArc.bat, which you will
find in C:\SWAT\SWATEditor, to match your QGIS installation.

1. Assuming your QGIS is in Program Files (x86), since you say it is 32
bit, just change 3.16 in line 2 of runConvertFromArc.bat to 3.18 (You
could also change line 5 in the same way, but it is not essential.)

2. Look in C:\Program Files (x86)\QGIS 3.18.3\bin to see if you have
qt5_env.bat and py3_env.bat. I suspect you will not have them. (They
were removed for some version of QGIS but I don't remember when.) If
you don't have them insert rem plus a space at the beginning of lines 10
and 11 to comment out the calls of these scripts.

It should then run OK.
If you get problems change the first line from @echo off to @echo on and
send me the output when you try to run it.

Chris


On 4/8/2024 2:53 PM, Maukthik Srivathsan J wrote:
> Hello, I recently tried migrating an old swat model from arcswat to
> qswat through the swat editor runConvertFromArc command, but the command
> prompt displays "Cannot find QGIS 3. 16 at C: \Program Files (x86)\QGIS
> 3. 16.  Hit Enter to exit". I have
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> This message came from outside your organization.
> ZjQcmQRYFpfptBannerEnd
> Hello,
> I recently tried migrating an old swat model from arcswat to qswat
> through the swat editor /runConvertFromArc/ command, but the command
> prompt displays "/*Cannot find QGIS 3.16 at C:\Program Files (x86)\QGIS
> 3.16.  Hit Enter to exit".*/
> I have QGIS 3.18.3-Zürich (32 Bit), QSWAT3 1.6.0, SWAT editor 2012 10.12.30
>
> Thank you in advance.
>
> --
> You received this message because you are subscribed to the Google
> Groups "QSWAT" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to qswat+un...@googlegroups.com
> <mailto:qswat+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/qswat/5758d24e-f77c-4d99-afc5-cc524d175dcdn%40googlegroups.com <https://urldefense.com/v3/__https://groups.google.com/d/msgid/qswat/5758d24e-f77c-4d99-afc5-cc524d175dcdn*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!KwNVnqRv!FdG6k60B9xPuWYAJKlbqrbku6XkXBfAl5Vq6PotjN6GMmlLpdL4MKbVze2v44a8BKqtseNq3wiINaH-acqSw$>.

Chris George

unread,
Apr 9, 2024, 10:35:00 AM4/9/24
to Maukthik Srivathsan J, QSWAT
I realised afterwards there are a couple of things I omitted from my
last message:

1. Your QGIS directory in line2 probably should be C:\Program Files
(x86)\QGIS 3.18.3: I forgot the final .3

2. QGIS 3.18 is not a long term release, I think. So the setting of
QGISNAME on line 13 should be changed to

QGISNAME=qgis

Chris
Reply all
Reply to author
Forward
0 new messages