bugGNU Octave - Bugs: bug #35416, Print command not working on...

 
 

bug #35416: Print command not working on Macintosh OS .dmg

Submitted by:  Daniel Clark <danieljclark87>
Submitted on:  Tue 31 Jan 2012 05:27:39 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: NoneAssigned to: None
Originator Name: DannyOpen/Closed: Closed
Release: 3.4.0Operating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Thu 14 Mar 2013 03:02:00 AM UTC, comment #11:

This bug report is for an ancient version of Octave which is no longer supported. Closing report.

Rik <rik5>
Project Administrator
Thu 02 Feb 2012 04:21:15 PM UTC, comment #10:

Ah ok, thanks for posting that. I look forward to the update if and when it is implemented.

Daniel Clark <danieljclark87>
Thu 02 Feb 2012 02:13:57 AM UTC, comment #9:

I filed a report on sourceforge.

https://sourceforge.net/tracker/?func=detail&aid=3482931&group_id=2888&atid=102888

My prior comment was truncated due to my sloopy typing skils. I'll repeat myself below.

The error below indicates a problem with ghostscript.

My guess is that ghostscript isn't installed on Daniel's Mac.

I checked the DMG built on April 20, 2011, ghostscript isn't included.

Looks to me like epstool, pstoedit, and fig2dev are also missing.

Ben Abbott <bpabbott>
Project Member
Thu 02 Feb 2012 02:06:02 AM UTC, comment #8:

The error below indicates a problem with ghostscript.

Ben Abbott <bpabbott>
Project Member
Wed 01 Feb 2012 06:20:51 PM UTC, comment #7:

Sorry, maybe its the fltk kit or something; heres the response i got when I used it:

octave-3.4.0:13> drawnow("x11","/dev/null",false,"debug.gp")
error: fltk_graphics_toolkit: filename should be fid

Either way, the 3.2.3 release works for me great . No thanks on maintaining the dmg distribution - thanks though.

Daniel Clark <danieljclark87>
Wed 01 Feb 2012 05:33:24 PM UTC, comment #6:

> Also, draw now requires the filename string at the end to be
> an FID, as opposed to a string'd name.


What?

No it doesn't:

http://hg.savannah.gnu.org/hgweb/octave/file/2848dd7c4dd7/src/graphics.cc#l7506

That's from the 3.4.0 release you're using. So what gave you the idea that it needed an FID?

Can you try using a different build for Macintosh OS? The Macports package is receiving a lot more maintenance nowadays than that .dmg (sorry). We haven't had a lot of people step up to maintain that .dmg; do you want to do it yourself?

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
Wed 01 Feb 2012 05:24:26 PM UTC, comment #5:

Yeah I tried changing the graphics toolkit to FLTK with no luck, with gnu plot or fltk i get the same result when using something simple like "print foo.jpg":

sh: -dQUIET: command not found
warning: broken pipe -- some output may be lost

Also, draw now requires the filename string at the end to be an FID, as opposed to a string'd name. Not sure how to do that to test your other theory. But either way, no luck.

Daniel Clark <danieljclark87>
Wed 01 Feb 2012 04:42:49 PM UTC, comment #4:

Oh, a few more ideas.

Could you try without the tilde expansion? ("foo.jpg", not "~/foo.jpg")

If you're using gnuplot, could you please produce debug output? Do

Also try without giving an explicit figure handle, just

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
Wed 01 Feb 2012 04:37:23 PM UTC, comment #3:

So that's 3.4.0, right? I don't think anyone has made a 3.4.3 .dmg yet.

And I imagine it's with gnuplot, right? If you use fltk (enable with "graphics_toolkit fltk"), does the problem persist?

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
Wed 01 Feb 2012 04:31:31 PM UTC, comment #2:

Used the .dmg installer from http://octave.sourceforge.net/ and dragged and dropped Octave.app into my applications folder (standard method for mac osx application install)

Daniel Clark <danieljclark87>
Wed 01 Feb 2012 05:15:24 AM UTC, comment #1:

How did you install Octave?

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
Tue 31 Jan 2012 05:27:39 PM UTC, original submission:

When I try to print a figure to a standard format (.pdf, .jpg, .tiff, etc) using the print command:

print(figure(1),'~/test.jpg')

The figure is never saved or printed as that file in the directory I specified. Instead, I get an error message:

sh: -dQUIET: command not found

However, the print command works with a few random file types (like svg, eps). This was not an issue in the Octave 3.2.3 release I have been using for a long time now but with the new release this is a big problem.

Daniel Clark <danieljclark87>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by danieljclark87 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 14 Mar 2013 03:02:00 AM UTCrik5Open/ClosedOpen=>Closed
    Wed 01 Feb 2012 05:33:24 PM UTCjordighRelease3.4.3=>3.4.0
    Wed 01 Feb 2012 04:37:23 PM UTCjordighSummaryPrint command not working=>Print command not working on Macintosh OS .dmg

    Back to the top


    Powered by Savane 3.1-cleanup1