开发者

Python matplotlib repository ubuntu 10.10

开发者 https://www.devze.com 2023-02-12 05:39 出处:网络
Dear matplotlib-user and developer, I just wanted to use the latest version from the subversion-repository which I obtained from

Dear matplotlib-user and developer, I just wanted to use the latest version from the subversion-repository which I obtained from

svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib/lib/matplotlib/

Then I tried to load it from python and I obtained the error:

>>> import matplotlib
Traceback (most recent call last):
  File "<stdin>"开发者_开发知识库, line 1, in <module>
  File "matplotlib/__init__.py", line 104
SyntaxError: Non-ASCII character '\xd0' in file matplotlib/__init__.py on line 104, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

The reason is pretty clear since my subversion installation runs on a machine which has russian as its default language. The subversion command does the following replacement:

__version__  = '1.1.0svn'
__revision__ = '$Revision: 8900 $'
__date__     = '$Date: 2011-01-06 20:55:16 +0100 (Чт., 06 янв. 2011) $'

Does anybody know how I can configure (i)python to work out of the box? Thank you in advance, all the best!


matplotlib no longer uses these svn keywords (it doesn't even use svn anymore) so should no longer be an issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消