[sage-support] Re: Cannot open the disk 'D:\Program Files\Sage\sage-vmware-4.1\disk.vmdk'

2009-12-01 Thread Rolandb
Hi William,

The 7zip file is 0.98 Gb, but I don't have a online place to download
it to.

Is there an other solution?

Roland

On 2 dec, 06:10, William Stein  wrote:
> On Mon, Nov 30, 2009 at 10:57 PM, Rolandb  wrote:
> > Hi,
>
> > How serious is the following message?
>
> > Cannot open the disk 'D:\Program Files\Sage\sage-vmware-4.1\disk.vmdk'
> > or one of the snapshot disks it depends on.
> > Reason: Failed to lock the file.
>
> Do you have enough disk space?
>
> Do you have permissions?   Can you run as an admin?
>
> How big are all the files in sage-vmware-4.1?   Could you consider
> using 7zip to zip (or whatever) to zip up the whole directory and
> somehow make it available online, so somebody else can try to mount
> your disks and get your files?
>
> William

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Cannot open the disk 'D:\Program Files\Sage\sage-vmware-4.1\disk.vmdk'

2009-12-01 Thread dimpase
well, you probably just need to remove some stale locks.
That is, somewhere on the VM, there is a place where files indicating
"busy" status
of a particular volume, so-called locks, are stored. On Windows hosts,
they have .lck extensions.
So you need to remove the one that is
causing you the trouble. However, a VM reboot should have taken care
of it.
(YMMV: It has been ages since I worked with VMware, so I might sound
vague on this)




On Dec 2, 12:58 pm, Rolandb  wrote:
> I tried everything I could imagine: restarting VMWARE, inspection of
> the individual vdmk files, restarting the computer, ...
>
> It seems that I have to re-install Sage (for Windows).
> The problem is that by re-installing, I will loose all my notebook
> files.
> So, I want to save those files first! BUT HOW?
>
> Roland
>
> On 1 dec, 21:57, Robert Bradshaw  wrote:
>
> > I don't know much about Windows, but did you try restarting? That  
> > might release any stale file locks. (Don't worry, your data should  
> > still be there.)
>
> > On Dec 1, 2009, at 11:00 AM, Rolandb wrote:
>
> > > Hi,
>
> > > Sage fails to start. Does this mean that I lost all my notebook files?
>
> > > That would be very sad...
>
> > > Thanks in advance of a solution which save my files!!
>
> > > Roland
>
> > > On 1 dec, 04:57, Rolandb  wrote:
> > >> Hi,
>
> > >> How serious is the following message?
>
> > >> Cannot open the disk 'D:\Program Files\Sage\sage-
> > >> vmware-4.1\disk.vmdk'
> > >> or one of the snapshot disks it depends on.
> > >> Reason: Failed to lock the file.
>
> > >> Roland
>
> > > --
> > > To post to this group, send email to sage-support@googlegroups.com
> > > To unsubscribe from this group, send email to 
> > > sage-support-unsubscr...@googlegroups.com
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/sage-support
> > > URL:http://www.sagemath.org

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Cannot open the disk 'D:\Program Files\Sage\sage-vmware-4.1\disk.vmdk'

2009-12-01 Thread William Stein
On Mon, Nov 30, 2009 at 10:57 PM, Rolandb  wrote:
> Hi,
>
> How serious is the following message?
>
> Cannot open the disk 'D:\Program Files\Sage\sage-vmware-4.1\disk.vmdk'
> or one of the snapshot disks it depends on.
> Reason: Failed to lock the file.

Do you have enough disk space?

Do you have permissions?   Can you run as an admin?

How big are all the files in sage-vmware-4.1?   Could you consider
using 7zip to zip (or whatever) to zip up the whole directory and
somehow make it available online, so somebody else can try to mount
your disks and get your files?

William

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Cannot open the disk 'D:\Program Files\Sage\sage-vmware-4.1\disk.vmdk'

2009-12-01 Thread Rolandb
I tried everything I could imagine: restarting VMWARE, inspection of
the individual vdmk files, restarting the computer, ...

It seems that I have to re-install Sage (for Windows).
The problem is that by re-installing, I will loose all my notebook
files.
So, I want to save those files first! BUT HOW?

Roland

On 1 dec, 21:57, Robert Bradshaw  wrote:
> I don't know much about Windows, but did you try restarting? That  
> might release any stale file locks. (Don't worry, your data should  
> still be there.)
>
> On Dec 1, 2009, at 11:00 AM, Rolandb wrote:
>
> > Hi,
>
> > Sage fails to start. Does this mean that I lost all my notebook files?
>
> > That would be very sad...
>
> > Thanks in advance of a solution which save my files!!
>
> > Roland
>
> > On 1 dec, 04:57, Rolandb  wrote:
> >> Hi,
>
> >> How serious is the following message?
>
> >> Cannot open the disk 'D:\Program Files\Sage\sage-
> >> vmware-4.1\disk.vmdk'
> >> or one of the snapshot disks it depends on.
> >> Reason: Failed to lock the file.
>
> >> Roland
>
> > --
> > To post to this group, send email to sage-support@googlegroups.com
> > To unsubscribe from this group, send email to 
> > sage-support-unsubscr...@googlegroups.com
> > For more options, visit this group 
> > athttp://groups.google.com/group/sage-support
> > URL:http://www.sagemath.org

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Revisions

2009-12-01 Thread Timothy Clemans
On Tue, Dec 1, 2009 at 8:42 PM, William Stein  wrote:
> On Tue, Dec 1, 2009 at 11:40 PM, Timothy Clemans
>  wrote:
>> On Tue, Dec 1, 2009 at 8:36 PM, William Stein  wrote:
>>> On Tue, Dec 1, 2009 at 11:31 PM, Timothy Clemans
>>>  wrote:
 Hi,

 On both sagenb.org and my personal notebook the revision history for
 any worksheet is blank. Is revision history no longer supported?
>>>
>>> There is a bug. Thanks for the report!  A workaround is to
>>> *explicitly* click on the Save button -- that will  create a revision.
>>
>> Explicitly clicking the Save button doesn't work for me.
>
> OK, then you'll have to wait for a fix or modify the relevant sagenb
> code yourself: I know you know how to do so :-), or wait less than 2
> weeks.

Creating a new notebook server seems to have solved the problem. At
least clicking Save works.

>
> William
>
> --
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to 
> sage-support-unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Revisions

2009-12-01 Thread William Stein
On Tue, Dec 1, 2009 at 11:40 PM, Timothy Clemans
 wrote:
> On Tue, Dec 1, 2009 at 8:36 PM, William Stein  wrote:
>> On Tue, Dec 1, 2009 at 11:31 PM, Timothy Clemans
>>  wrote:
>>> Hi,
>>>
>>> On both sagenb.org and my personal notebook the revision history for
>>> any worksheet is blank. Is revision history no longer supported?
>>
>> There is a bug. Thanks for the report!  A workaround is to
>> *explicitly* click on the Save button -- that will  create a revision.
>
> Explicitly clicking the Save button doesn't work for me.

OK, then you'll have to wait for a fix or modify the relevant sagenb
code yourself: I know you know how to do so :-), or wait less than 2
weeks.

William

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Revisions

2009-12-01 Thread Timothy Clemans
On Tue, Dec 1, 2009 at 8:36 PM, William Stein  wrote:
> On Tue, Dec 1, 2009 at 11:31 PM, Timothy Clemans
>  wrote:
>> Hi,
>>
>> On both sagenb.org and my personal notebook the revision history for
>> any worksheet is blank. Is revision history no longer supported?
>
> There is a bug. Thanks for the report!  A workaround is to
> *explicitly* click on the Save button -- that will  create a revision.

Explicitly clicking the Save button doesn't work for me.

>  I should fix this.    However does this (likely me, as soon as Sage
> Days 18 is over I'll be done with everything and can focus totally on
> the notebook for the rest of the year), should also implement rolling
> backups (i.e., daily, weekly monthly only, i.e., smart deleting of old
> snapshots).
>
> I've made this trac: 7579:
>
>    http://trac.sagemath.org/sage_trac/ticket/7579
>
> William
>
>  -- William
>
> --
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to 
> sage-support-unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Revisions

