You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
1
(2) |
2
(1) |
3
|
4
(1) |
5
(1) |
6
(5) |
7
(8) |
8
(4) |
9
|
10
(1) |
11
(1) |
12
(2) |
13
(7) |
14
(3) |
15
(4) |
16
(4) |
17
(3) |
18
(4) |
19
(5) |
20
(2) |
21
(13) |
22
(6) |
23
(5) |
24
(5) |
25
(1) |
26
(14) |
27
(2) |
28
(5) |
29
(3) |
30
(3) |
31
(4) |
|
|
|
|
|
|
How to do that is dependent on which gui frame work you are using and may be globally controlled at the desktop environment level. Tom On Thu, May 28, 2015, 12:13 Blingo <pet...@ho...> wrote: > Hi there > > Just want to disable the X at the top right. It's the default frame used by > matplotlib when plotting. > Windows. > > Thanks > > Peter > > > > -- > View this message in context: > http://matplotlib.1069221.n5.nabble.com/Disable-the-Close-Button-from-the-plot-dialogue-tp45633.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
On 2015年05月28日 3:13 AM, Bryan Williams wrote: > I have gcc on the box. I also installed the C compiler for Solaris (cc), > but I couldn't seem to find an option to switch it so that it uses cc > rather than gcc. Maybe you can do this with an environment variable? export CC=/usr/bin/cc It does look like there is a problem with scrambled environments. The redefinition warning looks potentially troublesome; and the error looks like a conflict between two versions of the standard C library. From "man swab" on Solaris: NAME swab - swap bytes SYNOPSIS #include <stdlib.h> void swab(const char *src, char *dest, ssize_t nbytes); XPG4, SUS, SUSv2, SUSv3 #include <unistd.h> void swab(const void *restrict src, void *restrict dest, ssize_t nbytes); I think you want the second version, consistently, but something is also hitting the first version. Maybe "XPG4" or one of the other 4 options needs to be defined when each library is compiled with /usr/bin/cc? I think the stdlib declaration is old; the unistd version is more modern. That's all very vague, I know. Obviously, I don't actually know how to solve the problem. Eric
Hi there Just want to disable the X at the top right. It's the default frame used by matplotlib when plotting. Windows. Thanks Peter -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Disable-the-Close-Button-from-the-plot-dialogue-tp45633.html Sent from the matplotlib - users mailing list archive at Nabble.com.
I think there is on open bug about compilation failures on Solaris which we never sorted out due to not having access to a test machine. On Thu, May 28, 2015, 09:13 Bryan Williams <bry...@gm...> wrote: > Thanks to the both of you. > > First off, apologies for getting back to you several days late. I was out > of town for the holiday weekend, and I didn't get a chance to work on this > for the last two days as I had other business to tend to on Tuesday, and > was out of the office all day Wednesday. > > I tried to install from the master build on Github, and it seemed to run > fine, until I ended up with this error (and verbose details, text wall > incoming): > > > ============================================================================ > Edit setup.cfg to change the build options > > BUILDING MATPLOTLIB > matplotlib: yes [1.5.dev1] > python: yes [3.4.3 (default, May 15 2015, 13:52:23) [GCC > 4.9.2]] > platform: yes [sunos5] > > REQUIRED DEPENDENCIES AND EXTENSIONS > numpy: yes [version 1.9.2] > six: yes [using six version 1.9.0] > dateutil: yes [using dateutil version 2.4.2] > pytz: yes [using pytz version 2015.4] > tornado: yes [tornado was not found. It is required for the > WebAgg backend. pip/easy_install may attempt to > install it after matplotlib.] > pyparsing: yes [using pyparsing version 2.0.3] > libagg: yes [pkg-config information for 'libagg' could not > be found. Using local copy.] > freetype: yes [version 2.4.8] > png: yes [version 1.2.35] > qhull: yes [pkg-config information for 'qhull' could not > be > found. Using local copy.] > > OPTIONAL SUBPACKAGES > sample_data: yes [installing] > toolkits: yes [installing] > tests: yes [using nose version 1.3.6 / using > unittest.mock] > toolkits_tests: yes [using nose version 1.3.6 / using > unittest.mock] > > OPTIONAL BACKEND EXTENSIONS > macosx: no [Mac OS-X only] > qt5agg: no [PyQt5 not found] > qt4agg: no [PySide not found; PyQt4 not found] > gtk3agg: no [Requires pygobject to be installed.] > gtk3cairo: no [Requires cairocffi or pycairo to be > installed.] > gtkagg: no [Requires pygtk] > tkagg: yes [installing, version not identified] > wxagg: no [requires wxPython] > gtk: no [Requires pygtk] > agg: yes [installing] > cairo: no [cairocffi or pycairo not found] > windowing: no [Microsoft Windows only] > > OPTIONAL LATEX DEPENDENCIES > dvipng: no > ghostscript: no > latex: no > pdftops: no > > running build > running build_py > copying lib/matplotlib/mpl-data/matplotlibrc -> > build/lib.solaris-2.10-sun4v.32bit-3.4/matplotlib/mpl-data > running build_ext > building 'matplotlib.ft2font' extension > gcc -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -fPIC > -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_ft2font_ARRAY_API > -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION > -I/usr/local/lib/python3.4/site-packages/numpy/core/include > -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include > -I. -I/usr/local/include/python3.4m -c src/ft2font.cpp -o > build/temp.solaris-2.10-sun4v.32bit-3.4/src/ft2font.o > In file included from /usr/local/include/python3.4m/Python.h:8:0, > from src/mplutils.h:21, > from src/ft2font.cpp:8: > /usr/local/include/python3.4m/pyconfig.h:1387:0: warning: > "_FILE_OFFSET_BITS" redefined > #define _FILE_OFFSET_BITS 64 > ^ > In file included from > /opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/wchar.h:20:0, > from /opt/csw/include/c++/4.9.2/cwchar:44, > from /opt/csw/include/c++/4.9.2/bits/postypes.h:40, > from /opt/csw/include/c++/4.9.2/bits/char_traits.h:40, > from /opt/csw/include/c++/4.9.2/string:40, > from src/ft2font.cpp:5: > /opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/sys/feature_tests.h:196:0: > note: this is the location of the previous definition > #define _FILE_OFFSET_BITS 32 > ^ > gcc -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -fPIC > -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_ft2font_ARRAY_API > -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION > -I/usr/local/lib/python3.4/site-packages/numpy/core/include > -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include > -I. -I/usr/local/include/python3.4m -c src/ft2font_wrapper.cpp -o > build/temp.solaris-2.10-sun4v.32bit-3.4/src/ft2font_wrapper.o > In file included from /usr/local/include/python3.4m/Python.h:8:0, > from src/mplutils.h:21, > from src/ft2font_wrapper.cpp:1: > /usr/local/include/python3.4m/pyconfig.h:1387:0: warning: > "_FILE_OFFSET_BITS" redefined > #define _FILE_OFFSET_BITS 64 > ^ > In file included from /usr/include/sys/int_types.h:34:0, > from /usr/include/sys/stdint.h:17, > from /usr/include/stdint.h:17, > from > /opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include/stdint.h:9, > from src/mplutils.h:11, > from src/ft2font_wrapper.cpp:1: > /opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/sys/feature_tests.h:196:0: > note: this is the location of the previous definition > #define _FILE_OFFSET_BITS 32 > ^ > In file included from /usr/local/include/python3.4m/Python.h:36:0, > from src/mplutils.h:21, > from src/ft2font_wrapper.cpp:1: > /usr/include/unistd.h:496:75: error: conflicting declaration of C function > 'void swab(const void*, void*, ssize_t)' > extern void swab(const void *_RESTRICT_KYWD, void *_RESTRICT_KYWD, > ssize_t); > > ^ > In file included from /usr/local/include/python3.4m/Python.h:34:0, > from src/mplutils.h:21, > from src/ft2font_wrapper.cpp:1: > /usr/include/stdlib.h:144:13: note: previous declaration 'void swab(const > char*, char*, ssize_t)' > extern void swab(const char *, char *, ssize_t); > ^ > error: command 'gcc' failed with exit status 1 > > > I have gcc on the box. I also installed the C compiler for Solaris (cc), > but I couldn't seem to find an option to switch it so that it uses cc > rather than gcc. > > Thanks again for all you do, and thanks for the help. > > -- BMW > > On Sun, May 24, 2015 at 2:05 PM, Thomas Caswell <tca...@gm...> > wrote: > >> Bryan, >> >> If you subscribe to the list you will be able to post with out moderation. >> >> Does this happen with any of the other sample data? >> >> I don't think that `get_sample_data` is doing you any good here as you >> are passing it an absolute path (from `os.getcwd()`) which is passed into >> `os.path.join` which when it encounters and absolute path discards >> everything to the left so that line is just returning back your input. >> >> Does it work to open any other png or does _only_ this png have issues? >> >> You are reaching into the nominally private parts of the mpl api here, I >> would suggest using `mpl.image.imread` instead. >> >> It might be worth using something like PIL/pillow, imread ( >> https://pypi.python.org/pypi/imread), imageio (https://imageio.github.io/) >> or scikit-image for alternate implementations of png readers. >> >> None of the core developers have access to a Solaris machine so it is >> very difficult for us to provide much better help on this. >> >> Tom >> >> On Sun, May 24, 2015 at 1:38 PM Bryan Williams < >> bry...@gm...> wrote: >> >>> Good afternoon, >>> >>> >>> >>> My name is Bryan Williams. I work for the Florida Forest Service in >>> their Forest Logistics and Support Bureau. >>> >>> >>> >>> I’m working on a program that takes weather data and visualizes it using >>> matplotlib and Basemap. I’m currently having an issue with matplotlib 1.4.3 >>> for Python 3.4.3 running under Solaris 5.10. I am getting a Runtime Error >>> whenever I try calling the read_png file from matplotlib._png. (I’m using >>> this to add a small .png file of the Forest Service’s sheld to the >>> picture). The error is the following: >>> >>> >>> >>> Traceback (most recent call last): >>> >>> File "drawmaps.py", line 845, in <module> >>> >>> arr_lena = read_png(fn) >>> >>> RuntimeError: Error closing dupe file handle >>> >>> >>> >>> I don’t quite understand the error I’m getting, and as you can see, the >>> traceback gives very little information. I also tried Google for help, but >>> to no avail; entering the error message as is into Google doesn’t return >>> anything relating to the problem, and putting quotes around "Error closing >>> dupe file handle" yields about 10 results, with one of them being an >>> unanswered question from 2014 regarding the same issue. >>> >>> >>> >>> As per your request on the website, here’s what I get from uname –a: >>> >>> >>> >>> SunOS [server name withheld] 5.10 Generic_141444-09 sun4v sparc >>> SUNW,SPARC-Enterprise-T5220 >>> >>> >>> >>> I built Python 3.4.3 from source and installed matplotlib through pip, >>> and didn’t make any changes to the matplotlibrc file. >>> >>> >>> >>> I was able to reproduce the problem again running these commands in the >>> Python interactive prompt, which emulates the snippet of script that causes >>> the error: >>> >>> >>> >>> Python 3.4.3 (default, May 15 2015, 13:52:23) >>> >>> [GCC 4.9.2] on sunos5 >>> >>> Type "help", "copyright", "credits" or "license" for more information. >>> >>> >>> from matplotlib._png import read_png >>> >>> >>> from matplotlib.cbook import get_sample_data >>> >>> >>> import os; path=os.getcwd() >>> >>> >>> fn = get_sample_data(path + '/resources/shield.png', asfileobj=False) >>> >>> >>> arr_lena = read_png(fn) >>> >>> Traceback (most recent call last): >>> >>> File "<stdin>", line 1, in <module> >>> >>> RuntimeError: Error closing dupe file handle >>> >>> >>> >>> >>> >>> If you’d like a copy of the problem script, please let me know. Any and >>> all help is greatly appreciated. >>> >>> >>> >>> Thank you in advance! >>> >>> >>> >>> -- BMW >>> >>> ------------------------------------------------------------------------------ >>> One dashboard for servers and applications across Physical-Virtual-Cloud >>> Widest out-of-the-box monitoring support with 50+ applications >>> Performance metrics, stats and reports that give you Actionable Insights >>> Deep dive visibility with transaction tracing using APM Insight. >>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >> >
Thanks to the both of you. First off, apologies for getting back to you several days late. I was out of town for the holiday weekend, and I didn't get a chance to work on this for the last two days as I had other business to tend to on Tuesday, and was out of the office all day Wednesday. I tried to install from the master build on Github, and it seemed to run fine, until I ended up with this error (and verbose details, text wall incoming): ============================================================================ Edit setup.cfg to change the build options BUILDING MATPLOTLIB matplotlib: yes [1.5.dev1] python: yes [3.4.3 (default, May 15 2015, 13:52:23) [GCC 4.9.2]] platform: yes [sunos5] REQUIRED DEPENDENCIES AND EXTENSIONS numpy: yes [version 1.9.2] six: yes [using six version 1.9.0] dateutil: yes [using dateutil version 2.4.2] pytz: yes [using pytz version 2015.4] tornado: yes [tornado was not found. It is required for the WebAgg backend. pip/easy_install may attempt to install it after matplotlib.] pyparsing: yes [using pyparsing version 2.0.3] libagg: yes [pkg-config information for 'libagg' could not be found. Using local copy.] freetype: yes [version 2.4.8] png: yes [version 1.2.35] qhull: yes [pkg-config information for 'qhull' could not be found. Using local copy.] OPTIONAL SUBPACKAGES sample_data: yes [installing] toolkits: yes [installing] tests: yes [using nose version 1.3.6 / using unittest.mock] toolkits_tests: yes [using nose version 1.3.6 / using unittest.mock] OPTIONAL BACKEND EXTENSIONS macosx: no [Mac OS-X only] qt5agg: no [PyQt5 not found] qt4agg: no [PySide not found; PyQt4 not found] gtk3agg: no [Requires pygobject to be installed.] gtk3cairo: no [Requires cairocffi or pycairo to be installed.] gtkagg: no [Requires pygtk] tkagg: yes [installing, version not identified] wxagg: no [requires wxPython] gtk: no [Requires pygtk] agg: yes [installing] cairo: no [cairocffi or pycairo not found] windowing: no [Microsoft Windows only] OPTIONAL LATEX DEPENDENCIES dvipng: no ghostscript: no latex: no pdftops: no running build running build_py copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.solaris-2.10-sun4v.32bit-3.4/matplotlib/mpl-data running build_ext building 'matplotlib.ft2font' extension gcc -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_ft2font_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/usr/local/lib/python3.4/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/usr/local/include/python3.4m -c src/ft2font.cpp -o build/temp.solaris-2.10-sun4v.32bit-3.4/src/ft2font.o In file included from /usr/local/include/python3.4m/Python.h:8:0, from src/mplutils.h:21, from src/ft2font.cpp:8: /usr/local/include/python3.4m/pyconfig.h:1387:0: warning: "_FILE_OFFSET_BITS" redefined #define _FILE_OFFSET_BITS 64 ^ In file included from /opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/wchar.h:20:0, from /opt/csw/include/c++/4.9.2/cwchar:44, from /opt/csw/include/c++/4.9.2/bits/postypes.h:40, from /opt/csw/include/c++/4.9.2/bits/char_traits.h:40, from /opt/csw/include/c++/4.9.2/string:40, from src/ft2font.cpp:5: /opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/sys/feature_tests.h:196:0: note: this is the location of the previous definition #define _FILE_OFFSET_BITS 32 ^ gcc -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_ft2font_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/usr/local/lib/python3.4/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/usr/local/include/python3.4m -c src/ft2font_wrapper.cpp -o build/temp.solaris-2.10-sun4v.32bit-3.4/src/ft2font_wrapper.o In file included from /usr/local/include/python3.4m/Python.h:8:0, from src/mplutils.h:21, from src/ft2font_wrapper.cpp:1: /usr/local/include/python3.4m/pyconfig.h:1387:0: warning: "_FILE_OFFSET_BITS" redefined #define _FILE_OFFSET_BITS 64 ^ In file included from /usr/include/sys/int_types.h:34:0, from /usr/include/sys/stdint.h:17, from /usr/include/stdint.h:17, from /opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include/stdint.h:9, from src/mplutils.h:11, from src/ft2font_wrapper.cpp:1: /opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/sys/feature_tests.h:196:0: note: this is the location of the previous definition #define _FILE_OFFSET_BITS 32 ^ In file included from /usr/local/include/python3.4m/Python.h:36:0, from src/mplutils.h:21, from src/ft2font_wrapper.cpp:1: /usr/include/unistd.h:496:75: error: conflicting declaration of C function 'void swab(const void*, void*, ssize_t)' extern void swab(const void *_RESTRICT_KYWD, void *_RESTRICT_KYWD, ssize_t); ^ In file included from /usr/local/include/python3.4m/Python.h:34:0, from src/mplutils.h:21, from src/ft2font_wrapper.cpp:1: /usr/include/stdlib.h:144:13: note: previous declaration 'void swab(const char*, char*, ssize_t)' extern void swab(const char *, char *, ssize_t); ^ error: command 'gcc' failed with exit status 1 I have gcc on the box. I also installed the C compiler for Solaris (cc), but I couldn't seem to find an option to switch it so that it uses cc rather than gcc. Thanks again for all you do, and thanks for the help. -- BMW On Sun, May 24, 2015 at 2:05 PM, Thomas Caswell <tca...@gm...> wrote: > Bryan, > > If you subscribe to the list you will be able to post with out moderation. > > Does this happen with any of the other sample data? > > I don't think that `get_sample_data` is doing you any good here as you are > passing it an absolute path (from `os.getcwd()`) which is passed into > `os.path.join` which when it encounters and absolute path discards > everything to the left so that line is just returning back your input. > > Does it work to open any other png or does _only_ this png have issues? > > You are reaching into the nominally private parts of the mpl api here, I > would suggest using `mpl.image.imread` instead. > > It might be worth using something like PIL/pillow, imread ( > https://pypi.python.org/pypi/imread), imageio (https://imageio.github.io/) > or scikit-image for alternate implementations of png readers. > > None of the core developers have access to a Solaris machine so it is very > difficult for us to provide much better help on this. > > Tom > > On Sun, May 24, 2015 at 1:38 PM Bryan Williams < > bry...@gm...> wrote: > >> Good afternoon, >> >> >> >> My name is Bryan Williams. I work for the Florida Forest Service in their >> Forest Logistics and Support Bureau. >> >> >> >> I’m working on a program that takes weather data and visualizes it using >> matplotlib and Basemap. I’m currently having an issue with matplotlib 1.4.3 >> for Python 3.4.3 running under Solaris 5.10. I am getting a Runtime Error >> whenever I try calling the read_png file from matplotlib._png. (I’m using >> this to add a small .png file of the Forest Service’s sheld to the >> picture). The error is the following: >> >> >> >> Traceback (most recent call last): >> >> File "drawmaps.py", line 845, in <module> >> >> arr_lena = read_png(fn) >> >> RuntimeError: Error closing dupe file handle >> >> >> >> I don’t quite understand the error I’m getting, and as you can see, the >> traceback gives very little information. I also tried Google for help, but >> to no avail; entering the error message as is into Google doesn’t return >> anything relating to the problem, and putting quotes around "Error closing >> dupe file handle" yields about 10 results, with one of them being an >> unanswered question from 2014 regarding the same issue. >> >> >> >> As per your request on the website, here’s what I get from uname –a: >> >> >> >> SunOS [server name withheld] 5.10 Generic_141444-09 sun4v sparc >> SUNW,SPARC-Enterprise-T5220 >> >> >> >> I built Python 3.4.3 from source and installed matplotlib through pip, >> and didn’t make any changes to the matplotlibrc file. >> >> >> >> I was able to reproduce the problem again running these commands in the >> Python interactive prompt, which emulates the snippet of script that causes >> the error: >> >> >> >> Python 3.4.3 (default, May 15 2015, 13:52:23) >> >> [GCC 4.9.2] on sunos5 >> >> Type "help", "copyright", "credits" or "license" for more information. >> >> >>> from matplotlib._png import read_png >> >> >>> from matplotlib.cbook import get_sample_data >> >> >>> import os; path=os.getcwd() >> >> >>> fn = get_sample_data(path + '/resources/shield.png', asfileobj=False) >> >> >>> arr_lena = read_png(fn) >> >> Traceback (most recent call last): >> >> File "<stdin>", line 1, in <module> >> >> RuntimeError: Error closing dupe file handle >> >> >> >> >> >> If you’d like a copy of the problem script, please let me know. Any and >> all help is greatly appreciated. >> >> >> >> Thank you in advance! >> >> >> >> -- BMW >> >> ------------------------------------------------------------------------------ >> One dashboard for servers and applications across Physical-Virtual-Cloud >> Widest out-of-the-box monitoring support with 50+ applications >> Performance metrics, stats and reports that give you Actionable Insights >> Deep dive visibility with transaction tracing using APM Insight. >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >