Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Mathematica 6] Save As HTML does not produce any output

9 views
Skip to first unread message

Nasser Abbasi

unread,
May 7, 2007, 5:41:13 AM5/7/07
to
Mathematica 6, student version, windows XP home edition.

I tried this on 2 note books so far, and same result.
I hope a notebook, the FILE->Save as and select HTML, and Save.

Mathematica 6 now seems to get busy, but no files are written out in the
folder specified. Nothing.

Here is a notebook I tried it on

http://12000.org/tmp/050607/qr.nb

save to PDF works fine.

I have a feeling something is wrong with the HTML export in Mathematica 6.
Could someone who has Mathematica 6 please verify?

Nasser

Murray Eisenberg

unread,
May 8, 2007, 6:27:09 AM5/8/07
to
On my Windows XP Professional system with the "Professional" version of
Mathematica 6.0, your notebook saves as HTML almost instantly when I use
File > Save as.... Two subdirectories, HTMLFiles and HTMLLinks are
created in the same directory as qr.html (and qr.nb), with the first
containing gif's together with a css and a dtd file, the second being empty.

According to the Wolfram Research web site, the only differences between
the Student version and the Professional version are that: (1) the value
of $Version is different; (2) each printed page has "Mathematica for
Students" at the bottom; (3) there's a different startup screen; and (4)
there is no printed manual.

In short, there should be no functional difference between the two.

--
Murray Eisenberg mur...@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305

ragfield

unread,
May 9, 2007, 4:24:09 AM5/9/07
to


Does the path you're saving the HTML files to have any special
characters in it? Perhaps try saving somewhere else on your hard
drive to see if that works (e.g. C:\TEMP).

-Rob


Nasser Abbasi

unread,
May 20, 2007, 2:46:33 AM5/20/07
to

"ragfield" <ragf...@gmail.com> wrote in message
news:f1s0f9$bn7$1...@smc.vnet.net...

No special path. Normal E:\blabla folder. This works fine in 5.2.

There IS a problem with HTML generation in 6.0. see below, May be my path
is TOO long to handle? This is the path I work in:

E:\nabbasi\data\nabbasi_web_Page\my_courses\UCI_COURSES\CREDIT_COURSES\fall_2006\PHYS_100_comp_physics\HWs\HW1\

In the Messages console (I did not know about this before, nice), when I do
SAVE AS html, I get these errors: I need now to figure why/what these mean.
Mean while if someone had this same problem and have solution, please post.

Set::shape: Lists
{System`Convert`HTMLDump`directory,System`Convert`CommonDump`filename} and
System`Convert`CommonDump`DirectoryAndFile[E:\nabbasi\data\nabbasi_web_P\[Ellipsis]\HW1\HTML\AbbasiN12_FINAL.html]
are not the same shape. >>

StringMatchQ::strse: String or list of strings expected at position 1 in
StringMatchQ[System`Convert`CommonDump`filename,*.*]. >>
ToFileName::strse: String or list of strings expected at position 1 in
ToFileName[System`Convert`HTMLDump`directory,System`Convert`CommonDump`filename].
>>

ToFileName::strse: String or list of strings expected at position 1 in
ToFileName[System`Convert`HTMLDump`directory,HTMLFiles]. >>

FileType::fstr: File specification
ToFileName[System`Convert`HTMLDump`directory,HTMLFiles] is not a string of
one or more characters. >>

ToFileName::strse: String or list of strings expected at position 1 in
ToFileName[System`Convert`HTMLDump`directory,HTMLLinks]. >>

General::stop: Further output of ToFileName::strse will be suppressed during
this calculation. >>

FileType::fstr: File specification
ToFileName[System`Convert`HTMLDump`directory,HTMLLinks] is not a string of
one or more characters. >>

StringMatchQ::strse: String or list of strings expected at position 1 in
StringMatchQ[ToFileName[System`Convert`HTMLDump`directory,System`Convert`CommonDump`filename],*.html].
>>

StringJoin::string: String expected at position 1 in
ToFileName[System`Convert`HTMLDump`directory,System`Convert`CommonDump`filename]<>_.
StringMatchQ::strse: String or list of strings expected at position 1 in
StringMatchQ[ToFileName

[System`Convert`HTMLDump`directory,System`Convert`CommonDump`filename],*.html].
>>

General::stop: Further output of StringMatchQ::strse will be suppressed
during this calculation. >>
StringJoin::string: String expected at position 1 in
ToFileName[System`Convert`HTMLDump`directory,System`Convert`CommonDump`filename]<>_.
StringJoin::string: String expected at position 1 in
StringJoin[System`Convert`CommonDump`filename].

General::stop: Further output of StringJoin::string will be suppressed
during this calculation. >>
DirectoryName::string: String expected at position 1 in
DirectoryName[System`Convert`CommonDump`tofilename[<<1>>]].
General::stream:
System`Convert`HTMLDump`HTMLFileOpen[ToFileName[System`Convert`HTMLDump`directory,<<34>>]]
is not a string, InputStream[ ], or OutputStream[ ]. >>

Nasser


Igor C. Antonio

unread,
Jul 7, 2007, 6:14:56 AM7/7/07
to
Nasser Abbasi wrote:
> "ragfield" <ragf...@gmail.com> wrote in message
> news:f1s0f9$bn7$1...@smc.vnet.net...
> No special path. Normal E:\blabla folder. This works fine in 5.2.
>
> There IS a problem with HTML generation in 6.0. see below, May be my path
> is TOO long to handle? This is the path I work in:
>
> E:\nabbasi\data\nabbasi_web_Page\my_courses\UCI_COURSES\CREDIT_COURSES\fall_2006\PHYS_100_comp_physics\HWs\HW1\
>
> In the Messages console (I did not know about this before, nice), when I do
> SAVE AS html, I get these errors: I need now to figure why/what these mean.
> Mean while if someone had this same problem and have solution, please post.
>
> Set::shape: Lists
> {System`Convert`HTMLDump`directory,System`Convert`CommonDump`filename} and
> System`Convert`CommonDump`DirectoryAndFile[E:\nabbasi\data\nabbasi_web_P\[Ellipsis]\HW1\HTML\AbbasiN12_FINAL.html]
> are not the same shape. >>
>

<snip>


>
> Nasser
>

Hi Nasser,

Sorry for the inconvenience you're running into with this notebook. I just read
this thread after you linked to it from a more recent post. I wasn't able to
keep up with Mathgroup soon after the release of version 6...

The length of your filepath is not a problem. I want to try to reproduce your
problem over here, but so far I haven't been able to. Can you email me
(privately) the following information:

- Exact location of notebook file when you open it in Mathematica
- Exact destination where you're saving as HTML
- Exact filename you're typing in the dialog box when saving as HTML
- A Mathematica notebook containing the output of SystemInformation[] of your
system.

I will then take a look at it. I have some questions for you. Please include
the responses in the same email as mentioned above:

Can you consistently run into this error?

Does it make a difference if you try to save it somewhere else? Try creating a
new folder on your desktop.

Is your E:\ a network drive?

Does it happen with other notebooks?

The error messages you mentioned above are internal errors, so don't expect to
figure out what's wrong simply by looking at them. Solemnly based on the errors
you've shown, I can tell you that it's having a problem parsing the destination
directory (first error), so Rob's question about special characters in the
filepath was important. All the other error messages are due to the unparsed
information.

One last thing: Try exporting by using the Export[] command instead of File >
Save As and let me know if it still doesn't work. You can use:

nb = NotebookOpen["<notebookfilepath>"];
Export["test.html", nb, "HTML"]

Thanks,

--
Igor C. Antonio
Wolfram Research, Inc.
http://www.wolfram.com

To email me personally, remove the dash.

0 new messages