python / cpython

The Python programming language
https://www.python.org/
Other
59.68k stars 28.92k forks source link

makepy crashes parsing "Hauppauge WinTV OCX (b.11) #33629

Closed 9578727f-b854-4de9-9821-68da4646ef1d closed 23 years ago

9578727f-b854-4de9-9821-68da4646ef1d commented 23 years ago
BPO 226665
Nosy @gvanrossum, @mhammond

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields: ```python assignee = 'https://github.com/mhammond' closed_at = created_at = labels = ['OS-windows'] title = 'makepy crashes parsing "Hauppauge WinTV OCX (b.11)' updated_at = user = 'https://bugs.python.org/jcable' ``` bugs.python.org fields: ```python activity = actor = 'gvanrossum' assignee = 'mhammond' closed = True closed_date = None closer = None components = ['Windows'] creation = creator = 'jcable' dependencies = [] files = [] hgrepos = [] issue_num = 226665 keywords = [] message_count = 2.0 messages = ['2735', '2736'] nosy_count = 3.0 nosy_names = ['gvanrossum', 'mhammond', 'jcable'] pr_nums = [] priority = 'normal' resolution = 'wont fix' stage = None status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue226665' versions = [] ```

9578727f-b854-4de9-9821-68da4646ef1d commented 23 years ago

Probably a problem with the OCX, but clearly a failure in makepy too:

PythonWin 2.0 (#8, Oct 19 2000, 11:30:05) [MSC 32 bit (Intel)] on win32.
Portions Copyright 1994-2000 Mark Hammond (MarkH@ActiveState.com) - see 'Help/About PythonWin' for further copyright information.
>>> Generating to c:\python20\win32com\gen_py\2B143B63-055B-11D2-A96D-00A0C92A2D0Fx0x11x17.py
Traceback (most recent call last):
  File "c:\python20\pythonwin\pywin\framework\scriptutils.py", line 301, in RunScript
    exec codeObject in __main__.__dict__
  File "C:\Python20\win32com\client\makepy.py", line 357, in ?
    rc = main()
  File "C:\Python20\win32com\client\makepy.py", line 350, in main
    GenerateFromTypeLibSpec(arg, f, verboseLevel = verboseLevel, bForDemand = bForDemand, bBuildHidden = hiddenSpec)
  File "C:\Python20\win32com\client\makepy.py", line 254, in GenerateFromTypeLibSpec
    gen.generate(fileUse, bForDemand)
  File "c:\python20\win32com\client\genpy.py", line 665, in generate
    self.do_generate()
  File "c:\python20\win32com\client\genpy.py", line 719, in do_generate
    oleItems, enumItems, recordItems = self.BuildOleItemsFromType()
  File "c:\python20\win32com\client\genpy.py", line 620, in BuildOleItemsFromType
    refType = info.GetRefTypeInfo(info.GetRefTypeOfImplType(j))
com_error: (-2147312566, 'Error loading type library/DLL.', None, None)
>>> 

The offending ocx can be found at:

http://homepage.ntlworld.com/julian.cable/hcwWinTV.ocx

gvanrossum commented 23 years ago

This is a Pythonwin problem, this is not the proper place to report this bug. Go to the activestate.com website to find out more.