Git Product home page Git Product logo

Comments (10)

ricsmania avatar ricsmania commented on May 30, 2024 2

@klauern ok, it seems that a lack of VC++ won't be a problem lol. Can you please check that:

  1. Your Oracle client is 64 bit
  2. C:\instantclient_12_1 is in your PATH

I managed to reproduce the exact same error (exit status 3221225595) by putting only the 32 bit version in my PATH and trying to run with 64 bit Go. When I removed it from PATH I got error 3221225781 instead.

from ora.

rana avatar rana commented on May 30, 2024

Hi Nick,

Can you try resetting your env variables using forward slashes? I think Go is used to unix format only. For example, for your installation:

CGO_CFLAGS=-IC:/instantclient_12_1/sdk/include/
CGO_LDFLAGS=C:/instantclient_12_1/oci.dll

If that doesn't work I would try the TDM GCC compiler if you aren't already.

Let me know how it goes.

Thank you,

Rana

from ora.

ricsmania avatar ricsmania commented on May 30, 2024

@klauern do you have msvcr100.dll (64 bit) somewhere in your PATH? If not, try installing this: http://www.microsoft.com/en-us/download/details.aspx?id=14632

from ora.

tgulacsi avatar tgulacsi commented on May 30, 2024

Maybe this is 'cause we now (since 954d56e) automatically call ora.Register, and if the DLL is not loadable, then it panics.

The cause is the missing/misconfigured DLL, but the symptom (error on import) is 'cause the automatic import calls OpenEnv right on import.

from ora.

klauern avatar klauern commented on May 30, 2024

@rana I changed it to forward slashes (/), but the same result came back

@ricsmania I tried downloading that, but I got an error
image

from ora.

klauern avatar klauern commented on May 30, 2024

As for what I do have installed, here's the list of Visual C++ things:

image

from ora.

klauern avatar klauern commented on May 30, 2024

Ah, that did it. I didn't have c:\instantclient_12_1 in my path, and--because it was pushed to my machine from IT-upon-high--I had a much older (and probably 32-bit) c:\ORACLE\ora102 in my path as well.

from ora.

klauern avatar klauern commented on May 30, 2024

The fix for me was just ensuring that the C:\instantclient_12_1 preceded other things in my path and the import worked. I still have some issues with my code, but I don't get the error anymore.

from ora.

klauern avatar klauern commented on May 30, 2024

I don't see anything in the installation instructions about putting that in my path, so that could be why things didn't work. I simply downloaded and unzipped the instant client on my computer and set those two CGO_ flags.

from ora.

ricsmania avatar ricsmania commented on May 30, 2024

Glad to hear it worked @klauern. Maybe it's not in the installation instructions because this is not required to build the application, only to run it. But a reminder there would definitely help.

from ora.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.