AttributeError on Oneiric Ocelot
Hello,
I get the message "AttributeError: 'module' object has no attribute 'core'" when i try to define a vector using "vector" command like v = vector([1,2]). Does anyone knows what causes this and how can i fix it?
Edit: this is on Ubuntu 11.10 with an older version binary.
Can you give a complete Sage session? I feel like you must have done something else. I do not get this error.
Two questions: (1) what version of Sage are you running?, and (2) could you start Sage up from the command line, type "vector([1,2])" as the first command, and post the full traceback? [The reason for the latter is because one possibility is that a too-wide import during a session replaced something unexpectedly.]
Hi. here is what i get when i start a fresh session :---------------------------------------------------------------------- | Sage Version 4.7.2, Release Date: 2011-10-29 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- sage: v=vector([1,2]) --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /home/Desktop/sage-4.7.2-linux-32bit-ubuntu_10.04_lts-i686-Linux/<ipython console=""> in <module>() /home/Desktop/sage-4.7.2-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/site-packages/sage/modules/free_module_element.so in sage.modules.free_module_eleme
so in sage.modules.free_module_element.vector (sage/modules/free_module_element.c:3719)()/home/Desktop/sage-4.7.2-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/site-packages/numpy/__init__.pyc in <module>() 134 return loader(*packages, **options) 135 --> 136 import add_newdocs 137 __all__ = ['add_newdocs'] 138 /home/Desktop/sage-4.7.2-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/site-packages/numpy/add_newdocs.py in <module>() 7 # core/fromnumeric.py, core/defmatrix.py up-to-date. 8 ----> 9 from numpy.lib import add_newdoc 10 11 ###############################################################################
and it keeps going like that. I think it is because i did not have all the packages. I am downloading the packages now and i will see how it works. Thanks a lot for the responses.