2009-12-01 Thread William Stein
On Tue, Dec 1, 2009 at 11:31 PM, Timothy Clemans
 wrote:
> Hi,
>
> On both sagenb.org and my personal notebook the revision history for
> any worksheet is blank. Is revision history no longer supported?

There is a bug. Thanks for the report!  A workaround is to
*explicitly* click on the Save button -- that will  create a revision.
 I should fix this.However does this (likely me, as soon as Sage
Days 18 is over I'll be done with everything and can focus totally on
the notebook for the rest of the year), should also implement rolling
backups (i.e., daily, weekly monthly only, i.e., smart deleting of old
snapshots).

I've made this trac: 7579:

http://trac.sagemath.org/sage_trac/ticket/7579

William

 -- William

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Revisions

2009-12-01 Thread Timothy Clemans
Hi,

On both sagenb.org and my personal notebook the revision history for
any worksheet is blank. Is revision history no longer supported?

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Problems with Tkinter during build of Sage 4.2.1

2009-12-01 Thread Dan Drake
On Tue, 01 Dec 2009 at 07:04PM -0500, Timothy Davis wrote:
> Dear Sage-support:
> 
> I am trying to build Sage 4.2.1 from source on a Linux machine running SUSE
> Linux Enterprise Server 10 (x86_64).
> 
> The build proceeds to the end, but I have a persistent problem with the
> build process failing to find the "bits" for Tkinter.  I have seen your FAQ
> item which addresses the Tkinter problem in Sage builds, but I don't have
> access to the tcl developer library.  It appears to be software which isn't
> Open Source, and it does not seem to be part of the SLED distro on my
> machine.   Is there another work around to resolve this issue?
> 
> What I find strange is that I can build Python 2.6 "stand-alone" from source
> on the same machine using the same version of gcc I used for sage, provided
> that I have the path to the tcl/tk libraries in the environment variable
> LD_LIBRARY_PATH.  That doesn't work for the 'sage' build, nor does using
> LD_RUN_PATH.
> 
> My main goal is to have access to the numpy/scipy/matplotlib tools, and I'm
> finding that building some of those pieces individually for a "stand-alone"
> python 2.6 isn't all that easy.  It's attractive to use something like sage
> which relieves me of the burden of having to find and build all of the parts
> and pieces for a useful python environment.
> 
> Also, I looked at the pre-built binary distros of sage, and there isn't one
> for SLED 10 -- the SuSE 11 version doesn't work on my system.
> 
> I've included a little more system info below.
> 
> Thanks in advance.
> 
> T. Davis
> 
> 
> uname -arv
> Linux rds625 2.6.16.54-0.2.5-smp #1 SMP Mon Jan 21 13:29:51 UTC 2008 x86_64
> x86_64 x86_64 GNU/Linux
> 
> Dual-Core AMD Opteron(tm) Processor 
> cpu Mhz 3000.000
> 16 Gbyte physical memory
> 
> SUSE Linux Enterprise Server 10 (x86_64)
> VERSION = 10
> PATCHLEVEL = 1
> 
> sage-4.2.1/spkg> gcc --version
> gcc (GCC) 4.2.3
> 
> sage-4.2.1/spkg> g++ --version
> g++ (GCC) 4.2.3
> 
> From my local, stand-alone installation of python2.6, built with tcl/tk
> libraries in LD_LIBRARY_PATH:
> >>> import Tkinter
> >>> Tkinter._test()

When I try the above import line, I get (Ubuntu 9.10 amd64):

sage: import Tkinter  
---
ImportError   Traceback (most recent call last)

...

/opt/sage/local/lib/python2.6/lib-tk/Tkinter.py in ()
 37 # Attempt to configure Tcl/Tk without requiring PATH
 38 import FixTk
---> 39 import _tkinter # If this fails your Python may not be configured 
for Tk
 40 tkinter = _tkinter # b/w compat for export
 41 TclError = _tkinter.TclError

