dpkg: error processing package sagemath-upstream-binary (--configure):

1,014 views
Skip to first unread message

Denny Fuchs

unread,
May 28, 2015, 5:52:28 AM5/28/15
to sage-...@googlegroups.com
hi,

I wanted to upgrade the system (Linux Mint 17), but SageMath "sagemath-upstream-binary" fails:


=================
# aptitude upgrade
The following partially installed packages will be configured:
  sagemath-upstream-binary
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up sagemath-upstream-binary (6.7ppa4) ...
Running Sage once as root to set paths
┌────────────────────────────────────────────────────────────────────┐
│ SageMath Version 6.7, Release Date: 2015-05-17                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
Traceback (most recent call last):
  File "/usr/lib/sagemath/local/bin/sage-ipython", line 7, in <module>
    from sage.repl.interpreter import SageTerminalApp
  File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/__init__.py", line 3, in <module>
    from sage.repl.ipython_extension import load_ipython_extension
  File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/repl/ipython_extension.py", line 59, in <module>
    from IPython.core.magic import Magics, magics_class, line_magic
  File "/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/__init__.py", line 45, in <module>
    from .config.loader import Config
  File "/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/__init__.py", line 6, in <module>
    from .application import *
  File "/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/application.py", line 9, in <module>
    import json
  File "/usr/lib/sagemath/local/lib/python/json/__init__.py", line 108, in <module>
    from .decoder import JSONDecoder
  File "/usr/lib/sagemath/local/lib/python/json/decoder.py", line 5, in <module>
    import struct
  File "/usr/lib/sagemath/local/lib/python/struct.py", line 1, in <module>
    from _struct import *
