Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ok, I've found a solution, but I have no idea where that problematic sympy-0.7.3-py2.7.egg package came from:

$ python2
Python 2.7.16 (default, Mar 11 2019, 18:59:25) 
[GCC 8.2.1 20181127] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os.path
>>> import sympy
>>> print(os.path.abspath(sympy.__file__))
/usr/lib/python2.7/site-packages/sympy-0.7.3-py2.7.egg/sympy/__init__.pyc
>>> 

$ pacman -Qo /usr/lib/python2.7/site-packages/sympy-0.7.3-py2.7.egg/sympy/__init__.pyc
error: No package owns /usr/lib/python2.7/site-packages/sympy-0.7.3-py2.7.egg/sympy/__init__.pyc

$ sudo mv /usr/lib/python2.7/site-packages/sympy-0.7.3-py2.7.egg/ ~/tmp

$ python2
Python 2.7.16 (default, Mar 11 2019, 18:59:25) 
[GCC 8.2.1 20181127] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sympy
>>> from sympy.logic.boolalg import BooleanTrue, BooleanFalse
>>> BooleanTrue
<class 'sympy.logic.boolalg.BooleanTrue'>
>>>