ImportError: No module named _tkinter

The comment says our Python may not be configured for Tk, which makes me
think that we could fix this by changing the way we configure and
install our Python spkg. Looking through the Python build setup, I see
that it automatically tries to build Tkinter, but for Sage, generally
fails because it can't find the header files. Maybe try installing those
headers and try recompiling Sage's Python spkg?

Dan

-- 
---  Dan Drake
-  http://mathsci.kaist.ac.kr/~drake
---


signature.asc
Description: Digital signature


Re: [sage-support] Re: sagetex: granular builds for large documents

2009-12-01 Thread Dima Pasechnik
one can just use pdfpages in (pdf) LaTeX:

\documentclass{article}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=-]{bla}
\includepdf[pages=-]{foo}
\end{document}

creates a pdf document consisting of bla.pdf followed by foo.pdf

2009/12/2 Marshall Hampton :
> I use pyPdf to glue pdfs together, its nice if you already like python
> and want to automate such tasks:
>
> http://pybrary.net/pyPdf/
>
> -Marshall
>
> On Dec 1, 5:11 pm, Harald Schilly  wrote:
>> On Dec 1, 8:44 pm, Eric Drechsel  wrote:
>>
>> >  1. Is it possible to have a master document that includes a bunch of
>> > complete subdocuments?
>>
>> The main "problem" is, that you may happen to define a variable in the
>> beginning and modify it later and in the end it is used. Therefore
>> there is no mechanism to break this chain apart and everything you
>> define lives along a full sage session. I don't know how far Dan's
>> ideas are, but there is one immediate hack i can suggest you: Just
>> create PDF files for each chapter and then stick them together using a
>> PDF-merge tool. I haven't done it yet, but i guess it's simple to
>> create one big pdf file merging several pdf documents.
>>
>> H
>
> --
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to 
> sage-support-unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org



-- 
Dmitrii Pasechnik
-
DISCLAIMER: Any text following this sentence does not constitute a
part of this message, and was added automatically during transmission.

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: sagetex: granular builds for large documents

2009-12-01 Thread Marshall Hampton
I use pyPdf to glue pdfs together, its nice if you already like python
and want to automate such tasks:

http://pybrary.net/pyPdf/

-Marshall

On Dec 1, 5:11 pm, Harald Schilly  wrote:
> On Dec 1, 8:44 pm, Eric Drechsel  wrote:
>
> >  1. Is it possible to have a master document that includes a bunch of
> > complete subdocuments?
>
> The main "problem" is, that you may happen to define a variable in the
> beginning and modify it later and in the end it is used. Therefore
> there is no mechanism to break this chain apart and everything you
> define lives along a full sage session. I don't know how far Dan's
> ideas are, but there is one immediate hack i can suggest you: Just
> create PDF files for each chapter and then stick them together using a
> PDF-merge tool. I haven't done it yet, but i guess it's simple to
> create one big pdf file merging several pdf documents.
>
> H

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: sagetex: granular builds for large documents

2009-12-01 Thread Eric Drechsel
Hi Harald, thanks for the suggestion, I had thought of that too. It
seems like a viable route. Each subdocument ends up on its own set of
pages, but I guess that's the case when using \include too.

-- Eric

On Dec 1, 3:11 pm, Harald Schilly  wrote:
> On Dec 1, 8:44 pm, Eric Drechsel  wrote:
>
> >  1. Is it possible to have a master document that includes a bunch of
> > complete subdocuments?
>
> The main "problem" is, that you may happen to define a variable in the
> beginning and modify it later and in the end it is used. Therefore
> there is no mechanism to break this chain apart and everything you
> define lives along a full sage session. I don't know how far Dan's
> ideas are, but there is one immediate hack i can suggest you: Just
> create PDF files for each chapter and then stick them together using a
> PDF-merge tool. I haven't done it yet, but i guess it's simple to
> create one big pdf file merging several pdf documents.
>
> H

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: sagetex: granular builds for large documents

2009-12-01 Thread Eric Drechsel


