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

 
 

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

Submitter:  Daniel Clark <danieljclark87>
Submitted:  Tue 31 Jan 2012 05:27:39 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Assigned to:  None
Originator Name:  Danny Open/Closed:  * Closed
Release:  * 3.4.0 Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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.


sh: -dQUIET: command not found


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>
Group Member
Thu 02 Feb 2012 02:06:02 AM UTC, comment #8: 

The error below indicates a problem with ghostscript.


sh: -dQUIET: command not found
-verbatom-

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>
Group 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>
Group Member
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


drawnow ("x11", "/dev/null", false, "debug.gp")


Also try without giving an explicit figure handle, just


print foo.jpg


Jordi Gutiérrez Hermoso <jordigh>
Group Member
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>
Group Member
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>
Group Member
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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-03-14 rik5 Open/ClosedOpen Closed
    2012-02-01 jordigh Release3.4.3 3.4.0
    2012-02-01 jordigh SummaryPrint command not working Print command not working on Macintosh OS .dmg

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code