Dear Peter,

I have just tried to install the wheel file that you mentioned (I guess downloaded from http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy) and I get the following (unexpected) error message on a Windows 10 64-bit OS, even though I am running a Python 2.7 32-bit pip:

C:\Users\paolo>C:\Python27_32\Scripts\pip install C:\Users\paolo\Downloads\numpy-1.11.0+mkl-cp27-cp27m-win32.whl numpy-1.11.0+mkl-cp27-cp27m-win32.whl is not a supported wheel on this platform.

Installing numpy from the standard pip repository works just fine:
C:\Python27_32\Scripts\pip install numpy
Collecting numpy
Installing collected packages: numpy
Successfully installed numpy-1.11.0

I would also make sure that there isn't a python27.dll somewhere along your PATH locations; when I ran this script on my system

@echo off
for %%A in ("%path:;=";"%") do (
    dir %%~A\python*.dll 2> NUL
)

it found C:\WINDOWS\system32\Python27.dll that I didn't know to be there.

Hope that helps,
Paolo

On 4/13/2016 9:16, Peter Hunt wrote:

Hi Paolo,

Thanks for the reply. I did have a 64-bit Python installation but it **should** have all been uninstalled.

I have the same as you when I run python and there is nothing in the PATH which would suggest I’m picking up something from elsewhere.

Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)] on win32

Type "help", "copyright", "credits" or "license" for more information.

>>>

Prior to installation of the RDKit files, I have also had to install numpy (numpy-1.11.0+mkl-cp27-cp27m-win32.whl), scipy (scipy-0.17.0-cp27-none-win32.whl), pip version 8 and scikit-learn as I wanted to use the Random Forest classifier out of sklearn.ensemble and had to have an up-to-date version of scipy to get that to do more than a very small data matrix. To get that (scipy) to work I had to have the numpy+mkl installation from the wheel file above or else I find a similar DLL load failure for part of the scipy modules. All these were installed by means of pip and should be Python 2.7 and 32bit versions.

Hence there are plenty of things that could be getting in the way of the RDKit installation but I wondered if there was anything known regarding this DLL error. Would redoing the installations in a different order (ie RDKit before numpy & scipy) make a difference..?

Regards

*/Peter/*

*From:*Paolo Tosco [mailto:paolo.to...@unito.it]
*Sent:* 12 April 2016 14:58
*To:* Peter Hunt <pe...@optibrium.com>
*Subject:* Re: [Rdkit-discuss] DLL load failed error

Dear Peter,

I am running Windows 10 with 64-bit Python but I just installed 32-bit Python 2.7.11 under C:\Python27_32 to test this out. I unzipped RDKit_2015_03_1.win32.py27.zip into C:\, then opened up a shell and issued the following commands:

Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\Users\paolo>set RDBASE=C:RDKit_2014_03_1

C:\Users\paolo>set PYTHONPATH=%RDBASE%

C:\Users\paolo>set PATH=%RDBASE%\lib;%PATH%

C:\Users\paolo>C:\Python27_32\python.exe
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import rdkit
>>> from rdkit import Chem
>>>

Could it be that you have a 64-bit Python in your PATH which gets in the way? I get the error message that you got when try to import rdkit and then Chem from a 64-bit Python shell.

Kind regards,
Paolo

On 4/12/2016 10:34, Peter Hunt wrote:

    Dear All,

    I’m trying to install and run the latest RDKit version (2015_03_1)
    for Python 2.7 and 32bit windows OS running Win10 from SourceForge.

    I’m running into the “ImportError: DLL load failed: %1 is not a
    valid Win32 application” and the links on the
    RDKit/docs/install.html for Win7 are not helpful.

    Any recommendations as to how I can get around this..? Usually
    this is a conflict of versions 64/32bit but I have installed 32bit
    versions of everything required.

    Thanks in advance.

    Regards

    */Peter/*




    
------------------------------------------------------------------------------

    Find and fix application performance issues faster with Applications Manager

    Applications Manager provides deep performance insights into multiple tiers 
of

    your business applications. It resolves application problems quickly and

    reduces your MTTR. Get your free trial!

    https://ad.doubleclick.net/ddm/clk/302982198;130105516;z




    _______________________________________________

    Rdkit-discuss mailing list

    Rdkit-discuss@lists.sourceforge.net
    <mailto:Rdkit-discuss@lists.sourceforge.net>

    https://lists.sourceforge.net/lists/listinfo/rdkit-discuss


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to