On Dec 1, 3:30 pm, Dan Drake  wrote:
> Hi Eric,
>
>
>
> On Tue, 01 Dec 2009 at 11:44AM -0800, Eric Drechsel wrote:
> > I'm experimenting with a homework workflow using sagetex. I'd like to
> > make efficient use of resources, which seems to be a (the?) major
> > deficiency with sagetex, especially with large documents.
>
> > My initial thought was that by placing each problem in an included
> > file, I could have my build tool generate individual problem_x.sage
> > and problem_x.sout files only for problems with changes, and keep the
> > master tex file as a simple list of includes. I see now that that
> > can't work, however, at least with my limited knowledge of TeX tricks.
>
> > So I'm asking the group for ideas. Starters:
>
> >  1. Is it possible to have a master document that includes a bunch of
> > complete subdocuments? If so, one could simply keep the master
> > document clean of sagetex references, and build each subdocument
> > separately.
>
> My first thought is, if you're talking about using a master document and
> compile times for your homework...you have way too much homework. :)
>
> I don't know about keeping the master document clean of SageTeX
> references, but by using \include, you can keep things separated, and
> you can even compile only part of the document using \includeonly.

Yes, I found out about \includeonly from [1] shortly after posting,
and I think that's what I'll do in the short term (homework being due
Thursday and all :).

[1] http://web.science.mq.edu.au/~rdale/resources/writingnotes/latexstruct.html

>
> One thing you can do with SageTeX to make things go faster is to use the
> pause and unpause commands -- \sagetexpause and \sagetexunpause.
> Commands between those two don't get run when you run Sage on the .sage
> file. (SageTeX literally just comments those sections out in the .sage
> file.)

The issue I have with both \sagetexpause and \includeonly is that
they're not automate-able. Subdocuments seem like a good way to
integrate with build tools (since they can have timestamps etc)

> Actually, with the stuff I've done, the most time-consuming part of
> running Sage on the .sage file is simply startup time. Once it starts
> executing the commands, it generally goes really fast, but starting Sage
> takes a while.

Good point! Most documents are probably not so computationally
expensive as the examples file (which has lots of plots). Does sagetex-
remote help with this much, or is there still alot of overhead in
creating a new session on the server?

> I'll think about your per-file ideas, and about some kind of
> \includeonly stuff. Right now, though, it works document-wide.
>
> What would you like to see? Can you describe some commands or
> functionality that you would find helpful?

Unless you can think of a simple way to add support for generating
separate sage files per tex file (which would also require changing
the way .sout files are included I guess?), it doesn't seem worth the
trouble. I can't begin to read sagetex.sty, so I can't really evaluate
what's a reasonable feature request.

Thanks for your thoughtful response!

Regarding the build tool, I'm using SCons, with which this is my first
experience, and so far I'm liking the flexibility and extensibility
alot. My example project with SConstruct file is here [2]

[2] http://wiki.shared.dre.am/electricity_and_magnetism/probset7/
> Dan
>
> --
> ---  Dan Drake
> -  http://mathsci.kaist.ac.kr/~drake
> ---
>
>  signature.asc
> < 1KViewDownload

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Problems with Tkinter during build of Sage 4.2.1

2009-12-01 Thread Timothy Davis
Dear Sage-support:

I am trying to build Sage 4.2.1 from source on a Linux machine running SUSE
Linux Enterprise Server 10 (x86_64).

The build proceeds to the end, but I have a persistent problem with the
build process failing to find the "bits" for Tkinter.  I have seen your FAQ
item which addresses the Tkinter problem in Sage builds, but I don't have
access to the tcl developer library.  It appears to be software which isn't
Open Source, and it does not seem to be part of the SLED distro on my
machine.   Is there another work around to resolve this issue?

What I find strange is that I can build Python 2.6 "stand-alone" from source
on the same machine using the same version of gcc I used for sage, provided
that I have the path to the tcl/tk libraries in the environment variable
LD_LIBRARY_PATH.  That doesn't work for the 'sage' build, nor does using
LD_RUN_PATH.

