Hello,

i found out. that all works fine, if i change py2exe-option 'bundle_files' from 1 to 3.

Someone know, where the problem is?

Regards,
Steffen


setup(
      package_dir = {"" : "src"},
      packages = packages,
      options={ "py2exe" : {
                "includes" : includes,
                'dll_excludes': dll_excludes,
#"bundle_files": 1, # bundle everything, including the Python interpreter "bundle_files": 3, # bundle nothing, workaround for using win32wnet.pyd
                "compressed": 1,
                "optimize" : 2}},
      zipfile = None,


On 06/09/2011 10:58 PM, Steffen Frömer wrote:
Hello,

i am having some trouble to include win32wnet library into my code.
Using this inside python, all works fine. When i make executable using py2exe, i get ImportError on importing the module win32wnet.

Have someone an idea?

Regards,
Steffen

System:
Windows7 Professional x86_64
Python 2.7.1 (32bit)


## Exception Error ##
---------------------------------
MemoryLoadLibrary failed loading win32wnet.pyd ## [diredit::getUNCPath(68)]
Traceback (most recent call last):
  File "tfm\util\fileio\diredit.pyo", line 65, in getUNCPath
  File "zipextimporter.pyo", line 98, in load_module
ImportError: MemoryLoadLibrary failed loading win32wnet.pyd


## snip of code from setup.py ##
-------------------------------------------------
includes = ["sip",
            "PyQt4.QtCore",
            "pubsub.*",
            "pubsub.core.*",
            "pubsub.core.kwargs.*",
            "lxml",
            "gzip",
            "lxml._elementpath",
            "win32api",
            "win32wnet",
            ]

# workaround of following error
# ... ImportError: MemoryLoadLibrary failed loading win32api.pyd
dll_excludes = [ "mswsock.dll", "powrprof.dll" ]
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to