From: Andy D. <An...@Sa...> - 2014-10-12 21:00:35
|
Many thanks Ben and Thomas, the following worked! I think the problem was when I cloned the repo and download the source the first time I was not getting the correct version Andy wget https://github.com/matplotlib/matplotlib/archive/master.tar.gz tar -zxvf master.tar.gz cd matplotlib-master/ yum install freetype-devel yum install libpng-devel python2.7 setup.py build python2.7 setup.py install From: Benjamin Root <ben...@ou...> Date: Sunday, October 12, 2014 at 1:06 PM To: Thomas Caswell <tca...@gm...> Cc: Andrew Davidson <An...@Sa...>, matplotlib development list <mat...@li...> Subject: Re: [matplotlib-devel] trouble building on red hat. > Also, make sure that you don't have conflicting installs of packages all over > the place. Be sure to remove the build/ and dist/ directories if you have a > failed build before trying again. > > Also, it shouldn't be much of an issue that there are multiple pythons in the > same system, as python tends to do a good job keeping such things separate for > you. Just make sure you are using python2.7 and pip2.7 commands for the entire > software stack. > > Cheers! > Ben Root > > > On Sun, Oct 12, 2014 at 3:33 PM, Thomas Caswell <tca...@gm...> wrote: >> >> I think this is a bug that had been fixed on both master and 1.4.x. >> >> If I recall correctly this is an issue with free type (#3471 fixes it). The >> other work around is to install freetype-dev. >> >> Tom >> >> (From phone so chasing siren details is hard) >> >> On Oct 12, 2014 3:16 PM, "Andy Davidson" <An...@sa...> >> wrote: >>> I am having a heck of time getting matplotlib installed on my amazon ec2 >>> cluster. (I am new to python) >>> >>> >>> >>> I wonder if the problem is /usr/python points to an old version of python. I >>> need to use /usr/bin/python2.7 >>> >>> >>> >>> I have tried using yum, yum-builddep, pip2.7, downloading the the source , >>> and even cloning the master >>> >>> >>> >>> Yum see to know about /usr/bin/python which is an old version I need to use >>> /usr/bin/python2.7. >>> >>> >>> >>> I tried searching for a RPM >>> (http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/python-matplotlib) >>> how ever I only found really old version. >>> >>> >>> >>> >>> >>> I have tried editing File "setupext.py", line 940, in check, looks like the >>> min version is 2.4 I have 2.3.x >>> >>> >>> >>> But still can not figure out what the problem is >>> >>> >>> >>> Any suggestions would be greatly appreciated. >>> >>> >>> >>> Andy >>> >>> >>> >>> root@ip-172-31-17-158 matplotlib-1.4.0]$ pip2.7 install matplotlib >>> >>> Downloading/unpacking matplotlib >>> >>> Downloading matplotlib-1.4.0.tar.gz (51.2MB): 51.2MB downloaded >>> >>> Running setup.py (path:/tmp/pip_build_root/matplotlib/setup.py) egg_info >>> for package matplotlib >>> >>> >>> ============================================================================ >>> >>> Edit setup.cfg to change the build options >>> >>> >>> >>> BUILDING MATPLOTLIB >>> >>> matplotlib: yes [1.4.0] >>> >>> python: yes [2.7.5 (default, Sep 15 2014, 17:30:20) >>> [GCC >>> >>> 4.8.2 20140120 (Red Hat 4.8.2-16)]] >>> >>> platform: yes [linux2] >>> >>> >>> >>> REQUIRED DEPENDENCIES AND EXTENSIONS >>> >>> numpy: yes [version 1.9.0] >>> >>> six: yes [using six version 1.8.0] >>> >>> dateutil: yes [using dateutil version 2.2] >>> >>> tornado: yes [using tornado version 4.0.2] >>> >>> pyparsing: yes [using pyparsing version 2.0.3] >>> >>> pycxx: yes [Couldn't import. Using local copy.] >>> >>> libagg: yes [pkg-config information for 'libagg' could >>> not >>> >>> be found. Using local copy.] >>> >>> Traceback (most recent call last): >>> >>> File "<string>", line 17, in <module> >>> >>> File "/tmp/pip_build_root/matplotlib/setup.py", line 154, in <module> >>> >>> result = package.check() >>> >>> File "setupext.py", line 940, in check >>> >>> if 'No such file or directory\ngrep:' in version: >>> >>> TypeError: argument of type 'NoneType' is not iterable >>> >>> Complete output from command python setup.py egg_info: >>> >>> >>> ============================================================================ >>> >>> >>> >>> Edit setup.cfg to change the build options >>> >>> >>> >>> >>> >>> >>> >>> BUILDING MATPLOTLIB >>> >>> >>> >>> matplotlib: yes [1.4.0] >>> >>> >>> >>> python: yes [2.7.5 (default, Sep 15 2014, 17:30:20) [GCC >>> >>> >>> >>> 4.8.2 20140120 (Red Hat 4.8.2-16)]] >>> >>> >>> >>> platform: yes [linux2] >>> >>> >>> >>> >>> >>> >>> >>> REQUIRED DEPENDENCIES AND EXTENSIONS >>> >>> >>> >>> numpy: yes [version 1.9.0] >>> >>> >>> >>> six: yes [using six version 1.8.0] >>> >>> >>> >>> dateutil: yes [using dateutil version 2.2] >>> >>> >>> >>> tornado: yes [using tornado version 4.0.2] >>> >>> >>> >>> pyparsing: yes [using pyparsing version 2.0.3] >>> >>> >>> >>> pycxx: yes [Couldn't import. Using local copy.] >>> >>> >>> >>> libagg: yes [pkg-config information for 'libagg' could not >>> >>> >>> >>> be found. Using local copy.] >>> >>> >>> >>> Traceback (most recent call last): >>> >>> >>> >>> File "<string>", line 17, in <module> >>> >>> >>> >>> File "/tmp/pip_build_root/matplotlib/setup.py", line 154, in <module> >>> >>> >>> >>> result = package.check() >>> >>> >>> >>> File "setupext.py", line 940, in check >>> >>> >>> >>> if 'No such file or directory\ngrep:' in version: >>> >>> >>> >>> TypeError: argument of type 'NoneType' is not iterable >>> >>> >>> >>> ---------------------------------------- >>> >>> Cleaning up... >>> >>> Command python setup.py egg_info failed with error code 1 in >>> /tmp/pip_build_root/matplotlib >>> >>> Storing debug log for failure in /root/.pip/pip.log >>> >>> root@ip-172-31-17-158 matplotlib-1.4.0]$ >>> >>> >>> >>> >>> >>> This is the bottom of the debug log >>> >>> >>> >>> --------------------------------------- >>> >>> Cleaning up... >>> >>> Removing temporary dir /tmp/pip_build_root... >>> >>> Command python setup.py egg_info failed with error code 1 in >>> /tmp/pip_build_root/matplotlib >>> >>> Exception information: >>> >>> Traceback (most recent call last): >>> >>> File >>> "/usr/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/basecommand.py", >>> line 122, in main >>> >>> status = self.run(options, args) >>> >>> File >>> "/usr/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/commands/install.p >>> y", line 278, in run >>> >>> requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, >>> bundle=self.bundle) >>> >>> File "/usr/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py", >>> line 1229, in prepare_files >>> >>> req_to_install.run_egg_info() >>> >>> File "/usr/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py", >>> line 325, in run_egg_info >>> >>> command_desc='python setup.py egg_info') >>> >>> File "/usr/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/util.py", >>> line 697, in call_subprocess >>> >>> % (command_desc, proc.returncode, cwd)) >>> >>> InstallationError: Command python setup.py egg_info failed with error code 1 >>> in /tmp/pip_build_root/matplotlib >>> >>> root@ip-172-31-17-158 matplotlib-1.4.0]$ >>> >>> >>> >>> >>> ---------------------------------------------------------------------------- >>> -- >>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports >>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >>> http://p.sf.net/sfu/Zoho >>> _______________________________________________ >>> Matplotlib-devel mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel >>> >> >> ----------------------------------------------------------------------------->> - >> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports >> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >> http://p.sf.net/sfu/Zoho >> _______________________________________________ >> Matplotlib-devel mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel >> > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI > DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you > Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS > 3.0 Requirement 10 and 11.5 with EventLog Analyzer > http://p.sf.net/sfu/Zoho_______________________________________________ > Matplotlib-devel mailing list Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel |