For the record, this problem can occur because sometimes the version of cairo found on your system (e.g. because sometimes Anaconda installs another version of cairo) does not contain the X-windows drivers
The solution is to install cairo yourself. For splash installation via homebrew, this is now done automatically. Otherwise you can use the install-cairo.sh script in the splash root-level directory to install a version of cairo that contains X-windows drivers. You also need to be careful with your library search path (LD_LIBRARY_PATH or DYLD_LIBRARY_PATH) at runtime to make sure the correct copy of libcairo is found first. Again, this is automatic if you install splash via homebrew. Best wishes, Daniel > On 11 Mar 2019, at 12:26 am, [email protected] wrote: > > Hi guys, > > > I also encountered this problem in my Mac which is basically saying " ERROR > opening plotting device". > > I reinstalled both of the splash using brew and giza which are both new > versions but I still get this error. My fortran is 8.3.0. Could it be the > source of the error? If so how should I resolve it? > > Thanks a lot for your helps. > Razi > > On Wednesday, January 30, 2019 at 10:16:39 PM UTC-5, [email protected] > wrote: > Dear Manuel, > > This is an issue with splash, not phantom. Not being able to open a plotting > device may be an issue with the installation of giza or cairo. There was also > a gfortran compiler bug which caused this same error which I fixed a few > months ago (was specifically an problem in gfortran v8.2.0). > > If you want to install splash without any problems on a Mac I recommend using > either macports: > > sudo port install splash > > Or, with homebrew instead, > > brew tap danieljprice/all > brew install splash > > Installing splash this way should solve the immediate issue. > > Best wishes, > > Daniel > > > On 5 Dec 2018, at 6:20 am, mlampon <[email protected]> wrote: > > > > Dear Daniel, > > > > I just joined to Phantom users google group but I didn't know if it is > > right to write there or if it is better to send you this email with the > > problems I got installing the program. Anyway, I guess that if you consider > > interesting for the google group, you will put it. > > > > I tried to install phantom on my computer, a mac with High Sierra, > > following instructions from the wiki page: > > https://bitbucket.org/danielprice/phantom/wiki/getstarted > > > > The test suite passed but with some warnings. I attached the terminal text > > (if you want to check anything). > > After that, I tried to run the example, following the wiki page (I attach > > the terminal text too). When I ran splash, I got this "ERROR opening > > plotting device" that you can see below. > > Sorry if the problem I got has a trivial solution, but is my first contact > > with this kind of code. Please, could you tell me how to fix the problem? > > > > Thanks a lot, > > Manuel > > > > ---------------------------- > > > > * SPLASH comes with ABSOLUTELY NO WARRANTY. > > This is free software; and you are welcome to redistribute it > > under certain conditions (see LICENCE file for details). * > > > > Updates/userguide: http://users.monash.edu.au/~dprice/splash > > Email: [email protected] or [email protected] > > Please cite Price (2007), PASA, 24, 159-173 (arXiv:0709.0832) if you > > use SPLASH in print and don't forget to send pics for the gallery. > > > > splash.defaults not found: using default settings > > 21 filenames read from command line > > reading sphNG format > >>>>>>>>>>>>>>>>>>>>>>>>>>> blast_00000 <<<<<<<<<<<<<<<<<<<<<<<<<< > > File ID: FT:Phantom (hydro): 03/12/2018 19:02:28.9 > > npart = 125000 MPI blocks = 1 > > header contains 12 ints, 35 reals, 0 real4s, 4 doubles > > block 1 dim = 125000 nint = 0 0 0 0 0 nreal = 7 4 0 > >> allocating memory: parts = 125002 steps = 1 cols = 13 > > time = 0.0000E+00 gamma = 1.667 hfact = 1.20 tolh = 1.0E-04 > > WARNING: can't locate iphase in dump > > n(gas) = 125000 > > splash.units not found > > > > setting plot limits: steps 1-> 1 cols 1-> 13 > > warning: particle mass min = max = 8.00E-06 > > warning: h min = max = 2.40E-02 > > warning: density min = max = 1.00E+00 > > warning: v_x min = max = 0.00E+00 > > warning: v_y min = max = 0.00E+00 > > warning: v_z min = max = 0.00E+00 > > warning: div v min = max = -0.00E+00 > > splash.limits not found > > > > You may choose from a delectable sample of plots > > ------------------------------------------------------- > > 1) x 8) v_y > > 2) y 9) v_z > > 3) z 10) u > > 4) particle mass 11) \alpha > > 5) h 12) div v > > 6) density 13) dt > > 7) v_x > > ------------------------------------------------------- > > 14) multiplot [ 4 ] m) set multiplot > > ------------------------------------------------------- > > d(ata) p(age) o(pts) l(imits) le(g)end h(elp) > > r(ender) v(ector) x(sec/rotate) s,S(ave) q(uit) > > ------------------------------------------------------- > > Please enter your selection now (y axis or option):6 > > (x axis) (default=1): 1 > > (render) (0=none) ([0:13], default=0): 0 > > Graphics device/type (? to see list, default /xw):/png > > ERROR opening plotting device > > Graphics device/type (? to see list, default /xw): > > ERROR opening plotting device > > Graphics device/type (? to see list, default /xw): > > <Running_an_example.txt><test.txt> > > > -- > You received this message because you are subscribed to the Google Groups > "SPLASH users forum" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/splash-users. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "SPLASH users forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/splash-users/E5228188-30E5-4087-868C-565D07D816BC%40monash.edu.
