Re: cx_Oracle compiled in MS VC++ 2010 (MSC v1600) 64 bit
"M.M.Rashid (Rubel)" <[email protected]> Wed, 17 May 2017 09:31:27 +0800
| Newsgroups | gmane.comp.python.db.cx-oracle |
|---|---|
| Message-ID | <CABs5CDGB5QziK3N1h9+9aE73RFn2w8--ovB_+BiVpjJzM=nJCw@mail.gmail.com> |
The issue has been resolved. Compiling in cmd line worked. Cheers, Rashid On Tue, May 16, 2017 at 9:36 PM, M.M.Rashid (Rubel) <[email protected]> wrote: > Dear All, > > Due to in house python distribution which was compiled in MSC++ v2010, I > had to compile cx_Oracle with the same version. In doing so, I am having > two issues: > > > > - If I compile in DEBUG mode, I get this error: > > * LINK : fatal error LNK1104: cannot open file 'python27_d.lib'* > > in my python instillation, I only have release library - > python27.lib > > - So, I tried to compile in Release mode and this time it links fine. > I got the cx_oracle.pyd. Copying the pyd in sys.path and then trying to > import gives this error: > > > *Python 2.7.11 (default, Mar 10 2016, 10:58:13) [MSC v.1600 64 bit > (AMD64)] on win32* > *Type "help", "copyright", "credits" or "license" for more information.* > > *>>> import cx_Oracle* > > *Traceback (most recent call last):* > > * File "<stdin>", line 1, in <module>* > > *ImportError: dynamic module does not define init function (initcx_Oracle)* > > *>>>* > > > > What steps am I missing here? > > -- > M. M. RASHID(Rubel) > Perth, Australia. > > > -- M. M. RASHID(Rubel) Perth, Australia. E-mail: [email protected] Phone: +61 406996028 (Mobile) ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ cx-oracle-users mailing list cx-oracle-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/cx-oracle-users