473,661 Members | 2,449 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with win32net on Windows 2K

I am trying to use win32net on a Windows 2000 Japanese system, and
discover that it won't import. I found a message describing the
problem (see below) but can't find any response, and don't see a bug
report on the SourceForge site for this. . Can anyone tell me if
this has ben fixed? An early message in 2000 said that win32net is
supposed to run on Windows 2000

I find the same problem reported, with more detail, on the py2exe
user list, where Thomas Heller commented on 2004-08-26 :
Here"s the rest of the trackback:
File "netbios.py c", line 1, in ?
File "win32wnet.pyc" , line 9, in ?
File "win32wnet.pyc" , line 7, in __load
ImportError: DLL load failed: The specified procedure could not be found.


The procedure entry point LsaLookupNames2 could not be located in the
dynamic link library ADVAPI32.dll

This looks like the win32net Python extension requires the
LsaLookupNames2 function in ADVAPI32, but this is only available in
WinXP and Win2003 Server, according to MSDN, preventing to use win32net
on win2k. You should report this to Mark Hammond, and maybe use a later
version of pywin32 for now.

Thomas
Jul 18 '05 #1
1 3318
Thomas,

I have a Win2K machine and win32net imports just fine.

Here is what I did - started python shell with the -v switch and
imported win32net. This is what it says:
py>>> import win32net
# c:\python24\lib \encodings\cp43 7.pyc matches
c:\python24\lib \encodings\cp43 7.py
import encodings.cp437 # precompiled from
c:\python24\lib \encodings\cp43 7.pyc
import win32net # dynamically loaded from
C:\Python24\Lib \site-packages\win32\ win32net.pyd

I tried this on Python 2.4, pywin32 build 203 and Win2k Version
5.00.2195 SP 4.

What version of Python are you using? Do you have the Python-version
corresponding version of the pywin32 extensions installed?

Another item you may want to check is if your PYTHONPATH is correct.
Are you able to import other win32 components correctly, for example,
win32com.client ? Here is my Pythonpath:
c:\python24;c:\ python24\lib;c: \python24\scrip ts;C:\Python24\ Lib\site-packages\wi
n32;C:\Python24 \Lib\site-packages\win32\ lib;C:\Python24 \Lib\site-packages\Python
win;C:\WorkArea \Python

/
Thanks,
--Kartic

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1765
by: Uwe Becher | last post by:
I try to get all logical drives of a remote machine (WinNT or W2K) and get a result, that gives me the expected total but not all expected drives. Example: >>> win32net.NetServerDiskEnum('nor1w020', 0) gives me: (, 8, 0) while the machine has the local drives A: C: D: E: F: G: H: Z:
0
1041
by: Robin Becker | last post by:
I'm trying to centralize changing the administrator password on our mini office net and the following works OK for all of the win2k clients. win32net.NetUserChangePassword(comp, 'Administrator', current, next) however, it fails with access denied for the XP machines and I'm not clever enough to work out why. I do notice that XP seems to have a different system drive (Windows instead of Winnt) and that I am unable to work out how to ...
0
1611
by: Read Roberts | last post by:
I wrote my own directory browser in order to get around a bug where tkFileDialog.askdirectory() can't handle non-ascii paths. However, I have a problem where I call os.listdir() on a mapped network drive, e.g. os.listdir("Z:\\"), and if the network drive is unavailable, the UI hangs until the OS returns with an exception because the network shared drive is unavailable. I would like to work around this by simply not looking into ...
9
2816
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am facing. Please please help me to solve this as soon as possible. So here we go ... I am not able to take the screen shot of the windows form based "Smart
3
1576
by: pnp | last post by:
Hi all, I have developed an app in C# and I have used some of the Infragistics components in it. The problem is that while one is playing with the windows within the mdi container exceptions occur that are not being handled by any Exception handler. I have also placed one after the application run method so if any exception occurs this "sink" will catch it. But instead an error occurs from an unhandled exception and the application...
2
2619
by: Joseph Geretz | last post by:
I'm having a credentialing problem in my web application. Actually, I don't think this is an IIS security issue, since I'm able to access the page I'm requesting. However, the executing page itself is not able to access a specific network resource and I just can't figure out why. First of all, let me say this worked fine with IIS running on Win2000 Server. This has not worked since I upgraded to Windows Server 2003. My Platform: Windows...
4
6020
by: pepcag | last post by:
I used http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconalteringsoapmessageusingsoapextensions.asp as a template to create a very simple web method with soap extension. The code like this: public string HelloWorld() { return "Hello World.";
4
3147
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps further away, completely leaving the selector box area. Any ideas? VS 2003 and VB.Net This is a simple application at the moment but the form is inherited from a
30
4567
by: dbuchanan | last post by:
ComboBox databindng Problem == How the ComboBox is setup and used: My comboBox is populated by a lookup table. The ValueMember is the lookup table's Id and the DisplayMember is the text from a corresponding field in the lookup table. In my data table we store the ID in what I will call the 'key' field. == Description of the desired operation:
0
8855
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8758
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8545
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5653
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4179
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4346
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1986
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1743
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.