[IronPython] Importing embedded .py files
fuzzyman at voidspace.org.uk
Tue Jul 4 10:03:29 CEST 2006
>On 7/4/06, Michael Foord <fuzzyman at voidspace.org.uk> wrote:
>>>This is working except two of the embedded .py files import each
>>>other, so no matter which one I place first, it errors out.
>>Try creating the empty modules and putting them in sys.modules first. I
>>think this is basically what the import machinery does in cases of
>Yes, that worked.
>Now the only error I get from my project is still the
>"Unable to translate bytes  at index 0 from specified code page to Unicode"
>coming from the array.py file I am using
>It sounds like some incoming arraytype is set incorrectly but I doubt
>it because I haven't changed much of the code in the ConceptNet
>modules. There must be something different between that array.py file
>and Python's builtin array but I have no idea since I really can't
>find the actual sourcecode for Python's array module.
>Also, I forget if I had it working with this new array.py file or my
>old array.py file.
Hmmm... well here is the source code for the Python array module. I'm
not sure it will help much though.
Perhaps you could contact the author of the PyPy version of array and
see if he can help. It looks like it's this guy :
All the best,
>Anyway, I appreciate the help.
More information about the Ironpython-users