Hello, bitset is not a Python module. It is now in sage.data_structures and not anymore in sage.misc (since 6.3.beta4, see http://trac.sagemath.org/ticket/17196). The following works for me
sage: from sage.data_structures.bitset import FrozenBitset, Bitset sage: Bitset <type 'sage.data_structures.bitset.Bitset'> sage: FrozenBitset <type 'sage.data_structures.bitset.FrozenBitset'> What procedure did you follow to install the package? Vincent 2014-12-08 6:00 UTC+01:00, Michael Somos <ms...@georgetown.edu>: > I am using a VirtualBox Sage-6.2 and wanted to upgrade sage. > It failed trying to build conway_polynomials. > > [sage@sagevm ~]$ python -m bitset > /usr/bin/python: No module named bitset > [sage@sagevm ~]$ python -V > Python 2.6.6 > > > Thread model: posix > gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) > **************************************************** > Traceback (most recent call last): > File "./spkg-install", line 4, in <module> > from sage.all import save > File "/home/sage/sage-6.2/local/lib/python2.7/site-packages/sage/all.py", > line 87, in <module> > from sage.misc.all import * # takes a while > File > "/home/sage/sage-6.2/local/lib/python2.7/site-packages/sage/misc/all.py", > line 172, in <module> > from bitset import FrozenBitset, Bitset > ImportError: No module named bitset > > real 0m33.122s > user 0m2.768s > sys 0m17.005s > ************************************************************************ > Error installing package conway_polynomials-0.4.p0 > ************************************************************************ > Please email sage-devel (http://groups.google.com/group/sage-devel) > explaining the problem and including the relevant part of the log file > /home/sage/sage-6.2/logs/pkgs/conway_polynomials-0.4.p0.log > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.