Re: Stuck at "Python version 3.5 required, which was not found in the registry."

Anthony Tuininga <[email protected]> Tue, 16 Feb 2016 10:28:22 -0700
Newsgroups gmane.comp.python.db.cx-oracle
Message-ID <CAE1XR-7OgXj0hYhBtqUJsh0eWGu=P+V-QxMYwZUJ1G=ZocAaOg@mail.gmail.com>
Hi Greg,

I'm not sure why you are experiencing those issues....but apparently you
are not alone. Others have experienced such issues when attempting to
install 32-bit stuff on 64-bit Windows machines. You may wish to install
64-bit Python as well -- it may make it happier. :-) Once you have
everything you want you can always uninstall the 64-bit version -- assuming
that an upgrade to 64-bit is completely out of the works, of course! And if
it puts it in the wrong place, you can always move cx_Oracle.pyd to the
right place. That is the only file that really matters anyway.

Regarding the issue of vcvarsall.bat -- my guess is you have to run the
special command prompt that Microsoft provides that sets the environment
correctly....or set your environment correctly yourself. :-)

Failing that, you can send me an e-mail and I can reply with the .pyd file
directly (suitably renamed, of course, to get around the "security"
employed by Windows).

On Tue, Feb 16, 2016 at 9:33 AM, Tipps, Greg (Greg Tipps) <[email protected]>
wrote:

> Hello cx_Oracle users,
>
>
>
> I have a 64-bit Windows Server 2012 R2 box that is running 32-bit Python
> 2.7.4 and uses cx_Oracle to connect to an Oracle 11g database, and I am
> trying to upgrade to 32-bit Python 3.5.
>
>
>
> For Python 2.7.4 I was able to use the PyPi .exe installer (page link:
> https://pypi.python.org/pypi/cx_Oracle/), but the Python 3.5 installer
> (cx_Oracle-5.2.1-11g.win32-py3.5.exe) always gives me this error: “Python
> version 3.5 required, which was not found in the registry."
>
>
>
> Some Googling of that led me to a blog post (link:
> http://codeyarns.com/2012/04/28/python-version-not-found-in-registry-error/)
> where the author was able to get around this error by creating some new
> registry keys- It turned out that in their case, the module was looking for
> some values under HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore\3.2 , and
>  those values were actually written by the Python installer at
> HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.2. They were able to
> export the HKLM values, edit the .reg file, then import them into HKCU, and
> successfully install the module.
>
>
>
> I noticed that in my case, since I am working with 32-bit Python on a
> 64-bit system, those keys were written at
> HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\3.2, so I tried
> exporting the Wow6432Node\Python key and importing it in these three
> locations:
>
> HKEY_CURRENT_USER\SOFTWARE\Python
>
> HKEY_CURRENT_USER\SOFTWARE\Python\Wow6432Node
>
> HKEY_LOCAL_MACHINE\SOFTWARE\Python
>
>
>
> I rebooted the server after making these changes and ran the installer
> again, and was still met with the “Python version 3.5 required” error. I
> tried to find the registry path the installer is checking by inspecting the
> source code (https://bitbucket.org/anthony_tuininga/cx_oracle), but I
> wasn’t able to find that error string. Can anyone here point me in one
> direction or another?
>
>
>
> P.S. I’m trying to keep this message short, but: I have also tried to
> build & install the cx_Oracle module using pip, and while the server has 10
> separate versions of the MS Visual C++ redistributable and the 11GB MS
> Video Studio Community 2015 package installed, that build attempt always
> fails at “error: Unable to find vcvarsall.bat” so I’m hoping the registry
> issue with the binary installer might be easier to resolve.
>
>
>
> --Greg
>
>
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> _______________________________________________
> cx-oracle-users mailing list
> cx-oracle-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/cx-oracle-users
>
>

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140

_______________________________________________
cx-oracle-users mailing list
cx-oracle-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/cx-oracle-users