[MacPorts] #50375: proble in running a program using pgplot in batch

MacPorts noreply at macports.org
Tue Jan 19 03:56:47 PST 2016


#50375: proble in running a program using pgplot in batch
--------------------------+--------------------------------
 Reporter:  masciadri@…   |      Owner:  macports-tickets@…
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.3.4
 Keywords:  pgplot, bash  |       Port:  pgplot
--------------------------+--------------------------------
 Good morning,

 I write to you because I have a problem with the pgplot and El Capitan.
 New mac with El Capitan. I installed pgpot with macports.
 I have a program that produce a figure in *.ps.
 Pgplot permits different outputs (Xwin, ps, etc....)
 The syntaxe to ask for an output *ps is:

 name_of_file.ps/ps

 I run a program test I did that uses pgplot in interactive way and it
 works.
 It creates correctly the name_of_file.ps.

 If I put all this in a macro (in bash) and I run in batch the program I
 obtain an error:

 ###########
 Graphics device/type (? to see list, default /xServe):  %PGPLOT, Error
 reading device specification
 %PGPLOT, PGSCH: no graphics device has been selected
 ############

 I add that this same program works correctly in bash on my previous mac
 (10.6.8).
 I also tried to write a wrong format of the output (ex:
 name_of_file.ps/pp) but the system does not detect the error in my new mac
 (as it happens in my previous mac:

 #############
 Graphics device/type (? to see list, default /xwin):  %PGPLOT, Invalid
 devide specification
 T, Unrecognized device type
 Graphics device/type (? to see list, default /xwin):  %PGPLOT, Error
 reading device specification
 %PGPLOT, PGSCH: no graphics device has been selected
 #############

 In my new mac I obtain always the same message:
 ###########
 Graphics device/type (? to see list, default /xServe):  %PGPLOT, Error
 reading device specification
 %PGPLOT, PGSCH: no graphics device has been selected
 ############

 A difference between my previous mac and the new one is that now there is
 /xServe and before /xwin. I do not think that this is the problem. I
 tested a different mac with El Capitan (just to be sure that the problem
 might came from something related to my new mac) and we obtained the same
 problem. The version of macports is the most recent (I downloaded from the
 web).
 I had updated the ports before to install pgplot.

 I verified the environmental variable PGPLOT_DIR and PGPLOT_DEV and this
 is ok.

 I think this is a bug. The problem is pretty serious because I can not run
 my programs in interactive way (I have many of them)

 I put in annex the files reporting the example of program plus the macro
 necessary to run the program (mac90mac_base).
 This file has to be placed in the PATH (for example in the $HOME/bin).

 ./test.exe


 Waiting for your answer
 Best Regards

-- 
Ticket URL: <https://trac.macports.org/ticket/50375>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list