[Matplotlib-users] obtaining version info
Hi, Perhaps I'm missing something really basic, but I can't figure out how to query pylab as to what version it is (the usual import foo, foo.__version doesn't work). Advice appreciated. --b - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] obtaining version info
I didn't see it either. For questions like this, I recommend heading to the #python channel on irc.freenode.net. If you find out how, please post. josh On Fri, 8 Dec 2006, belinda thom wrote: Hi, Perhaps I'm missing something really basic, but I can't figure out how to query pylab as to what version it is (the usual import foo, foo.__version doesn't work). Advice appreciated. --b - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] obtaining version info
I assume there must be a reason for this:: import pylab pylab.__version__ Traceback (most recent call last): File stdin, line 1, in module AttributeError: 'module' object has no attribute '__version__' That has always bothered me. But of course you can:: import matplotlib matplotlib.__version__ '0.87.7' hth, Alan Isaac - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] obtaining version info
Alan G Isaac wrote: I assume there must be a reason for this:: import pylab pylab.__version__ Traceback (most recent call last): File stdin, line 1, in module AttributeError: 'module' object has no attribute '__version__' That has always bothered me. But of course you can:: import matplotlib matplotlib.__version__ '0.87.7' After a little experimentation I have tentatively concluded that __version__ only gets imported if it is a package attribute--that is, if it is defined in __init__.py. Matplotlib is a package but pylab is just a module, so it does not seem to be possible to give it matplotlib's __version__. I could not find anything in the python documentation about this, though. Eric - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users