ImportError: No module named _struct
dpkg: error processing package sagemath-upstream-binary (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 sagemath-upstream-binary
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up sagemath-upstream-binary (6.7ppa4) ...
Running Sage once as root to set paths
┌────────────────────────────────────────────────────────────────────┐
│ SageMath Version 6.7, Release Date: 2015-05-17                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
Traceback (most recent call last):
  File "/usr/lib/sagemath/local/bin/sage-ipython", line 7, in <module>
    from sage.repl.interpreter import SageTerminalApp
  File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/__init__.py", line 3, in <module>
    from sage.repl.ipython_extension import load_ipython_extension
  File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/repl/ipython_extension.py", line 59, in <module>
    from IPython.core.magic import Magics, magics_class, line_magic
  File "/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/__init__.py", line 45, in <module>
    from .config.loader import Config
  File "/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/__init__.py", line 6, in <module>
    from .application import *
  File "/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/application.py", line 9, in <module>
    import json
  File "/usr/lib/sagemath/local/lib/python/json/__init__.py", line 108, in <module>
    from .decoder import JSONDecoder
  File "/usr/lib/sagemath/local/lib/python/json/decoder.py", line 5, in <module>
    import struct
  File "/usr/lib/sagemath/local/lib/python/struct.py", line 1, in <module>
    from _struct import *
ImportError: No module named _struct
dpkg: error processing package sagemath-upstream-binary (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 sagemath-upstream-binary
==================================

any suggestions?

cu denny

Jan Groenewald

unread,
May 28, 2015, 6:09:39 AM5/28/15
to sage-devel
Hi Denny,

Have you built any local python versions? What is root's default python version? Or can you move your /usr/local or /root/.local out of the way and try

dpkg --configure -a

The main error is ImportError: No module named _struct, which a quick google shows other people have had unrelated to sage.
Is Linux Mint 17 based on Ubuntu 14.04? (Or later?)

Some people fixed this by reinstalling python and python-support or by removing python-idle

sudo apt-get --reinstall install python python-support
http://unix.stackexchange.com/questions/150106/importerror-no-module-named-struct-error-when-managing-packages

Does your system python give an error on this?

from _struct import *

Regards,
Jan




--
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+...@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.



--
  .~.
  /V\     Jan Groenewald
 /( )\    www.aims.ac.za
 ^^-^^ 

Denny Fuchs

unread,
May 28, 2015, 6:45:01 AM5/28/15
to sage-...@googlegroups.com

hi Jan,

Yes, Mint is based on Ubuntu and I found the same website. I tried the same commands, but it changed nothing.

=============
# python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from _struct import *
>>>
=============

I have only Python packages installed, via Apt:

ii  python                                                2.7.5-5ubuntu3                                      amd64        interactive high-level object-oriented language (default version)
ii  python3                                               3.4.0-0ubuntu2                                      amd64        interactive high-level object-oriented language (default python3 version)

for the moment, I remove the package completely.


cu denny

Jan Groenewald

unread,
May 28, 2015, 8:33:13 AM5/28/15
to sage-devel
Hi Denny,

I'm happy to assist with further debugging.

You can probably still find the deb in /var/cache/apt/archives/ and unpack it elsewhere with, say, mkdir /tmp/sage; dpkg -x sagemath-upstream-binary_6.7ppa4_amd64.deb /tmp/sage/
and cd into that to try run /tmp/sage/usr/bin/sage to find out more.

Regards,
Jan




--
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+...@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Adrian Lam

unread,
May 28, 2015, 10:45:10 AM5/28/15
to sage-...@googlegroups.com
Jan Groenewald <jan <at> aims.ac.za> writes:
>
> Hi Denny,
> I'm happy to assist with further debugging.
> You can probably still find the deb in /var/cache/apt/archives/ and unpack
it elsewhere with, say, mkdir /tmp/sage; dpkg -x
sagemath-upstream-binary_6.7ppa4_amd64.deb /tmp/sage/
> and cd into that to try run /tmp/sage/usr/bin/sage to find out more.
> Regards,
> Jan
>

Reproduced on Ubuntu 14.04.2. The same thing happens for the "unpack
elsewhere" method.

Furthermore, it seems that all built-in Python modules are not imported
correctly.

$ sage -n
Traceback (most recent call last):
File "/usr/lib/sagemath/local/bin/sage-notebook", line 7, in <module>
import argparse
File "/usr/lib/sagemath/local/lib/python/argparse.py", line 85, in <module>
import collections as _collections
File "/usr/lib/sagemath/local/lib/python/collections.py", line 8, in <module>
from _collections import deque, defaultdict
ImportError: No module named _collections
$
$
$ sage -p
Traceback (most recent call last):
File "/usr/lib/sagemath/local/bin/sage-run", line 4, in <module>
from subprocess import call
File "/usr/lib/sagemath/local/lib/python/subprocess.py", line 427, in <module>
import select
ImportError: No module named select
$
$ sage -v
SageMath Version 6.7, Release Date: 2015-05-17
$

All the modules that fail to be imported (_struct, _collections and select)
are built-in modules.

Jan Groenewald

unread,
May 28, 2015, 10:55:53 AM5/28/15
to sage-devel
Hi

Can you run

find /usr/lib/sagemath/ -name _collections*

Regards,
Jan

--
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+...@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Adrian Lam

unread,
May 28, 2015, 11:00:26 AM5/28/15
to sage-...@googlegroups.com
Jan Groenewald <jan <at> aims.ac.za> writes:

>
> Hi
> Can you run
> find /usr/lib/sagemath/ -name _collections*
> Regards,
> Jan
>

$ find /usr/lib/sagemath/ -name _collections*
/usr/lib/sagemath/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg
/pip/_vendor/requests/packages/urllib3/_collections.py


Jan Groenewald

unread,
May 28, 2015, 11:37:03 AM5/28/15
to sage-devel

Hi

I get
2 root@muizenberg:/usr/lib/sagemath#find . -name _collections*
./local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/_collections.py
./local/lib/python2.7/lib-dynload/_collections.so
0 root@muizenberg:/usr/lib/sagemath#

I'm not sure why you don't have that. I'll have  new deb by the latest Monday, maybe before.

I think I currently install this and am missing something:
0 jan@snapperkob:~/src/sagemath-upstream-binary/sagemath-upstream-binary/debian$cat install.in
# to instruct dh_install
@ARCH@/build/install /usr/lib/sagemath/build
@ARCH@/local /usr/lib/sagemath
@ARCH@/sage /usr/lib/sagemath
@ARCH@/src/doc/output/doctrees/en /usr/lib/sagemath/src/doc/output/doctrees
@ARCH@/src/doc/output/doctrees/fr /usr/lib/sagemath/src/doc/output/doctrees
@ARCH@/src/doc/output/html/en /usr/lib/sagemath/src/doc/output/html
@ARCH@/src/doc/output/html/fr /usr/lib/sagemath/src/doc/output/html
@ARCH@/src/doc/output/inventory/en /usr/lib/sagemath/src/doc/output/inventory
@ARCH@/src/doc/output/inventory/fr /usr/lib/sagemath/src/doc/output/inventory
@ARCH@/COPYING.txt  /usr/lib/sagemath
@ARCH@/README.txt /usr/lib/sagemath
@ARCH@/VERSION.txt /usr/lib/sagemath
debian/sagemath.desktop /usr/share/applications

Regards,
Jan

--
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+...@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Jan Groenewald

unread,
May 28, 2015, 11:46:47 AM5/28/15
to sage-devel
I get the same if I apt-get upgrade instead of dpkg -i sagemath*deb (which I did to test). You might in the meantime fix it by

sudo dpkg -i /var/cache/apt/archives/sagemath*6.7ppa4*deb

Regards,
Jan

Jan Groenewald

unread,
May 28, 2015, 11:49:29 AM5/28/15
to sage-devel
No, it doesn't fix it, but it helps me narrow down the problem.

Will see how quickly I can fix it.

Regards,
Jan

rou...@wfu.edu

unread,
May 28, 2015, 7:05:58 PM5/28/15
to sage-...@googlegroups.com
Greetings-

I've had the same issue installing sage 6.7 from the Ubuntu PPA on two different computers - one for which sage was previously installed, and the other where sage was being installed for the first time. Both computers are running Ubuntu 14.04. (Incidentally, things worked fine yesterday with version 6.6.)

Best,

Jeremy Rouse

Erick Matsen

unread,
May 28, 2015, 7:05:58 PM5/28/15
to sage-...@googlegroups.com
I wasn't especially thoughtful about this, but a simple copy paste of 

sudo dpkg -i /var/cache/apt/archives/sagemath*6.7ppa4*deb

did not lead to happiness for me (running Xubuntu Trusty): 

 mus » sudo dpkg -i /var/cache/apt/archives/sagemath*6.7ppa4*deb                                                                           [211/692]
(Reading database ... 781170 files and directories currently installed.)
Preparing to unpack .../sagemath-upstream-binary_6.7ppa4_amd64.deb ...
Unpacking sagemath-upstream-binary (6.7ppa4) over (6.7ppa4) ...
Setting up sagemath-upstream-binary (6.7ppa4) ...
Running Sage once as root to set paths
┌────────────────────────────────────────────────────────────────────┐
│ SageMath Version 6.7, Release Date: 2015-05-17                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
The Sage installation tree has moved
from /opt/sagemath_tmonteil-ubuntu-trusty-64/sage-6.7
  to /usr/lib/sagemath
Updating various hardcoded paths...
(Please wait at most a few minutes.)
DO NOT INTERRUPT THIS.
Done updating paths.
Traceback (most recent call last):
  File "/usr/lib/sagemath/local/bin/sage-ipython", line 7, in <module>
    from sage.repl.interpreter import SageTerminalApp
  File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/__init__.py", line 3, in <module>
    from sage.repl.ipython_extension import load_ipython_extension
  File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/repl/ipython_extension.py", line 59, in <module>
    from IPython.core.magic import Magics, magics_class, line_magic
  File "/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/__init__.py", line 45, in <module>
    from .config.loader import Config
  File "/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/__init__.py", line 6, in <module>
    from .application import *
  File "/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/application.py", line 9, in <module>
    import json
  File "/usr/lib/sagemath/local/lib/python/json/__init__.py", line 108, in <module>
    from .decoder import JSONDecoder
  File "/usr/lib/sagemath/local/lib/python/json/decoder.py", line 5, in <module>
    import struct
  File "/usr/lib/sagemath/local/lib/python/struct.py", line 1, in <module>
    from _struct import *
ImportError: No module named _struct
dpkg: error processing package sagemath-upstream-binary (--install):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Errors were encountered while processing:
 sagemath-upstream-binary
mus » 
Message has been deleted
Message has been deleted

Pol del Aguila Pla

unread,
May 29, 2015, 8:17:01 AM5/29/15
to sage-...@googlegroups.com
Hi,

Same problem on Linux Mint 17 with the new version in the ppa (sagemath-upstream-binary_6.7ppa6_amd64.deb). As in the other cases, Sage was working perfectly fine yesterday. Thank you all,

(Reading database ... 383085 files and directories currently installed.)
Preparing to unpack .../sagemath-upstream-binary_6.7ppa6_amd64.deb ...
Unpacking sagemath-upstream-binary (6.7ppa6) over (6.7ppa5) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Setting up sagemath-upstream-binary (6.7ppa6) ...
Running Sage once as root to set paths
┌────────────────────────────────────────────────────────────────────┐
│ SageMath Version 6.7, Release Date: 2015-05-17                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
The Sage installation tree has moved
from /opt/sagemath_tmonteil-ubuntu-trusty-64/sage-6.7
  to /usr/lib/sagemath
Updating various hardcoded paths...
(Please wait at most a few minutes.)
DO NOT INTERRUPT THIS.
Done updating paths.
Setting up sagemath-upstream-binary (6.7ppa6) ...
Best,

Pol

El divendres, 29 maig de 2015 1:05:58 UTC+2, rou...@wfu.edu va escriure:

Jan Groenewald

unread,
May 29, 2015, 9:50:02 AM5/29/15
to sage-devel
Hi

I'm working on this but compressing, building debs, and uploading takes quite long. Any feedback on any new version working or not working is useful.

If I don't have it working by end of weekend I'll probably revert to 6.6 with a version number like 6.7ppa14revertsage6.6 in the PPA and make a new dev PPA.

Apologies for the inconvenience.

Regards,
Jan

--
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+...@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Adrian Lam

unread,
May 29, 2015, 11:26:21 AM5/29/15
to sage-...@googlegroups.com
On Friday, May 29, 2015 at 2:50:02 PM UTC+1, Jan Groenewald wrote:
Hi

I'm working on this but compressing, building debs, and uploading takes quite long. Any feedback on any new version working or not working is useful.

If I don't have it working by end of weekend I'll probably revert to 6.6 with a version number like 6.7ppa14revertsage6.6 in the PPA and make a new dev PPA.

Apologies for the inconvenience.

Regards,
Jan


 
Ubuntu 14.04.2, tried upgrading to 6.7ppa6 (from 6.7ppa4), still not working.

By the way, since no one else has mentioned, upon FIRST attempt to upgrade, the log actually has 3 more lines:

Setting up sagemath-upstream-binary (6.7ppa6) ...
Running Sage once as root to set paths
┌────────────────────────────────────────────────────────────────────┐
SageMath Version 6.7, Release Date: 2015-05-17                    
Type "notebook()" for the browser-based notebook interface.        
Type "help()" for help.                                            
└────────────────────────────────────────────────────────────────────┘
The Sage installation tree has moved
from /opt/sagemath_tmonteil-ubuntu-trusty-64/sage-6.7
  to
/usr/lib/sagemath
Updating various hardcoded paths...
(Please wait at most a few minutes.)
DO NOT INTERRUPT THIS
.
Done updating paths.
Traceback (most recent call last):
 
File "/usr/lib/sagemath/local/bin/sage-ipython", line 7, in <module>
   
from sage.repl.interpreter import SageTerminalApp


It has the "The Sage installation tree has moved..." line. Don't know whether it'll be useful though.

Thanks.

Jan Groenewald

unread,
May 29, 2015, 11:42:26 AM5/29/15
to sage-devel
The sage installation tree has moved is *probably* unrelated. It always says that on upgrade. I suspect two possibilities
1) it is from Thierry's binary not a buildslave binary
2) I changed the dpkg-source format from quilt to native to solve (1)'s impact on dpkg, and at the same time removed .git (had to) and then much more unneeded files.

