#8679: conventions for spkg names, rewriting sage-spkg
-----------------------------+----------------------------------------------
Reporter: jhpalmieri | Owner: tbd
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-4.4
Component: packages | Keywords:
Author: John Palmieri | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
Changes (by ddrake):
* status: needs_review => needs_work
Comment:
I applied the scripts patch, unpacked the fortran spkg, and tried "sage
-pkg_nc fortran-...". It didn't go so well:
{{{
Creating Sage package fortran-20100118 with no compression
Traceback (most recent call last):
File "/home/drake/s/trac8679/sage-4.3.5/local/bin/sage-pkg", line 130,
in <module>
main()
File "/home/drake/s/trac8679/sage-4.3.5/local/bin/sage-pkg", line 81, in
main
tar_file(dir, no_compress = options.no_compress)
File "/home/drake/s/trac8679/sage-4.3.5/local/bin/sage-pkg", line 36, in
tar_file
tar = tarfile.open(file, mode=mode)
File "/home/drake/s/trac8679/sage-4.3.5/local/lib/python/tarfile.py",
line 1682, in open
return cls.taropen(name, mode, fileobj, **kwargs)
File "/home/drake/s/trac8679/sage-4.3.5/local/lib/python/tarfile.py",
line 1692, in taropen
return cls(name, mode, fileobj, **kwargs)
File "/home/drake/s/trac8679/sage-4.3.5/local/lib/python/tarfile.py",
line 1519, in __init__
fileobj = bltn_open(name, self._mode)
TypeError: coercing to Unicode: need string or buffer, type found
}}}
I think you never defined what "file" is in your "tarfile.open" call.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8679#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.