Just a word of warning to those using the trunk: SVN doesn't clean up compiled files.

The reason this matters concerns a change in the trunk (recently? not sure how long it's been since I updated). It appears that fipy.tools.inline got changed from a package to a module. When I updated, the old inline.py and __init__.py got removed from fipy/tools/ inline/ and a new inline.py file got added to fipy/tools/, as expected.

However, the fipy/tools/inline/ directory remained, along with the old compiled files inline.pyc and __init__.pyc (note: .pyc not .py). So now there's a module:

    fipy/tools/inline.py

and a package

    fipy/tools/inline/__init__.pyc

with the same name. Thus, importing fipy.tools.inline is ambiguous. In this case, the old files were used and my code was failing all over the place.

Deleting the fipy/tools/inline/ directory did the trick. I just thought people would be interested.

Cheers
-Tony

Reply via email to