Python install validation (v.9.2)

CaraSchiek
CaraSchiek Posts: 3 Calcite Rank Badge
edited May 2023 in Oasis montaj
Hello.

I have followed the steps in installing the latest python package. It appears to have installed correctly (e.g. no errors during installation). When I run the validation, I receive this error:

>>>importgeosoft.gxpy.gx as gx
Traceback (most recent call last):
File "", line 1, in
File "C:geosoft\_init__.py", line 16, in
import geosoft.gxapi.gx as gxapi
InportError: DLL load failed: The specific module could not be found.

Any suggestions for solving this would be appreciated.

Thanks in advance!

Cara

Comments

  • IanMacLeod
    IanMacLeod Posts: 382 Fluorite Rank Badge
    Cara,

    Tough one to reproduce, sorry. I suspect Python has a DLL conflict with a visual studio DLL, or some other DLL that is being loaded incorrectly. I am investigating with a developer here.

    Some things to investigate though in case I can't get back to you with something more definitive:
    1. What version of Python? It must be 3.4, 3.5 or 3.6.
    2. Are you using Anaconda Python, or something else? If something else, try Anaconda Python.
    3. Are you importing anything before the geosoft import? If so, it is possible one of the other imports has already loaded an incompatible dll.
    4. Verify that you have Geosoft Desktop 9.2 installed?
    If you are able to solve this, please let us know so we can share the learning.

    Thanks, Ian
    Geosoft logo
  • Hi Ian,

    Please see below,

    1. What version of Python? It must be 3.4, 3.5 or 3.6.
    >>3.6.1

    2. Are you using Anaconda Python, or something else? If something else, try Anaconda Python.
    >>Anaconda Python

    3. Are you importing anything before the geosoft import? If so, it is possible one of the other imports has already loaded an incompatible dll.
    >> I am not importing anything prior. I ran the verification as directed https://geosoftgxdev.atlassian.net/wiki/display/GXDEV92/Installing+GX+Developer

    4. Verify that you have Geosoft Desktop 9.2 installed?
    >>Yes

    Thanks,
    Cara
  • JacquesBeaurain
    JacquesBeaurain Posts: 29 Calcite Rank Badge
    edited July 2017
    Hi Cara,

    The stack trace in your original post appears strange. Can you please run the following and post the output back (my output included as an example of a successful run):

    e:\ggit\t\desk>pip uninstall geosoft Uninstalling geosoft-9.2.0: c:\program files\anaconda3\lib\site-packages\geosoft-9.2.0.dist-info\description.rst ... c:\program files\anaconda3\lib\site-packages\geosoft\vcruntime140.dll Proceed (y/n)? y Successfully uninstalled geosoft-9.2.0 e:\ggit\t\desk>pip install geosoft Collecting geosoft Using cached geosoft-9.2.0-2-cp36-none-win_amd64.whl Requirement already satisfied: xmltodict in c:\program files\anaconda3\lib\site-packages (from geosoft) Requirement already satisfied: pandas in c:\program files\anaconda3\lib\site-packages (from geosoft) Requirement already satisfied: numpy>=1.11 in c:\program files\anaconda3\lib\site-packages (from geosoft) Requirement already satisfied: python-dateutil>=2 in c:\program files\anaconda3\lib\site-packages (from pandas->geosoft) Requirement already satisfied: pytz>=2011k in c:\program files\anaconda3\lib\site-packages (from pandas->geosoft) Requirement already satisfied: six>=1.5 in c:\program files\anaconda3\lib\site-packages (from python-dateutil>=2->pandas->geosoft) Installing collected packages: geosoft Successfully installed geosoft-9.2.0 e:\ggit\t\desk>python Python 3.6.0 |Anaconda 4.3.0 (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import geosoft.gxapi as gxapi >>> exit()

    Cheers,
    Jacques
This discussion has been closed.