Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #72067

Re: win32serviceutil: ImportError: DLL load failed: The specified module could not be found

Newsgroups comp.lang.python
Date 2014-05-26 08:06 -0700
References <53822B28.4070609@shopzeus.com> <lltohb$sup$1@ger.gmane.org> <1401109074.81861.YahooMailNeo@web163801.mail.gq1.yahoo.com> <53834093.9090302@shopzeus.com> <mailman.10343.1401111146.18130.python-list@python.org>
Message-ID <e3ee9dfb-be9d-478b-9f8f-3e695e670d28@googlegroups.com> (permalink)
Subject Re: win32serviceutil: ImportError: DLL load failed: The specified module could not be found
From cjgohlke@gmail.com

Show all headers | View raw


On Monday, May 26, 2014 6:32:19 AM UTC-7, Tim Golden wrote:
> On 26/05/2014 14:24, Nagy L�szl� Zsolt wrote:
> 
> >
> 
> >>>>   Strange thing is that win32serviceutil.py is part of the pywin32
> 
> >>>>   distribution, so I guess I should be able to import it, right?
> 
> >>> Make sure you have a pywin32 that matches ???. Matching includes python
> 
> >>> version and bitness.
> 
> >> In addition, c:\python27\DLLs should also be on your %PATH%:
> 
> >> setx PATH "%PATH%;c:\python27\DLLs"
> 
> > Just curious: what if I don't have python2.7 installed at all? How on
> 
> > earth python3.4 + pywin32 requires DLL files from python2.7 ?
> 
> >
> 
> > BTW it did not help. Here is my path:
> 
> >
> 
> > Path=C:\Python34\;C:\Python34\Scripts;C:\Program Files (x86)\NVIDIA
> 
> > Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
> 
> > Files\SlikSvn\bin;C:\texlive\2013\bin\win32;c:\Python34\DLLs;c:\Python27\DLLs
> 
> >
> 
> >
> 
> > I have both Python27 and Python34 installed.
> 
> >
> 
> > Python 3.4: "import win32service" still throws ImportError: DLL load
> 
> > failed.
> 
> > Python 2.7: "import win32service" succeeds
> 
> >
> 
> > Build information:
> 
> >
> 
> > Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64
> 
> > bit (AMD64)] on win32
> 
> >
> 
> > It is the official latest. pywin32 is also the latest (build 219).
> 
> 
> 
> Nagy -- could you post to the python-win32 list? There's nothing wrong 
> 
> with putting it out here, but I don't know if the pywin32 guys hang out 
> 
> here, and I know they definitely do there. (Which is also lower volume).
> 
> 
> 
> I'm not seeing any changes to the win32service code, but a "missing DLL" 
> 
> error is almost always about some combination of permissions / UAC on 
> 
> install. Adding anything to your PATH is unlikely to help (unless you 
> 
> have a truly outlandish PATH).
> 
> 
> 
> I'll try to reproduce later if I can but I don't have time right now.
> 
> 
> 
> TJG

Python 3.4 does not run any bdist_wininst postinstall scripts. Try to run `C:\Python34\python.exe C:\Python34\Scripts\pywin32_postinstall.py -install` manually from an elevated command prompt.

Christoph

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: win32serviceutil: ImportError: DLL load failed: The specified module could not be found Tim Golden <mail@timgolden.me.uk> - 2014-05-26 14:32 +0100
  Re: win32serviceutil: ImportError: DLL load failed: The specified module could not be found cjgohlke@gmail.com - 2014-05-26 08:06 -0700
    Re: win32serviceutil: ImportError: DLL load failed: The specified module could not be found [SOLVED] Nagy László Zsolt <gandalf@shopzeus.com> - 2014-05-26 21:18 +0200
    Re: win32serviceutil: ImportError: DLL load failed: The specified module could not be found Nagy László Zsolt <gandalf@shopzeus.com> - 2014-05-26 21:22 +0200

csiph-web