[IronPython] 0.9.2 Module Search Path Error

Anthony Tarlano mailinglist.account at gmail.com
Thu Sep 29 19:23:55 CEST 2005


Ok, my bad..

Anthony

On 9/29/05, Monty Taylor <monty at inaugust.com> wrote:
>
> That doesn't work in CPython either...
>
> Python 2.4.1 (#1, May 27 2005, 18:02:40)
> [GCC 3.3.3 (cygwin special)] on cygwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from xml import *
> >>> dir()
> ['__builtins__', '__doc__', '__name__', 'dom', 'parsers', 'sax']
> >>> from sax import *
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> ImportError: No module named sax
>
> The import statement doesn't work on things in the namespace. It works on
> things in the module search path.
>
> Monty
>
>
> > IronPython 0.9.2 is not allowing module import from packages that were
> > previously imported. See below where I could not import from "Synthesis"
> > after importing it from "System.Speech" unless explicitly importing it
> > from
> > "System.Speech.Synthesis".
> >
> > Anthony
> >
> > IronPython 0.9.2 on .NET 2.0.50215.44
> > Copyright (c) Microsoft Corporation. All rights reserved.
> >>>> import sys
> >>>> sys.LoadAssemblyByName('Speech')
> >>>> from System.Speech import *
> >>>> dir()
> > ['AudioFormat', 'Recognition', 'SpeechManager', 'Synthesis', '_',
> > '__builtins__'
> > , '__doc__', '__name__', 'sys']
> >>>> from Synthesis import *
> > Traceback (most recent call last):
> > at <shell>
> > ImportError: No module named Synthesis
> >>>> dir(Synthesis)
> > ['BookmarkEventArgs', 'FilePrompt', 'InstalledVoice',
> 'PhonemeEventArgs',
> > 'Promp
> > t', 'PromptBreak', 'PromptBuilder', 'PromptEmphasis', 'PromptEventArgs',
> > 'Prompt
> > Rate', 'PromptStyle', 'PromptVolume', 'SayAs',
> 'SpeakCompletedEventArgs',
> > 'Speak
> > ProgressEventArgs', 'SpeechSynthesizer', 'SynthesisMediaType',
> > 'SynthesisTextFor
> > mat', 'SynthesizerEmphasis', 'SynthesizerState',
> > 'SynthesizerStateChangedEventAr
> > gs', 'TtsEngine', 'VisemeEventArgs', 'VoiceAge', 'VoiceChangeEventArgs',
> > 'VoiceG
> > ender', 'VoiceInfo']
> >>>> from Synthesis import *
> > Traceback (most recent call last):
> > at <shell>
> > ImportError: No module named Synthesis
> >>>> from System.Speech.Synthesis import *
> >>>>
> > _______________________________________________
> > users-ironpython.com <http://users-ironpython.com> mailing list
> > users-ironpython.com at lists.ironpython.com
> > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20050929/5ab597cb/attachment.html>


More information about the Ironpython-users mailing list