My main goal is to have access to the numpy/scipy/matplotlib tools, and I'm
finding that building some of those pieces individually for a "stand-alone"
python 2.6 isn't all that easy.  It's attractive to use something like sage
which relieves me of the burden of having to find and build all of the parts
and pieces for a useful python environment.

Also, I looked at the pre-built binary distros of sage, and there isn't one
for SLED 10 -- the SuSE 11 version doesn't work on my system.

I've included a little more system info below.

Thanks in advance.

T. Davis


uname -arv
Linux rds625 2.6.16.54-0.2.5-smp #1 SMP Mon Jan 21 13:29:51 UTC 2008 x86_64
x86_64 x86_64 GNU/Linux

Dual-Core AMD Opteron(tm) Processor 
cpu Mhz 3000.000
16 Gbyte physical memory

SUSE Linux Enterprise Server 10 (x86_64)
VERSION = 10
PATCHLEVEL = 1

sage-4.2.1/spkg> gcc --version
gcc (GCC) 4.2.3

sage-4.2.1/spkg> g++ --version
g++ (GCC) 4.2.3

>From my local, stand-alone installation of python2.6, built with tcl/tk
libraries in LD_LIBRARY_PATH:
>>> import Tkinter
>>> Tkinter._test()

Within sage, the same operation as above produces import errors.

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Re: [sage-support] sagetex: granular builds for large documents

2009-12-01 Thread Dan Drake
On Tue, 01 Dec 2009 at 11:44AM -0800, Eric Drechsel wrote:
> I'm experimenting with a homework workflow using sagetex. I'd like to
> make efficient use of resources, which seems to be a (the?) major
> deficiency with sagetex, especially with large documents.
> 
> My initial thought was that by placing each problem in an included
> file, I could have my build tool generate individual problem_x.sage
> and problem_x.sout files only for problems with changes, and keep the
> master tex file as a simple list of includes. I see now that that
> can't work, however, at least with my limited knowledge of TeX tricks.

BTW, if your build tool is Latexmk [1] (which is included in TeXLive), I
wrote a "custom dependency rule" that makes it work intelligently with
SageTeX: put this into your .latexmkrc and it will run Sage as
necessary.

-
# a SageTeX custom dependency rule for latexmk

add_cus_dep('sage', 'sout', 0, 'makesout');

sub makesout {
my $oldmd5 = "x";
my $currentmd5 = (split / /,
  `egrep -v '^( _st_.goboom|print .SageT)' $_[0].sage | md5sum`)[0];
open(INFILE, "$_[0].sout");
while () {
if (/^%([0-9a-f]{32})%/) {
$oldmd5 = $1;
}
}
if ($currentmd5 ne $oldmd5) {
system("sage $_[0].sage");
}
else {
print "md5sums for $_[0].sage and $_[0].sout match, not running Sage\n";
return 0;
}
}
-

I'm very much not a Perl person, so that may not be the best way to do
it, but it seems to work well.

Dan

  1. http://www.phys.psu.edu/~collins/software/latexmk-jcc/
-- 
---  Dan Drake
-  http://mathsci.kaist.ac.kr/~drake
---


signature.asc
Description: Digital signature


Re: [sage-support] sagetex: granular builds for large documents

2009-12-01 Thread Dan Drake
Hi Eric,

On Tue, 01 Dec 2009 at 11:44AM -0800, Eric Drechsel wrote:
> I'm experimenting with a homework workflow using sagetex. I'd like to
> make efficient use of resources, which seems to be a (the?) major
> deficiency with sagetex, especially with large documents.
> 
> My initial thought was that by placing each problem in an included
> file, I could have my build tool generate individual problem_x.sage
> and problem_x.sout files only for problems with changes, and keep the
> master tex file as a simple list of includes. I see now that that
> can't work, however, at least with my limited knowledge of TeX tricks.
> 
> So I'm asking the group for ideas. Starters:
> 
>  1. Is it possible to have a master document that includes a bunch of
> complete subdocuments? If so, one could simply keep the master
> document clean of sagetex references, and build each subdocument
> separately.

