AttributeError on Oneiric Ocelot

asked 2011-11-10 04:26:03 -0600

OA gravatar image

updated 2011-11-30 08:39:02 -0600

kcrisman gravatar image

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.

edit retag flag offensive close merge delete

Comments

Can you give a complete Sage session? I feel like you must have done something else. I do not get this error.

kcrisman gravatar imagekcrisman ( 2011-11-10 04:48:05 -0600 )edit
1

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.]

DSM gravatar imageDSM ( 2011-11-10 04:52:40 -0600 )edit

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

OA gravatar imageOA ( 2011-11-10 08:08:40 -0600 )edit

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 ###############################################################################

OA gravatar imageOA ( 2011-11-10 08:13:29 -0600 )edit

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.

OA gravatar imageOA ( 2011-11-10 08:16:04 -0600 )edit