Hi,
I've been having interworking problems with TortoiseHg and a couple of
Python-related programs and wondered whether anyone has suggestions as
to the cause.
First, apologies that the following error descriptions aren't very
detailed. I don't want to clag up the list if this has been reported or
addressed already and I haven't found it. I'm happy to provide further
details if needed.
The first is PyScripter, which is a python IDE. On my system (WinXP SP2)
I have the latest Enthought Python distribution installed "for all
users". I've been unable to get PyScripter to work when TortoiseHg is
installed despite an extended conversation with PyScripter's developer
about system paths, running PyScripter with commandline options pointing
to the location of the main Python25.dll etc. No matter what we tried,
the system would load the Python25.dll from the TortoiseHg directory in
preference to that pointed to PyScripter, causing it to crash.
Now I'm trying to use mayavi2, the python visualisation package, whose
embedded ipython shell is generating the attached crash log containing a
path to the TortoiseHg directory. Error logs from both hint that either
the problem is to do with TortoiseHg inserting itself into some system
path that the other apps aren't expecting (I don't know about how
Windows does this) or, I suspect more likely, it might be a problem with
pywin32 finding a resident TortoiseHg file and incorrectly using it
instead of loading the correct version of the dll.
Reading the comments in the pywintypes.py
__import_pywin32_system_module__() function raise my suspicions about this.
I'd appreciate any comments on this.
thanks,
Gary
***************************************************************************
IPython post-mortem report
IPython version: 0.9.1
SVN revision : 1145
Platform info : os.name -> nt, sys.platform -> win32
***************************************************************************
Current user configuration structure:
{'Version': 0,
'__allownew': True,
'alias': [],
'args': [],
'autocall': 1,
'autoedit_syntax': 0,
'autoexec': [],
'autoindent': 1,
'automagic': 1,
'banner': 1,
'c': '',
'cache_size': 1000,
'classic': 0,
'color_info': 1,
'colors': 'Linux',
'confirm_exit': 1,
'debug': 0,
'deep_reload': 0,
'editor': 'C:\\\\Progra~1\\\\Scinti~1\\\\scite',
'embedded': False,
'execfile': [],
'execute': [''],
'gthread': 0,
'help': 0,
'import_all': [],
'import_mod': [],
'import_some': [[]],
'include': [],
'interact': 0,
'ipythondir': 'C:\\Documents and Settings\\rubeng\\_ipython',
'log': 0,
'logfile': '',
'logplay': '',
'magic_docstrings': 0,
'messages': 1,
'multi_line_specials': 1,
'nosep': 0,
'object_info_string_level': 0,
'opts': Struct({'__allownew': True}),
'pdb': 0,
'pprint': 1,
'profile': '',
'prompt_in1': 'In [\\#]: ',
'prompt_in2': ' .\\D.: ',
'prompt_out': 'Out[\\#]: ',
'prompts_pad_left': 1,
'pydb': 0,
'pylab': 0,
'pylab_import_all': 1,
'q4thread': 0,
'qthread': 0,
'quick': 0,
'quiet': 0,
'rcfile': 'ipythonrc.ini',
'readline': 1,
'readline_merge_completions': 1,
'readline_omit__names': 0,
'readline_parse_and_bind': ['tab: complete',
'"\\C-l": possible-completions',
'set show-all-if-ambiguous on',
'"\\C-o": tab-insert',
'"\\M-i": " "',
'"\\M-o": "\\d\\d\\d\\d"',
'"\\M-I": "\\d\\d\\d\\d"',
'"\\C-r": reverse-search-history',
'"\\C-s": forward-search-history',
'"\\C-p": history-search-backward',
'"\\C-n": history-search-forward',
'"\\e[A": history-search-backward',
'"\\e[B": history-search-forward',
'"\\C-k": kill-line',
'"\\C-u": unix-line-discard'],
'readline_remove_delims': '-/~',
'screen_length': -2,
'separate_in': '\n',
'separate_out': '',
'separate_out2': '',
'system_header': 'IPython system call: ',
'system_verbose': 0,
'term_title': 1,
'tk': 0,
'upgrade': 0,
'wildcards_case_sensitive': 1,
'wthread': 0,
'wxversion': '0',
'xmode': 'Context'}
***************************************************************************
Crash traceback:
---------------------------------------------------------------------------
ImportError Python 2.5.2: C:\Python25\python.exe
Sun Mar 01 21:08:38 2009
A problem occured executing Python code. Here is the sequence of function
calls leading up to the error, with the most recent (innermost) call last.
C:\Python25\lib\site-packages\ipython-0.9.1.0001_s-py2.5.egg\IPython\FakeModule.pyc
in <module>()
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---> 21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
c:\python25\lib\site-packages\pywin32-210.0001_s-py2.5-win32.egg\pythoncom.py
in <module>()
1
2
----> 3
4
5
6
7
8
9
10
11
12
13
14 # Magic utility that "redirects" to pythoncomxx.dll
15 import pywintypes
16 pywintypes.__import_pywin32_system_module__("pythoncom", globals())
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
C:\Program Files\TortoiseHg\pywintypes25.dll in
__import_pywin32_system_module__(modname='pythoncom', globs={'__builtins__':
{'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError':
<type 'exceptions.AssertionError'>, 'AttributeError': <type
'exceptions.AttributeError'>, 'BaseException': <type
'exceptions.BaseException'>, 'DeprecationWarning': <type
'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>,
'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>,
'Exception': <type 'exceptions.Exception'>, 'False': False, ...}, '__doc__':
None, '__file__': None, '__name__': None, 'pywintypes': None})
83 # to import win32api etc would fail when Windows attempts
to
84 # locate the DLL.
85 # This is most likely to happen for "non-admin" installs,
where
86 # we can't put the files anywhere else on the global path.
87
88 # If there is a version in our Python directory, use that
89 if os.path.isfile(os.path.join(sys.prefix, filename)):
90 found = os.path.join(sys.prefix, filename)
91 if found is None:
92 # give up in disgust.
93 raise ImportError, \
94 "No system module '%s' (%s)" % (modname, filename)
95
96 # Python can load the module
97 mod = imp.load_module(modname, None, found,
---> 98 ('.dll', 'rb', imp.C_EXTENSION))
99 # and fill our namespace with it.
100 globs.update(mod.__dict__)
101
102 __import_pywin32_system_module__("pywintypes", globals())
103
104
105
106
107
108
109
110
111
112
113
ImportError: DLL load failed: The specified procedure could not be found.
***************************************************************************
History of session input:
*** Last line of input (may not be in above history):
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Tortoisehg-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss