Re: [Matplotlib-users] use the github version on a linux box

2012-02-08 Thread John Hunter
On Wed, Feb 8, 2012 at 11:06 AM, Chris plut...@gmail.com wrote:

 I was trying to test the patch mike put in to fix the single pixel
 plotting issue, but just realized that this was a Mac version.  Can I
 use it on a linux box? How?


These instructions are for an ubuntu based system -- if you are on a
different version of linux you may need different commands to install git
and the mpl build dependencies

# install git to checkout the mpl src code
sudo apt-get install git

# install the pre-reqs to build matplotlib from source
sudo apt-get build-dep python-matplotlib

# get the latest released branch of matplotlib
git clone g...@github.com:matplotlib/matplotlib.git matplotlib.git

# cd into the matplotlib directory and create a branch off of the release
branch to test
cd matplotlib.git
git checkout -b mdboom-pixel_marker v1.1.x

# pull in Michael's changes
git pull https://github.com/mdboom/matplotlib.git pixel_marker

# build the matplotlib source code
python setup.py build

# install it
sudo python setup.py install
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] use the github version on a linux box

2012-02-08 Thread Chris
Thanks John.  Since I already have a running copy of mpl, I skipped to
the git clone step, but get this error:

Permission denied (publickey).
fatal: The remote end hung up unexpectedly

I'm a complete noob on git, so please bear with me.

- Chris

On Wed, Feb 8, 2012 at 9:31 AM, John Hunter jdh2...@gmail.com wrote:


 On Wed, Feb 8, 2012 at 11:06 AM, Chris plut...@gmail.com wrote:

 I was trying to test the patch mike put in to fix the single pixel
 plotting issue, but just realized that this was a Mac version.  Can I
 use it on a linux box? How?


 These instructions are for an ubuntu based system -- if you are on a
 different version of linux you may need different commands to install git
 and the mpl build dependencies

 # install git to checkout the mpl src code
 sudo apt-get install git

 # install the pre-reqs to build matplotlib from source
 sudo apt-get build-dep python-matplotlib

 # get the latest released branch of matplotlib
 git clone g...@github.com:matplotlib/matplotlib.git matplotlib.git

 # cd into the matplotlib directory and create a branch off of the release
 branch to test
 cd matplotlib.git
 git checkout -b mdboom-pixel_marker v1.1.x

 # pull in Michael's changes
 git pull https://github.com/mdboom/matplotlib.git pixel_marker

 # build the matplotlib source code
 python setup.py build

 # install it
 sudo python setup.py install

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] use the github version on a linux box

2012-02-08 Thread John Hunter
On Wed, Feb 8, 2012 at 11:39 AM, Chris plut...@gmail.com wrote:

 Thanks John.  Since I already have a running copy of mpl, I skipped to
 the git clone step, but get this error:

 Permission denied (publickey).
 fatal: The remote end hung up unexpectedly

 I'm a complete noob on git, so please bear with me.



I think I should have pointed you to the read only address.  Try this:


 git pull git://github.com/mdboom/matplotlib.git pixel_marker

JDH
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] use the github version on a linux box

2012-02-08 Thread Chris
This time the error is:

fatal: Not a git repository (or any of the parent directories): .git

I guess that I have not be able to establish a local git tree since the command

git clone g...@github.com:matplotlib/matplotlib.git matplotlib.git

did not go through.

- Chris

On Wed, Feb 8, 2012 at 9:48 AM, John Hunter jdh2...@gmail.com wrote:


 On Wed, Feb 8, 2012 at 11:39 AM, Chris plut...@gmail.com wrote:

 Thanks John.  Since I already have a running copy of mpl, I skipped to
 the git clone step, but get this error:

 Permission denied (publickey).
 fatal: The remote end hung up unexpectedly

 I'm a complete noob on git, so please bear with me.



 I think I should have pointed you to the read only address.  Try this:


  git pull git://github.com/mdboom/matplotlib.git pixel_marker

 JDH


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] use the github version on a linux box

2012-02-08 Thread Tony Yu
On Wed, Feb 8, 2012 at 12:58 PM, Chris plut...@gmail.com wrote:

 This time the error is:

 fatal: Not a git repository (or any of the parent directories): .git

 I guess that I have not be able to establish a local git tree since the
 command

 git clone g...@github.com:matplotlib/matplotlib.git matplotlib.git

 did not go through.

 - Chris


I don't think you want the .git at the very end of the clone command.
That just tells get where (i.e. new directory) to put the repo.

-Tony


 On Wed, Feb 8, 2012 at 9:48 AM, John Hunter jdh2...@gmail.com wrote:
 
 
  On Wed, Feb 8, 2012 at 11:39 AM, Chris plut...@gmail.com wrote:
 
  Thanks John.  Since I already have a running copy of mpl, I skipped to
  the git clone step, but get this error:
 
  Permission denied (publickey).
  fatal: The remote end hung up unexpectedly
 
  I'm a complete noob on git, so please bear with me.
 
 
 
  I think I should have pointed you to the read only address.  Try this:
 
 
   git pull git://github.com/mdboom/matplotlib.git pixel_marker
 
  JDH
 


 --
 Keep Your Developer Skills Current with LearnDevNow!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-d2d
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] use the github version on a linux box

2012-02-08 Thread John Hunter
On Wed, Feb 8, 2012 at 11:58 AM, Chris plut...@gmail.com wrote:

 This time the error is:

 fatal: Not a git repository (or any of the parent directories): .git

 I guess that I have not be able to establish a local git tree since the
 command

 git clone g...@github.com:matplotlib/matplotlib.git matplotlib.git

 did not go through.


I see, that is also the ssh version.  Here is the http read only version.
 Updated my complete instructions:

# install git to checkout the mpl src code
sudo apt-get install git

# install the pre-reqs to build matplotlib from source
sudo apt-get build-dep python-matplotlib

# get the latest released branch of matplotlib
git clone git://github.com/matplotlib/matplotlib.git matplotlib.git

# cd into the matplotlib directory and create a branch off of the release
branch to test
cd matplotlib.git
git checkout -b mdboom-pixel_marker v1.1.x

# pull in Michael's changes
git pull git://github.com/mdboom/matplotlib.git pixel_marker

# build the matplotlib source code
python setup.py build

# install it
sudo python setup.py install
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] use the github version on a linux box

2012-02-08 Thread John Hunter
On Wed, Feb 8, 2012 at 12:06 PM, Tony Yu tsy...@gmail.com wrote:

 git clone g...@github.com:matplotlib/matplotlib.git matplotlib.git

 did not go through.

 - Chris


 I don't think you want the .git at the very end of the clone command.
 That just tells get where (i.e. new directory) to put the repo.


I don't think that is the problem.  I just add the .git extension because
the default is to check out a directory called matplotlib which if it is
located in the path you are running or testing from, will confuse the
import.  So I just add some extension so python won't confuse the mpl src
dir (matplotlib.git) with the mpl package (matplotlib).
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] use the github version on a linux box

2012-02-08 Thread Chris
New error at `git checkout -b mdboom-pixel_marker v1.1.x':

fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'v1.1.x' which can not be resolved as commit?

- Chris

On Wed, Feb 8, 2012 at 10:13 AM, John Hunter jdh2...@gmail.com wrote:


 On Wed, Feb 8, 2012 at 12:06 PM, Tony Yu tsy...@gmail.com wrote:

 git clone g...@github.com:matplotlib/matplotlib.git matplotlib.git

 did not go through.

 - Chris


 I don't think you want the .git at the very end of the clone command.
 That just tells get where (i.e. new directory) to put the repo.


 I don't think that is the problem.  I just add the .git extension because
 the default is to check out a directory called matplotlib which if it is
 located in the path you are running or testing from, will confuse the
 import.  So I just add some extension so python won't confuse the mpl src
 dir (matplotlib.git) with the mpl package (matplotlib).

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] use the github version on a linux box

2012-02-08 Thread Dale Chayes
I interpreted the public key error (as did others) to be an ssh issue.  For a 
publicly readable approach this seems to work:

[dhcp-90-166:python/matplotlib/git] dale% git clone 
git://github.com/matplotlib/matplotlib.git
Cloning into matplotlib...
remote: Counting objects: 57725, done.
remote: Compressing objects: 100% (13597/13597), done.
remote: Total 57725 (delta 44284), reused 57317 (delta 43924)
Receiving objects: 100% (57725/57725), 81.69 MiB | 2.67 MiB/s, done.
Resolving deltas: 100% (44284/44284), done.
[dhcp-90-166:python/matplotlib/git] dale% ll
total 0
drwxr-xr-x   3 dale  staff   102 Feb  8 13:20 .
drwxr-xr-x   5 dale  staff   170 Feb  8 13:08 ..
drwxr-xr-x  33 dale  staff  1122 Feb  8 13:21 matplotlib
[dhcp-90-166:python/matplotlib/git] dale% 

-Dale



On Feb 8, 2012, at 13:13 , John Hunter wrote:

 
 
 On Wed, Feb 8, 2012 at 12:06 PM, Tony Yu tsy...@gmail.com wrote:
 
 git clone g...@github.com:matplotlib/matplotlib.git matplotlib.git
 
 did not go through.
 
 - Chris
 
 
 I don't think you want the .git at the very end of the clone command. That 
 just tells get where (i.e. new directory) to put the repo.
 
 
 I don't think that is the problem.  I just add the .git extension because the 
 default is to check out a directory called matplotlib which if it is 
 located in the path you are running or testing from, will confuse the import. 
  So I just add some extension so python won't confuse the mpl src dir 
 (matplotlib.git) with the mpl package (matplotlib).
 --
 Keep Your Developer Skills Current with LearnDevNow!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-d2d___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] use the github version on a linux box

2012-02-08 Thread Tony Yu
On Wed, Feb 8, 2012 at 1:20 PM, Chris plut...@gmail.com wrote:

 New error at `git checkout -b mdboom-pixel_marker v1.1.x':

 fatal: git checkout: updating paths is incompatible with switching
 branches.
 Did you intend to checkout 'v1.1.x' which can not be resolved as commit?

 - Chris


