Użytkownik enrico secco napisał:
>
> Hi,
> I did try to solve with the:
> "packages": ["pymssql"]
> but nothing change.
> So I did add:
> import pymssql
> in the main file costo.py
> Problem solved but ...
> Now I have this log:
> """
> Traceback (most recent call last):
>    File "costo.py", line 22, in<module>
>    File "zipextimporter.pyo", line 82, in load_module
>    File "pymssql.pyo", line 30, in<module>
>    File "zipextimporter.pyo", line 98, in load_module
> ImportError: MemoryLoadLibrary failed loading _mssql.pyd
> """
> I did find some information in the py2exe documentation but is relative to a 
> bug in the 0.6.6 version and seems to be fixed in the 0.6.9 version, that I 
> use.
> I did verify the presence of the _mssql.pyd file in the costo.exe zip and the 
> file is present.
> Any idea? Must I install the complete python environment to jump the problem?
> Enrico


First and the most important, what pymssql package branch are you using?
If it's 1.9.x, use package from this link:
http://pymssql.googlecode.com/issues/attachment?aid=-5682366781538954821&name=pymssql-1.9.908.win32-py2.6.exe&token=47c1fe5ce9f7d95c81cb929a5183dea1
It's improved compared to the original one (read thread 
http://code.google.com/p/pymssql/issues/detail?id=2).
Your py2exe configuration must contain:
        "packages": ["pymssql"],
        "includes": ["_mssql", "pymssql"],

This works for me, and if it isn't for you, I give up at this moment.

-- 
Regards
Jacek Kałucki
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to