6.7ppa7 is uploading with all the build and config and other folders back in the package (but not all the languages in docs). Should be there soon. I can still try going back to 6.6 to test that. Since the PPA is now broken:(, I might as well upload my tests there.

You can download and dpkg -i that for a working installation (I think)

Regards,
Jan

--
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+...@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Dow Drake

unread,
May 29, 2015, 8:34:58 PM5/29/15
to sage-...@googlegroups.com
Thanks Jan!  I was having the same issue with 6.7.  The 6.6 deb you posted installed fine.

Best,
Dow Drake

Jan Groenewald

unread,
May 30, 2015, 6:57:33 AM5/30/15
to sage-devel
Hi

Unfortunately 6.7ppa8revert6.6 has the same problem :( You should be able to do

sudo apt-get install sagemath-upstream-binary=6.6ppa1
sudo apt-mark hold sagemath-upstream-binary


to have a working system while the PPA is broken. Once it is fixed, I will let you know, you can,

sudo apt-mark hold sagemath-upstream-binary

I'll be looking for apt/dpkg/ppa help from colleagues over the next week to try and get a fixed version, any version, in the PPA, to prevent breaking further people's installations. To prevent this in future, we'll probably start a separate development PPA. Apologies for the inconvenience. There will be maybe only one more test this weekend; 6.7ppa9revert6.6 where I try a dpkg quilt format rather than native.

Volker, I would very much like to get the buildslave binaries from snapperkob to test. Will they be uploaded to the sagemath download mirror (even though Thierry's binaries are there already)?

Regards,
Jan



Jan Groenewald

unread,
May 30, 2015, 9:57:34 AM5/30/15
to sage-devel
Where of course the command to unhold in future is "unhold", not "hold".

Regards,
Jan

Erick Matsen

unread,
May 30, 2015, 9:58:11 AM5/30/15
to sage-...@googlegroups.com
For what it's worth, I did not have success on Xubuntu 14.04 with 

sudo add-apt-repository ppa:aims/sagemath
sudo apt-get update
sudo apt-get install sagemath-upstream-binary=6.6ppa1

It reported that the package version was not found. 

But I did succeed with downloading the deb from the link above and calling

sudo dpkg -i sagemath-upstream-binary_6.6ppa1_amd64.deb

Frederic Durodie

unread,
May 30, 2015, 10:10:46 AM5/30/15
to sage-...@googlegroups.com
 Hi,

Obviously confronted with the same issue since an update last Thursday, I tried to revert as you posted above:

sudo apt-get install sagemath-upstream-binary=6.6ppa1
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Version ‘6.6ppa1’ for ‘sagemath-upstream-binary’ was not found

Could you tell me how to install the previous version on Ubuntu 14.04 ?
Thanks

Jan Groenewald

unread,
May 30, 2015, 10:15:05 AM5/30/15
to sage-devel
sudo apt-mark hold sagemath-upstream-binary

There is a dpkg alternative to hold if this apt-mark hold fails.

Regards,
Jan

--
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+...@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Frederic Durodie

unread,
May 30, 2015, 10:16:44 AM5/30/15
to sage-...@googlegroups.com
sorry, just saw your post above ...

Rob Beezer

unread,
Jun 1, 2015, 1:39:14 PM6/1/15
to sage-...@googlegroups.com
Not sure of this will help, but I did a fresh build of 6.8.beta2 on SageMathCloud, passed long tests, and changed the directory name.  Usually this is OK and the paths all get adjusted but now I get:

~/sage-dev$ ./sage
find
: `/projects/53b77207-8614-4086-a032-432af4b4cdbd/sage-dev/local/var/lib/sage/installed': No such file or directo
ry
┌────────────────────────────────────────────────────────────────────┐
│ SageMath Version 6.8.beta2, Release Date: 2015-05-29               │

│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Warning: this is a prerelease version, and it may be unstable.     ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

The Sage installation tree has moved
from /projects/53b77207-8614-4086-a032-432af4b4cdbd/sage-dev-images/sage-6.8.beta2
  to /projects/53b77207-8614-4086-a032-432af4b4cdbd/sage-dev

Updating various hardcoded paths...
(Please wait at most a few minutes.)
DO NOT INTERRUPT THIS.
Done updating paths.
Traceback (most recent call last):
  File "/projects/53b77207-8614-4086-a032-432af4b4cdbd/sage-dev/local/bin/sage-ipython", line 7, in <module>
    from sage.repl.interpreter import SageTerminalApp
  File "/projects/53b77207-8614-4086-a032-432af4b4cdbd/sage-dev/local/lib/python2.7/site-packages/sage/__init__.py",

line 3, in <module>
    from sage.repl.ipython_extension import load_ipython_extension
ImportError: No module named repl.ipython_extension

Rob

Chris Caldwell

unread,
Jun 1, 2015, 1:55:29 PM6/1/15
to sage-...@googlegroups.com
 Should the middle line be

    sudo dpkg -i sagemath-upstream-binary_6.6ppa1_amd64.deb

How will I know when unhold?

Jan Groenewald

unread,
Jun 1, 2015, 2:00:36 PM6/1/15
to sage-devel
Yes, thank you for the correction.

We will announce here when to unhold and are working on it constantly.

Regards,
Jan

--
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+...@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Thierry

unread,
Jun 2, 2015, 6:08:36 AM6/2/15
to sage-...@googlegroups.com
Hi,

On Fri, May 29, 2015 at 05:42:03PM +0200, Jan Groenewald wrote:
> The sage installation tree has moved is *probably* unrelated. It always
> says that on upgrade. I suspect two possibilities
> 1) it is from Thierry's binary not a buildslave binary
> 2) I changed the dpkg-source format from quilt to native to solve (1)'s
> impact on dpkg, and at the same time removed .git (had to) and then much
> more unneeded files.

If there is something i can do to help finding the issue, please do not
hesitate to ask. Note that the binaries i am producing are made with
SAGE_FAT_BINARY='yes' SAGE_INSTALL_GCC='yes' in particular, libgfortran is
not required since fortran is built as a part of Sage. Ptestlong did not
report any reproducible error and i can use the produced
Debian/jessie/32bit binary in Sage Debian Live without problem.

Ciao,
Thierry

Jan Groenewald

unread,
Jun 2, 2015, 6:23:45 AM6/2/15
to sage-devel
Hi Thierry,

The binaries have not done anything wrong (except perhaps confuse dpkg-source because it comes from a different location). dpkg-source is the real culprit.

Regards,
Jan

Jan Groenewald

unread,
Jun 3, 2015, 10:02:19 AM6/3/15
to sage-devel
Hi

There is a new working deb on the Sage PPA (sage 6.6, our version 6.7ppa10revert6.6.aims6-2).

We also have a separate sage-dev repository: https://launchpad.net/~aims/+archive/ubuntu/sagemath-dev

If you enable both PPAs sagemath and sagemath-dev, you will get the new versions faster, and still be able to go
apt-get install sagemath-upstream-binary=6.6. (for example) as the stable PPA will still be serving 6.6 for a while, especially if there is a broken version in sagemath-dev.
It'd be great to have a few people out there running both to help us test. There will not be any extra space usage, just an additional sources.list.d/aims-sagemath-dev.list

You can now go ahead and

sudo apt-mark unhold sagemath-upstream binary

Debian Details:

The package was fixed by reverting dpkg-source format from quilt to native to get rid of all the version control errors, and then from native to 1.0 to prevent removal of all the shared object files (which caused the cannot import from _struct errors). In the next few days the package (first on sagemath-dev) will upgrade to 6.7, 64bit and 32bit, and halve in size. They will start to exclude most things outside of local/, except EN and FR docs, and we're also removing the built-in git.

Regards,
Jan

Jan Groenewald

unread,
Jun 9, 2015, 8:38:23 AM6/9/15
to sage-devel
Hi

There is a 6.7 in the dev PPA, testers welcome. We've already deployed this on campus, but is a homogeneous infrastructure.

sudo apt-add-repository -y ppa:aims/sagemath-dev
sudo apt-get update
sudo apt-get install sagemath-upstream-binary
sage -notebook

To revert, in case of problems:

sudo mv /etc/apt/sources.list.d/aims-sagemath-dev-trusty.list{,.disabled}
sudo apt-get install --reinstall sagemath-upstream-binary

Regards,
Jan


Pol del Aguila Pla

unread,
Jun 9, 2015, 8:49:05 AM6/9/15
to sage-...@googlegroups.com
Hi,

Working perfectly in Linux Mint 17, co-existing with IPython, IJulia and friends without any issues. I updated from the version in the main ppa instead of installing, though. 

Thank you so much,

BR,
Pol



Pol del Aguila Pla
Kungshamra 82, Lgh 1203
SE-170 70 Solna, Stockholms län, Sweden
Phone: +46 7 294 293 02, Work Phone: +46 8 790 78 18
pols...@gmail.com

You received this message because you are subscribed to a topic in the Google Groups "sage-devel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-devel/ckbG4i-Mypw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-devel+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages