One more datapoint : I still can install an "old-style" .spkg :

charpent@SAP5057241:/usr/local/sage-6.7$ ./sage -i ~/Téléchargements/
sage_mode-0.14.spkg 
sage_mode-0.14
====================================================
Extracting package /home/charpent/Téléchargements/sage_mode-0.14.spkg
-rw-r--r-- 1 charpent charpent 346348 Apr 16 13:04 /home/charpent/Télé
chargements/sage_mode-0.14.spkg
Finished extraction
****************************************************
Host system:
Linux SAP5057241 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3 (2015-04-23) 
x86_64 GNU/Linux
****************************************************
C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.2-16' --
with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs 
--enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr 
--program-suffix=-4.9 --enable-shared --enable-linker-build-id 
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix 
--with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls 
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug 
--enable-libstdcxx-time=yes --enable-gnu-unique-object 
--disable-vtable-verify --enable-plugin --with-system-zlib 
--disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo 
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre 
--enable-java-home 
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar 
--enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64 
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic 
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu 
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.9.2 (Debian 4.9.2-16) 
****************************************************
running build
running build_py
creating build
creating build/lib
copying xreload.py -> build/lib
copying sage_emacs.py -> build/lib
running install
running build
running build_py
running install_lib
copying build/lib/sage_emacs.py -> /usr/local/sage-6.7/local/lib/python2.7/
site-packages
copying build/lib/xreload.py -> /usr/local/sage-6.7/local/lib/python2.7/site
-packages
byte-compiling /usr/local/sage-6.7/local/lib/python2.7/site-packages/
sage_emacs.py to sage_emacs.pyc
byte-compiling /usr/local/sage-6.7/local/lib/python2.7/site-packages/xreload
.py to xreload.pyc
running install_egg_info
Writing /usr/local/sage-6.7/local/lib/python2.7/site-packages/sage_mode-0.1-
py2.7.egg-info
Byte compiling sage-mode with 'emacs'
Set the EMACS environment variable to compile with a different emacs.
Loading 00debian-vars...
Loading /etc/emacs/site-start.d/50auctex.el (source)...
Loading /usr/share/emacs/site-lisp/auctex.el (source)...
Loading /usr/share/emacs/site-lisp/preview-latex.el (source)...
Loading /etc/emacs/site-start.d/50autoconf.el (source)...
Loading /etc/emacs/site-start.d/50devhelp.el (source)...
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...
Loading /etc/emacs/site-start.d/50ess.el (source)...
Loading /etc/emacs/site-start.d/50gcl.el (source)...
Loading /etc/emacs/site-start.d/50geiser.el (source)...
Loading /etc/emacs/site-start.d/50git-core.el (source)...
Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...
Loading cjk-enc...
Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)...
Loading /etc/emacs/site-start.d/50maxima-emacs.el (source)...
Loading /etc/emacs/site-start.d/50noweb.el (source)...
Loading /etc/emacs/site-start.d/50python-docutils.el (source)...
sage.el: `flet' is an obsolete macro (as of 24.3); use either `cl-flet' or 
`cl-letf'.
Loading /usr/local/sage-6.7/local/share/emacs/site-lisp/sage-mode/sage-load.el 
(source)...
Wrote /usr/local/sage-6.7/local/share/emacs/site-lisp/sage-mode/cython-mode.
elc

In sage-blocks-default-keybindings:
../../../../../share/emacs/site-lisp/sage-mode/sage-blocks.el:106:15:Warning
:
    reference to free variable `sage-mode-map'
../../../../../share/emacs/site-lisp/sage-mode/sage-blocks.el:109:15:Warning:
    reference to free variable `inferior-sage-mode-map'
Wrote 
/usr/local/sage-6.7/local/share/emacs/site-lisp/sage-mode/sage-blocks.elc
sage-mode.el: `flet' is an obsolete macro (as of 24.3); use either `cl-flet' 
or `cl-letf'.
Wrote 
/usr/local/sage-6.7/local/share/emacs/site-lisp/sage-mode/sage-build.elc
Compiler-macro error for python-info-ppss-context: (void-function 
python-syntax--context-compiler-macro)

In end of data:
../../../../../share/emacs/site-lisp/sage-mode/sage-compat.el:114:1:Warning:
    the function `python-nav-backward-sentence' is not known to be defined.
Wrote /usr/local/sage-6.7/local/share/emacs/site-lisp/sage-mode/sage-compat.
elc

In end of data:
../../../../../share/emacs/site-lisp/sage-mode/sage-flymake.el:14:1:Warning:
    the function `flymake-init-create-temp-buffer-copy' might not be defined
    at runtime.
Wrote 
/usr/local/sage-6.7/local/share/emacs/site-lisp/sage-mode/sage-flymake.elc

In sage-org-latex-setup:
../../../../../share/emacs/site-lisp/sage-mode/sage-latex.el:84:28:Warning:
    reference to free variable `org-latex-to-pdf-process'
../../../../../share/emacs/site-lisp/sage-mode/sage-latex.el:112:14:Warning:
    reference to free variable `mmm-global-mode'

In end of data:
../../../../../share/emacs/site-lisp/sage-mode/sage-latex.el:118:1:Warning:
    the function `TeX-run-compile' might not be defined at runtime.
../../../../../share/emacs/site-lisp/sage-mode/sage-latex.el:118:1:Warning:
    the following functions are not known to be defined: mmm-add-classes,
    mmm-add-mode-ext-class
Wrote 
/usr/local/sage-6.7/local/share/emacs/site-lisp/sage-mode/sage-latex.elc

In sage-apropos-mode:
../../../../../share/emacs/site-lisp/sage-mode/sage-mode.el:334:37:Warning:
    reference to free variable `apropos-label-face'

In python-proc:
../../../../../share/emacs/site-lisp/sage-mode/sage-mode.el:547:31:Warning:
    `python-proc' is an obsolete function (as of 24.3); use
    `python-shell-internal-get-or-create-process' instead.
../../../../../share/emacs/site-lisp/sage-mode/sage-mode.el:551:24:Warning:
    `python-proc' is an obsolete function (as of 24.3); use
    `python-shell-internal-get-or-create-process' instead.

In python-shell-internal-get-or-create-process:
../../../../../share/emacs/site-lisp/sage-mode/sage-mode.el:557:8:Warning:
    `python-proc' is an obsolete function (as of 24.3); use
    `python-shell-internal-get-or-create-process' instead.

In sage-send-region:
../../../../../share/emacs/site-lisp/sage-mode/sage-mode.el:850:27:Warning:
    `python-proc' is an obsolete function (as of 24.3); use
    `python-shell-internal-get-or-create-process' instead.

In python-qualified-module-name:
../../../../../share/emacs/site-lisp/sage-mode/sage-mode.el:1036:38:Warning:
    `flet' is an obsolete macro (as of 24.3); use either `cl-flet' or
    `cl-letf'.

In sage-send-command:
../../../../../share/emacs/site-lisp/sage-mode/sage-mode.el:1166:31:Warning:
    `python-proc' is an obsolete function (as of 24.3); use
    `python-shell-internal-get-or-create-process' instead.
../../../../../share/emacs/site-lisp/sage-mode/sage-mode.el:1165:9:Warning:
    `python-proc' is an obsolete function (as of 24.3); use
    `python-shell-internal-get-or-create-process' instead.
../../../../../share/emacs/site-lisp/sage-mode/sage-mode.el:1175:10:Warning:
    `python-send-string' is an obsolete function (as of 24.3); use
    `python-shell-internal-send-string' instead.

In python-send-receive-to-buffer:
../../../../../share/emacs/site-lisp/sage-mode/sage-mode.el:1192:6:Warning:
    `python-proc' is an obsolete function (as of 24.3); use
    `python-shell-internal-get-or-create-process' instead.
../../../../../share/emacs/site-lisp/sage-mode/sage-mode.el:1194:27:Warning:
    `python-proc' is an obsolete function (as of 24.3); use
    `python-shell-internal-get-or-create-process' instead.

In python-send-receive-multiline:
../../../../../share/emacs/site-lisp/sage-mode/sage-mode.el:1208:43:Warning:
    `python-proc' is an obsolete function (as of 24.3); use
    `python-shell-internal-get-or-create-process' instead.
../../../../../share/emacs/site-lisp/sage-mode/sage-mode.el:1212:8:Warning:
    `python-proc' is an obsolete function (as of 24.3); use
    `python-shell-internal-get-or-create-process' instead.
../../../../../share/emacs/site-lisp/sage-mode/sage-mode.el:1214:29:Warning:
    `python-proc' is an obsolete function (as of 24.3); use
    `python-shell-internal-get-or-create-process' instead.
../../../../../share/emacs/site-lisp/sage-mode/sage-mode.el:1316:11:Warning:
    assignment to free variable `view-return-to-alist'
Wrote /usr/local/sage-6.7/local/share/emacs/site-lisp/sage-mode/sage-mode.
elc

In sage-retest:
../../../../../share/emacs/site-lisp/sage-mode/sage-test.el:310:40:Warning:
    `flet' is an obsolete macro (as of 24.3); use either `cl-flet' or
    `cl-letf'.
Wrote /usr/local/sage-6.7/local/share/emacs/site-lisp/sage-mode/sage-test.
elc

In end of data:
../../../../../share/emacs/site-lisp/sage-mode/sage-view.el:718:1:Warning: 
the
    function `server-running-p' is not known to be defined.
Wrote 
/usr/local/sage-6.7/local/share/emacs/site-lisp/sage-mode/sage-view.elc

In sage-guess-command:
../../../../../share/emacs/site-lisp/sage-mode/sage.el:58:9:Warning: `flet' 
is
    an obsolete macro (as of 24.3); use either `cl-flet' or `cl-letf'.
Wrote /usr/local/sage-6.7/local/share/emacs/site-lisp/sage-mode/sage.elc
;; Start .emacs


;; After installation of the spkg, you must add something like the
;; following to your .emacs:

(add-to-list 'load-path 
"/usr/local/sage-6.7/local/share/emacs/site-lisp/sage-mode")
(require 'sage "sage")
(setq sage-command "/usr/local/sage-6.7/sage")

;; If you want sage-view to typeset all your output and display plot()
;; commands inline, uncomment the following line and configure sage-view:
;; (add-hook 'sage-startup-after-prompt-hook 'sage-view)
;; In particular customize the variables `sage-view-default-commands'
;; and `sage-view-inline-plots-method'.
;; Using sage-view to typeset output requires a working LaTeX
;; installation with the preview package.

;; Also consider running (customize-group 'sage) to see more options.

;; End .emacs

real    0m8.028s
user    0m1.988s
sys    0m0.224s
Successfully installed sage_mode-0.14
Deleting temporary build directory
/usr/local/sage-6.7/local/var/tmp/sage/build/sage_mode-0.14
Finished installing sage_mode-0.14.spkg

Warning: it might be needed to update the Sage library before
installed packages work: you should run 'make' from $SAGE_ROOT
before running Sage.


HTH,

--
Emmanuel Charpentier


Le mardi 19 mai 2015 11:14:59 UTC+2, Emmanuel Charpentier a écrit :
>
> Something is definitely out of joint in packages management.
>
> Thanks to the current migration of sagemath.org, I rebuilt from scratch 
> (= from the tarball) sage 6.7 on a slow machine. The resultant system :
> charpent@SAP5057241:/usr/local/sage-6.7$ sage --version
> SageMath Version 6.7, Release Date: 2015-05-17
>
> passes all testlong sucssefully.
>
> But it won't install optional packages :
>
> First attempt : via the normal mechanisms :
>
> charpent@SAP5057241:/usr/local/sage-6.7$ sage -i database_gap
> Found local metadata for database_gap-4.7.7
> Attempting to download package database_gap-4.7.7
> Downloading the Sage mirror list
> Searching fastest mirror
> Traceback (most recent call last):
>   File "/usr/local/sage-6.7/src/bin/sage-download-file", line 417, in 
> <module>
>     mirror_list = MirrorList()
>   File "/usr/local/sage-6.7/src/bin/sage-download-file", line 140, in 
> __init__
>     self._rank_mirrors()
>   File "/usr/local/sage-6.7/src/bin/sage-download-file", line 200, in 
> _rank_mirrors
>     print('Fastest mirror: ' + self.fastest)
>   File "/usr/local/sage-6.7/src/bin/sage-download-file", line 204, in 
> fastest
>     return self.mirrors[0]
> IndexError: list index out of range
> Error: spkg file '/usr/local/sage-6.7/upstream/database_gap-4.7.7.tar.bz2' 
> not found.
> This shouldn't happen, it is a bug in the sage-spkg script.
>
> OK, that might be my damn corporate firewall acting up (it never did for 
> that since yesterday...).
>
> Second attempt : download the tarball from the british mirror, and try to 
> install it :
>
> charpent@SAP5057241:/usr/local/sage-6.7$ sage -i ~/Téléchargements/
> database_gap-4.7.7.tar.bz2 
> database_gap-4.7.7.tar.bz2
> ====================================================
> Extracting package /home/charpent/Téléchargements/database_gap-4.7.7.tar.
> bz2
> -rw-r--r-- 1 charpent charpent 61932816 Feb 20 23:04 /home/charpent/Télé
> chargements/database_gap-4.7.7.tar.bz2
> Finished extraction
> /usr/local/sage-6.7/src/bin/sage-spkg: line 596: cd: database_gap-4.7.
> 7.tar.bz2: No such file or directory
> Error: after extracting, the directory database_gap-4.7.7.tar.bz2 does not 
> exist
>
> And, this time, it's definitively *NOT* the clownish firewall : this file 
> is a regular vanilla tar bzipped archive..
>
> Unless I goofed somewhere (I don't see where), I have a semi-borked 
> system. My previous installation (good up to 6.7beta4, IIRC) won't be able 
> to download  the necessary tarballs to update to 6.7, and starting from 
> scratch gives me a system where I can't install packages.
>
> What should I do ?
>
> --
> Emmanuel Charpentier
>
>
>
> Le dimanche 17 mai 2015 19:39:00 UTC+2, Volker Braun a écrit :
>>
>> Fixed in Sage 6.7-rc0 and later...    6.7 should be out today.
>>
>>
>> On Sunday, May 17, 2015 at 6:43:20 PM UTC+2, Luis Garcia-Puente wrote:
>>>
>>> After installing sage 6.6, I tried to install the optional packages 
>>> 4ti2, macaulay2, and nauty but the command
>>>
>>> sage -i 4ti2
>>>
>>> returns:
>>>
>>> /Applications/sage/src/bin/sage-spkg: line 312: cd: 
>>> /Applications/sage/upstream: No such file or directory
>>> Attempting to download package 4ti2
>>> >>> Checking online list of optional packages.
>>> [Traceback (most recent call last):
>>>   File "<stdin>", line 35, in <module>
>>>   File "/Applications/sage/local/lib/python/urllib.py", line 240, in 
>>> retrieve
>>>     fp = self.open(url, data)
>>>   File "/Applications/sage/local/lib/python/urllib.py", line 208, in open
>>>     return getattr(self, name)(url)
>>>   File "/Applications/sage/local/lib/python/urllib.py", line 359, in 
>>> open_http
>>>     return self.http_error(url, fp, errcode, errmsg, headers)
>>>   File "/Applications/sage/local/lib/python/urllib.py", line 376, in 
>>> http_error
>>>     return self.http_error_default(url, fp, errcode, errmsg, headers)
>>>   File "<stdin>", line 17, in http_error_default
>>> IOError: [Errno 404] Not Found: '//www.sagemath.org/spkg/optional/list'
>>> Error: failed to download http://www.sagemath.org/spkg/optional/list, 
>>> aborting
>>>
>>> I get the same output for the other two packages. Furthermore, the 
>>> webpage
>>>
>>> http://www.sagemath.org/spkg/optional/list
>>>
>>> returns the error: 404 Error: page not found
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to