If I put the Sympy source repository folder into my PYTHONPATH environment
variable, I can import sympy and all of its components successfully.
If I instead have an empty PYTHONPATH environment variable, then run `sudo
python setup.py install`, which by default installs to `/usr/local', and
then try to import sympy, I get the following import errors:
luke@ThinkPad-W510:~$ echo $PYTHONPATH
luke@ThinkPad-W510:~$ python
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from sympy import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/sympy/__init__.py", line 30,
in <module>
from sympy.core import *
File "/usr/local/lib/python2.7/dist-packages/sympy/core/__init__.py", line
4, in <module>
from sympify import sympify
File "/usr/local/lib/python2.7/dist-packages/sympy/core/sympify.py", line
5, in <module>
from core import all_classes as sympy_classes
File "/usr/local/lib/python2.7/dist-packages/sympy/core/core.py", line 3,
in <module>
from assumptions import AssumeMeths, make__get_assumption
File "/usr/local/lib/python2.7/dist-packages/sympy/core/assumptions.py",
line 3, in <module>
from sympy.core.core import BasicMeta
ImportError: cannot import name BasicMeta
Am I doing something wrong, or is this a bug?
~Luke
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy?hl=en.