circular imports

18 views
Skip to first unread message

Volker Braun

unread,
Oct 5, 2013, 11:41:20 AM10/5/13
to sage-m...@googlegroups.com
There seem to be issues with circular imports. See http://trac.sagemath.org/15130 for details. Here is an example:

┌────────────────────────────────────────────────────────────────────┐
│ Sage Version 5.12.rc1, Release Date: 2013-10-04                    │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Warning: this is a prerelease version, and it may be unstable.     ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
sage: from sage.matroids.basis_exchange_matroid import BasisExchangeMatroid
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-1-2e7708db611e> in <module>()
----> 1 from sage.matroids.basis_exchange_matroid import BasisExchangeMatroid

/home/vbraun/Code/sage.git/basis_exchange_matroid.pyx in init sage.matroids.basis_exchange_matroid (sage/matroids/basis_exchange_matroid.c:20420)()

/home/vbraun/Code/sage.git/basis_exchange_matroid.pxd in init sage.matroids.matroid (sage/matroids/matroid.c:33184)()

AttributeError: 'module' object has no attribute 'BasisExchangeMatroid'




Reply all
Reply to author
Forward
0 new messages