That looks like something I've done before without issue. Maybe you're on
an older version of git. In any case, you can break this up into two steps

# change to maintenance branch
git checkout v1.1.x

# create new branch based on current checkout
git checkout -b mdboom-pixel_marker


Then continue as John instructed.

-Tony





 On Wed, Feb 8, 2012 at 10:13 AM, John Hunter jdh2...@gmail.com wrote:
 
 
  On Wed, Feb 8, 2012 at 12:06 PM, Tony Yu tsy...@gmail.com wrote:
 
  git clone g...@github.com:matplotlib/matplotlib.git matplotlib.git
 
  did not go through.
 
  - Chris
 
 
  I don't think you want the .git at the very end of the clone command.
  That just tells get where (i.e. new directory) to put the repo.
 
 
  I don't think that is the problem.  I just add the .git extension because
  the default is to check out a directory called matplotlib which if it
 is
  located in the path you are running or testing from, will confuse the
  import.  So I just add some extension so python won't confuse the mpl src
  dir (matplotlib.git) with the mpl package (matplotlib).

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] use the github version on a linux box

2012-02-08 Thread Chris
Thanks Tony and JDH, problem resolved and now I can try to compile.

- Chris

On Wed, Feb 8, 2012 at 10:41 AM, Tony Yu tsy...@gmail.com wrote:


 On Wed, Feb 8, 2012 at 1:20 PM, Chris plut...@gmail.com wrote:

 New error at `git checkout -b mdboom-pixel_marker v1.1.x':

 fatal: git checkout: updating paths is incompatible with switching
 branches.
 Did you intend to checkout 'v1.1.x' which can not be resolved as commit?

 - Chris


 That looks like something I've done before without issue. Maybe you're on an
 older version of git. In any case, you can break this up into two steps

 # change to maintenance branch
 git checkout v1.1.x

 # create new branch based on current checkout
 git checkout -b mdboom-pixel_marker


 Then continue as John instructed.

 -Tony





 On Wed, Feb 8, 2012 at 10:13 AM, John Hunter jdh2...@gmail.com wrote:
 
 
  On Wed, Feb 8, 2012 at 12:06 PM, Tony Yu tsy...@gmail.com wrote:
 
  git clone g...@github.com:matplotlib/matplotlib.git matplotlib.git
 
  did not go through.
 
  - Chris
 
 
  I don't think you want the .git at the very end of the clone command.
  That just tells get where (i.e. new directory) to put the repo.
 
 
  I don't think that is the problem.  I just add the .git extension
  because
  the default is to check out a directory called matplotlib which if it
  is
  located in the path you are running or testing from, will confuse the
  import.  So I just add some extension so python won't confuse the mpl
  src
  dir (matplotlib.git) with the mpl package (matplotlib).



--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users