Hi, There is seems to be a problem with cyclic module imports. This does not work
leha@naydenov:~/personal/s3cmd$ echo $PYTHONPATH . leha@naydenov:~/personal/s3cmd$ python Python 2.7.3 (default, Sep 26 2012, 21:51:14) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import S3.S3 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "S3/S3.py", line 21, in <module> from Utils import * File "S3/Utils.py", line 20, in <module> import Exceptions File "S3/Exceptions.py", line 6, in <module> from Utils import getTreeFromXml, unicodise, deunicodise ImportError: cannot import name getTreeFromXml while this one is ok >>> from S3.Exceptions import * >>> import S3.S3 >>> My understanding is that problem arises because Exceptions.py import Utils.py using from statement. This is not the only cyclic dependency in the code so you can not import modules in an arbitrary order. Which means that tools like sphinx fail. Am I missing something? Alexey ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ S3tools-general mailing list S3tools-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/s3tools-general