You are not logged in.

#1 2010-11-29 19:58:23

ominide
Member
Registered: 2009-10-11
Posts: 15

Android Repo and python2.4,2.7,3.1

Hi all,
  I wanted to avoid asking this but I'm stuck.
I'm currently trying to use Google's repo to clone the entire git repository.  However this sounds easier than it has shown to be.

Getting manifest ...
from git://android.git.kernel.org/platform/maifest.git
fatal: The remote end hung up unexpectedly
fatal: cannot obtain manifest git://android.git.kernel.org/platform/maifest.git

I can clone it manually using

git clone git://android.git.kernel.org/platform/maifest.git

so I don't think its server load

I've installed the python24 from AUR
I have since changed the symbolic link for

python -> python3

to

python -> python2.4

from the best I can tell (I'm not a python programmer, and I'm slow at grasping interpreted languages sometimes) it is coming from here:

git_command.py

try:
      p = subprocess.Popen(command,
                           cwd = cwd,
                           env = env,
                           stdin = stdin,
                           stdout = stdout,
                           stderr = stderr)

and

def Wait(self):
    p = self.process

    if p.stdin:
...

    try:
      rc = p.wait()
    finally:
      _remove_ssh_client(p)
    return rc

Any help would be fantastic, I'm sure that there is something I've missed
Thanks,

Offline

#2 2010-11-30 14:07:49

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: Android Repo and python2.4,2.7,3.1

ominide wrote:

I have since changed the symbolic link for

python -> python3

to

python -> python2.4

Don't mess with the symlink like that. Change the shebang etc instead.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2010-11-30 14:25:22

ominide
Member
Registered: 2009-10-11
Posts: 15

Re: Android Repo and python2.4,2.7,3.1

pardon my naivety but why not adjust the symlink.  I switch it back when I'm done attempting to check out. I assume with the shebang etc stuff you're refering to in script? Because I tried editing the script but it downloads another one and executes so I have to play find the error tag

Offline

#4 2010-11-30 15:54:03

benob
Member
Registered: 2008-11-11
Posts: 187

Re: Android Repo and python2.4,2.7,3.1

I changed python to python2 in repo and .repo/repo/main.py and it works for me (with python2.7). I don't know what could result in your problem, though.

Offline

#5 2011-01-28 06:43:50

hiroshiyui
Member
Registered: 2010-08-17
Posts: 7

Re: Android Repo and python2.4,2.7,3.1

Try to add a separate system account (e.g: 'python2user' by useradd & passwd), login as that new account,
build a Python 2 in that 'account-wide' environment:

0. sudo su python2user
1. cd $HOME
2. wget http://www.python.org/ftp/python/2.7.1/ … .1.tar.bz2
3. tar xxvfj Python-2.7.1.tar.bz2
4. cd Python-2.7.1
5. ./configure --prefix=$HOME
6. make
7. make install
8. add a line 'PATH=~/bin:$PATH' at the bottom of '~/.bashrc'
9. logout and re-login as python2user, now your 'repo' is working normally.

Offline

Board footer

Powered by FluxBB