My first thought is, if you're talking about using a master document and
compile times for your homework...you have way too much homework. :)

I don't know about keeping the master document clean of SageTeX
references, but by using \include, you can keep things separated, and
you can even compile only part of the document using \includeonly.

One thing you can do with SageTeX to make things go faster is to use the
pause and unpause commands -- \sagetexpause and \sagetexunpause.
Commands between those two don't get run when you run Sage on the .sage
file. (SageTeX literally just comments those sections out in the .sage
file.) 

Actually, with the stuff I've done, the most time-consuming part of
running Sage on the .sage file is simply startup time. Once it starts
executing the commands, it generally goes really fast, but starting Sage
takes a while.

I'll think about your per-file ideas, and about some kind of
\includeonly stuff. Right now, though, it works document-wide.

What would you like to see? Can you describe some commands or
functionality that you would find helpful?

Dan

-- 
---  Dan Drake
-  http://mathsci.kaist.ac.kr/~drake
---


signature.asc
Description: Digital signature


[sage-support] Re: sagetex: granular builds for large documents

2009-12-01 Thread Harald Schilly
On Dec 1, 8:44 pm, Eric Drechsel  wrote:
>  1. Is it possible to have a master document that includes a bunch of
> complete subdocuments?

The main "problem" is, that you may happen to define a variable in the
beginning and modify it later and in the end it is used. Therefore
there is no mechanism to break this chain apart and everything you
define lives along a full sage session. I don't know how far Dan's
ideas are, but there is one immediate hack i can suggest you: Just
create PDF files for each chapter and then stick them together using a
PDF-merge tool. I haven't done it yet, but i guess it's simple to
create one big pdf file merging several pdf documents.

H

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: Cannot open the disk 'D:\Program Files\Sage\sage-vmware-4.1\disk.vmdk'

2009-12-01 Thread Robert Bradshaw
I don't know much about Windows, but did you try restarting? That  
might release any stale file locks. (Don't worry, your data should  
still be there.)

On Dec 1, 2009, at 11:00 AM, Rolandb wrote:

> Hi,
>
> Sage fails to start. Does this mean that I lost all my notebook files?
>
> That would be very sad...
>
> Thanks in advance of a solution which save my files!!
>
> Roland
>
> On 1 dec, 04:57, Rolandb  wrote:
>> Hi,
>>
>> How serious is the following message?
>>
>> Cannot open the disk 'D:\Program Files\Sage\sage- 
>> vmware-4.1\disk.vmdk'
>> or one of the snapshot disks it depends on.
>> Reason: Failed to lock the file.
>>
>> Roland
>
> -- 
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to 
> sage-support-unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] sagetex: granular builds for large documents

2009-12-01 Thread Eric Drechsel
Hi Dan, others using sagetex

I'm experimenting with a homework workflow using sagetex. I'd like to
make efficient use of resources, which seems to be a (the?) major
deficiency with sagetex, especially with large documents.

My initial thought was that by placing each problem in an included
file, I could have my build tool generate individual problem_x.sage
and problem_x.sout files only for problems with changes, and keep the
master tex file as a simple list of includes. I see now that that
can't work, however, at least with my limited knowledge of TeX tricks.

So I'm asking the group for ideas. Starters:

 1. Is it possible to have a master document that includes a bunch of
complete subdocuments? If so, one could simply keep the master
document clean of sagetex references, and build each subdocument
separately.
 2. Could sagetex be modified to work on a per-file level?

Thanks,
Eric

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Cannot open the disk 'D:\Program Files\Sage\sage-vmware-4.1\disk.vmdk'

2009-12-01 Thread Rolandb
Hi,

Sage fails to start. Does this mean that I lost all my notebook files?

That would be very sad...

Thanks in advance of a solution which save my files!!

Roland

On 1 dec, 04:57, Rolandb  wrote:
> Hi,
>
> How serious is the following message?
>
> Cannot open the disk 'D:\Program Files\Sage\sage-vmware-4.1\disk.vmdk'
> or one of the snapshot disks it depends on.
> Reason: Failed to lock the file.
>
> Roland

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org