Error starting sage for Ubuntu 16.04-x86_64 binary package

153 views
Skip to first unread message

Eugene E.

unread,
Mar 29, 2016, 3:45:14 PM3/29/16
to sage-devel
Hello!

I would like to report that attempt to run Ubuntu 16.04-x86_64 binary package (on ArchLinux x86_64 system) causes error:

$ ./sage
  File "/home/eugene/.storage/Downloads/SageMath/relocate-once.py", line 12
    print "relocate-once.py -d <destination>"
                                            ^
SyntaxError: Missing parentheses in call to 'print'
┌────────────────────────────────────────────────────────────────────┐
│ SageMath Version 7.1, Release Date: 2016-03-20                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘

ERROR:  The Sage installation tree has moved

from /home/buildbot/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidmas391yaj2
  to /home/eugene/.storage/Downloads/SageMath

This is not supported, and Sage will not work. To install Sage from a
binary package:

1. Open the .tar.bz2 archive (or .dmg on OSX)

2. Move the SageMath folder/app to where you want it to be. You can
   also rename the directory now.

3. Start sage for the first time. This will then automatically patch
   paths in binaries.

After starting Sage for the first time you cannot change the
installation any more. To install Sage elsewhere, start over from the
binary package. Or recompile Sage from scratch in the new location
("make distclean && make")


I fixed print function in relocate-once.py but it did not help, then I ran relocate-once.py and it did help - now Sage appears to run well.

Dima Pasechnik

unread,
Mar 29, 2016, 5:29:56 PM3/29/16
to sage-devel
What version of python do you get if you run python? My guess it is version 3, and that is  the reason for 
print to fail.

So it should be possible to avoid this, I suppose. See

Eugene E.

unread,
Mar 30, 2016, 8:49:15 AM3/30/16
to sage-devel
The default version of Python in Arch Linux is 3, but I was under the impression that the Sage brings a python version of its own, no?

Jeroen Demeyer

unread,
Mar 30, 2016, 8:53:10 AM3/30/16
to sage-...@googlegroups.com
On 2016-03-30 14:49, Eugene E. wrote:
> The default version of Python in Arch Linux is 3, but I was under the
> impression that the Sage brings a python version of its own, no?

Maybe it doesn't use that to run relocate-once.py

Jan Groenewald

unread,
Mar 30, 2016, 8:57:38 AM3/30/16
to sage-devel
Hi


 root@sageppa01:~/sage-auto# head -1 relocate-once.py
#!/usr/bin/env python

Maybe that should be python2 instead, or us ethe sage python...

Regards,
Jan


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

Dima Pasechnik

unread,
Mar 30, 2016, 10:13:36 AM3/30/16
to sage-devel


On Wednesday, March 30, 2016 at 1:57:38 PM UTC+1, Jan Groenewald wrote:
Hi

On 30 March 2016 at 14:53, Jeroen Demeyer <jdem...@cage.ugent.be> wrote:
On 2016-03-30 14:49, Eugene E. wrote:
The default version of Python in Arch Linux is 3, but I was under the
impression that the Sage brings a python version of its own, no?
sage's one won't run, it's chicken vs egg dilemma here :-)

but apparently the only python2-ism was that print statement, and the binary-pkg is already fixed...
Reply all
Reply to author
Forward
0 new messages