New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win32/types.pyd error : 6.0b1 win7 and win10 #332

Closed
dhenryFabrice opened this Issue Dec 6, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@dhenryFabrice

dhenryFabrice commented Dec 6, 2017

Hello,

When win32com is imported, cx_Freeze put types.pyd from win32 at the root of the folder which seems to interferes with the type module and produce the error:
from types import MappingProxyType
ImportError: cannot import name 'MappingProxyType'
Since types.pyd is already in lib\win32, I do not understand why it is needed at the root folder.

I have the same issue with cx_Freeze 5.1.

Best regards

anthony-tuininga added a commit that referenced this issue Dec 9, 2017

@anthony-tuininga

This comment has been minimized.

Owner

anthony-tuininga commented Dec 9, 2017

I just pushed a commit that should resolve this issue. Please give it a try and let me know if it works for you, too.

anthony-tuininga added a commit that referenced this issue Dec 9, 2017

@dhenryFabrice

This comment has been minimized.

dhenryFabrice commented Dec 10, 2017

Hi,

Many thanks for helping!
Not yet :-(
types.pyd is not copied at the root folder anymore but, I get an error

C:\Users\dhenry\PycharmProjects\sog-packages\client_3DBat\packaging\cx_Freeze\bu
ild\exe.win-amd64-3.6>3Dbat.exe
Traceback (most recent call last):
File "C:\Users\dhenry\AppData\Local\Programs\Python\Python36\lib\site-packages
\cx_freeze-6.0b1-py3.6-win-amd64.egg\cx_Freeze\initscripts_startup_.py", line
14, in run
module.run()
File "C:\Users\dhenry\AppData\Local\Programs\Python\Python36\lib\site-packages
\cx_freeze-6.0b1-py3.6-win-amd64.egg\cx_Freeze\initscripts\Console.py", line 26,
in run
exec(code, m.dict)
File "C:\Users\dhenry\PycharmProjects\sog-packages\client_3DBat\client_3DBat_
main_.py", line 17, in
wb = excel.Workbooks.Add()
File "c:\temp\gen_py\3.6\00020813-0000-0000-C000-000000000046x0x1x7\Workbooks.
py", line 34, in Add
ret = self.oleobj.InvokeTypes(181, LCID, 1, (13, 0), ((12, 17),),Template
AttributeError: module 'win32.com.client' has no attribute 'VARIANT'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment