enthought / enthought/comtypes

Partial wrapper files generated in gen folder

Open
#114 5 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Python
Stars
345
Forks
105
PR merge metrics
No merged PRs in 30d

Description

__With Comtypes 1.1.2 and Python 2.7.10__

I have noticed that some times the generated wrappers have only the first two lines as below:

# -*- coding: mbcs -*-
typelib_path = u'C:\\XXXXXXXXXXXXXXXXXXXXX.tlb'

This manifests as issues such as:
`AttributeError: 'module' object has no attribute 'XXXXX'`

I had to delete the generated file and regenerate it to fix the issue whenever I see them. However I wasn't able to isolate the root cause and neither is the issue very frequent. After going through the github issues and searching over the internet, I don't see many complaining about such an issue. Only two instance that were discussed elsewhere seem relevant:
- https://geonet.esri.com/thread/122158
- http://gis.stackexchange.com/questions/135741/debugging-module-object-has-no-attribute-sdeworkspacefactory

so I guess this is not specific to my setup but a generic issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.