Jump to content
Geochemist's Workbench Support Forum


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Christine's Achievements


Newbie (1/14)

  • One Month Later Rare
  • Dedicated Rare
  • First Post Rare
  • Week One Done Rare
  • Conversation Starter Rare

Recent Badges



  1. Hi Jia, I've finally got this working with anaconda, and figured I'd share in case anyone else wants to try this and searches through these forums for help. I uninstalled Anaconda, downloaded Python 3.8 directly from python.org and tried running the plugin (using the exact same code as above, with the DLL fix) via the command line as you suggested, but was getting the same error message (this time it just said 'the specified module could not be found'). I tested some earlier versions of Python as well (3.6 and 3.7), and got ' "errorMessage": "module 'os' has no attribute 'add_dll_directory'"' - I guess this was only added in Python 3.8, and without the add_dll_directory line I still got the "module not found" message. The fix is to edit the system environment variables on Windows (Control Panel -> System-> Advanced System Settings-> Environment Variables). Under user variables, change the "PATH" variable to C:\Program Files\Gwb (not "PYTHONPATH", which should still be C:\Program Files\Gwb\src"). This did the trick, and now the plugin successfully runs both directly in a python terminal, and in my Jupyter notebook. The "add_dll_directory'" step is no longer necessary, either. I am guessing since this was not the fix in your testing, it has something to do with how Python interacts with my emulator version of Windows 7. But in any case, I wouldn't have figured this out without going through these others steps you suggested first, so thank you very much for the help!
  2. Hi Jia, Unfortunately I am still getting the same error. It looks it is able to find the GWBplugin.py file, but for some reason when it gets to the "initialize" stage it throws the error.
  3. Hi again Jia, My GWB was indeed the 32-bit. I have since uninstalled it, and reinstalled the 64-bit version, however I am still getting the same error. I am using sys.path.append('C:\Program Files\Gwb\src') this time (and when I tell python to print everything in sys.path, it does indeed include that folder), but I still get the same "FileNotFoundError" as above when I try to call the initialize function.
  4. Hi Jia, Thanks for the response. I am looking at my environment variables via system properties on windows and don't see anything called "PYTHONPATH". I should say, I'm actually a Mac user running GWB on a Windows 7, 64 bit OS emulator, so I am not as well-versed in setting paths, etc on Windows. I am using the Anaconda python distribution with python version 3.8.8. I installed the 64-bit version because that was recommended for the 64 bit Windows OS. So it seems there may be a few problems here. Where should I start?
  5. I am trying to use the GWB python plugin to batch run some different models in React. I am running python through a Jupyter notebook, and am following the instructions for using the plugin here. The first three lines of my code are: which append the GWB src folder to my path successfully. However, in the next two lines of my code: I get the following error message: I am not sure why I'm getting this error since I have already set my path to the GWB src folder. Any help would be appreciated!
  • Create New...