[IronPython] ImportError: No module named

Can Gencer cgencer at gmail.com
Thu Apr 8 22:56:31 CEST 2010


On Thu, Apr 8, 2010 at 10:12 PM, Richard Steventon <steventon at gmail.com> wrote:
> Hi all,
>
> I am moving some code from Python to IronPython (latest) so I can
> access Excel XLSX files.  The code is a loose bunch of files in a
> single directory.
>
> ie:
>   main.ipy
>   accessFunctions.ipy
>
> Within main.ipy, I do:
>   from accessFunctions import *
> Which gives:
>   ImportError: No module named accessFunctions
>
> Checked the path.  That's ok.  So I googled, and found Ben Hall's
> blog: http://blog.benhall.me.uk/2008/05/ironpython-classes-within-separate.html
> Which shows that it should work....
>
> Any ideas ?
>

I think you need to use the .py extension, not .ipy

Can



More information about the Ironpython-users mailing list