Repo Client init problem ubuntu 8.10

by PerCentage » Tue, 20 Jan 2009 06:10:32 GMT


Sponsored Links
 I am trying to download the android source onto a new ubuntu 8.10
installation on a x86 machine. All the steps worked fine until I tried
to init the repo client. I get the following...

ja...@james-desktop:~/mydroid$ repo init -u 
git://android.git.kernel.org/platform/manifest.git
Traceback (most recent call last):
  File "/home/james/bin/repo", line 590, in <module>
    main(sys.argv[1:])
  File "/home/james/bin/repo", line 557, in main
    _Init(args)
  File "/home/james/bin/repo", line 176, in _Init
    _CheckGitVersion()
  File "/home/james/bin/repo", line 205, in _CheckGitVersion
    proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
  File "/usr/lib/python2.5/subprocess.py", line 594, in __init__
    errread, errwrite)
  File "/usr/lib/python2.5/subprocess.py", line 1153, in
_execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

I can't find anyone else having such an repo error. I did find an
obscure message that said the python error might be due to a missing
readline module. I tried to install lib32readline5-dev as in the
download instructions and got the following error

ja...@james-desktop:~$ sudo apt-get install lib32readline5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package lib32readline5-dev

Any ideas anybody? I am somewhat new to linux but have had a fair
amount of unix experience in the past.


--~--~---------~--~----~------------~-------~--~----~



Repo Client init problem ubuntu 8.10

by the_dude » Thu, 22 Jan 2009 08:43:16 GMT


 I've got the same problem. I'll let you know when I found a solution.

/the_dude




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Repo Client init problem ubuntu 8.10

by Jean-Baptiste Queru » Thu, 22 Jan 2009 09:12:49 GMT


 This would be a good question to the repo-discuss mailing list, or
android-platform, so that android-developers can stay focused on
helping people who are developing applications with the SDK.

Do you have git installed?

JBQ






-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

--~--~---------~--~----~------------~-------~--~----~



Repo Client init problem ubuntu 8.10

by the_dude » Thu, 22 Jan 2009 17:17:06 GMT


 Yes, GIT is installed. I belive that it is not repo it self but that
lib32readline5-dev is related to the problem. As far as I understand
it is needed if you run on a AMD 64 bit arch but I'm running
Virtualbox + Ubuntu on my Intel Centrino Duo laptop so I'm a bit
confused. When looking in /proc/cpuinfo it states:
- model: 15
- model name: Intel(R) Core(TM)2 CPU t5...@1.83ghz
- stepping: 2
- cpuid level: 2
- clflush size: 64

When running $sudo apt-get install lib32readline5-dev it say there is
no such package, but  http://packages.ubuntu.com  states differently.
Any idea on how to fix this?

/dude




--~--~---------~--~----~------------~-------~--~----~



Repo Client init problem ubuntu 8.10

by the_dude » Thu, 22 Jan 2009 17:29:09 GMT


 orry, I missed flags.
- flags : fpu vme de pse tsc msr mce cx8 apic mtrr pge mca cmov pat
pse36 clflush mmx fxsr sse sse2 constant_tsc up pni monitor

And since it doesn't contain lm (long mode) I'm back to square 1.

/dude


On Jan 22, 10:16am, the_dude <d0...@hotmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Repo Client init problem ubuntu 8.10

by the_dude » Thu, 22 Jan 2009 23:22:12 GMT


 roblem solved...

It seems that the download of repo ($curl http://android.git.kernel.org/repo

Try the command until curl succeeds (verify by $less ~/bin/repo).

BR
the_dude

On Jan 22, 10:29am, the_dude <d0...@hotmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Repo Client init problem ubuntu 8.10

by Bismark » Fri, 23 Jan 2009 11:12:44 GMT


 Try

sudo apt-get install libreadline5-dev

instead of lib32readline5-dev

Bismark

--~--~---------~--~----~------------~-------~--~----~



Repo Client init problem ubuntu 8.10

by sienna » Mon, 26 Jan 2009 05:35:59 GMT


 I had same problem on ubuntu 8.04 as virtualbox guest os. In my case,
curl has no problem, but it just was resolved after successful
installation of librealine5-dev as Bismark advised. Thanks Bismark.




--~--~---------~--~----~------------~-------~--~----~



Repo Client init problem ubuntu 8.10

by Bernhard » Sat, 31 Jan 2009 01:52:27 GMT


 Same Problem here:
i flowed the instrcutions at: 
 http://docs.google.com/View?docid=ajdmx8kfg357_81cmpr56f6 
VMware with Ubuntu 8.10
-------------------------------
m...@desktop:~/eee$ repo init -u 
git://android.git.kernel.org/platform/manifest.git
Traceback (most recent call last):
  File "/bin/repo", line 590, in <module>
    main(sys.argv[1:])
  File "/bin/repo", line 557, in main
    _Init(args)
  File "/bin/repo", line 176, in _Init
    _CheckGitVersion()
  File "/bin/repo", line 205, in _CheckGitVersion
    proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
  File "/usr/lib/python2.5/subprocess.py", line 594, in __init__
    errread, errwrite)
  File "/usr/lib/python2.5/subprocess.py", line 1153, in
_execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
-------------------------------

--~--~---------~--~----~------------~-------~--~----~



Repo Client init problem ubuntu 8.10

by doubleslash » Thu, 12 Mar 2009 10:06:39 GMT


 I have the same problem. I tried curl and verified indeed the whole
python script was downloaded. I installed libreadline5-dev instead of
lib32readline5.dev because my computer could not find the latter. I
cannot initilize repo. Can someone help?



--~--~---------~--~----~------------~-------~--~----~



Repo Client init problem ubuntu 8.10

by Eric Chan » Thu, 12 Mar 2009 17:49:58 GMT


 try to delete the .repo file at your work folder, it is hided.
Best Regards

Eric Chan







--~--~---------~--~----~------------~-------~--~----~



Repo Client init problem ubuntu 8.10

by danL » Sun, 15 Mar 2009 13:12:33 GMT


 deleted the .repo file, same problem.

Please advise.

thx,
Dan







--~--~---------~--~----~------------~-------~--~----~



Repo Client init problem ubuntu 8.10

by Jean-Baptiste Queru » Sun, 15 Mar 2009 13:30:58 GMT


 Sounds like you don't have git installed on your system.

JBQ







-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

--~--~---------~--~----~------------~-------~--~----~



Repo Client init problem ubuntu 8.10

by Diego Torres Milano » Mon, 16 Mar 2009 20:18:58 GMT


 repo should check for git.
Try applying this patch.

diff -up ./repo.ORI ./repo
--- ./repo.ORI  2009-03-16 13:09:46.000000000 +0100
+++ ./repo      2009-03-16 13:15:50.000000000 +0100
@@ -202,7 +202,11 @@ def _Init(args):

 def _CheckGitVersion():
   cmd = [GIT, '--version']
-  proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
+  try:
+     proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
+  except OSError, ex:
+     print >>sys.stderr, 'fatal: %s running "%s"' % (ex, " ".join
(cmd))
+     sys.exit(1)
   ver_str = proc.stdout.read().strip()
   proc.stdout.close()
   proc.wait()







--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Permission Categories

Where can I find a listing indicating what level (normal, dangerous,
signature, system) all the available permissions are? I have looked at
the JavaDocs. There is no mention of the level there.

E

-- 

2. org.apache.http.auth Problem

0 down vote favorite


Hi, I used org.apache.http.auth and develop demo code samples like
this:

        DefaultHttpClient httpclient = new DefaultHttpClient();

    httpclient.getCredentialsProvider().setCredentials(
            new AuthScope("www.yemeksepeti.com", 80),
            new UsernamePasswordCredentials("*******", "*******"));

    BasicHttpContext localcontext = new BasicHttpContext();


    BasicScheme basicAuth = new BasicScheme();
    localcontext.setAttribute("preemptive-auth", basicAuth);

    // Add as the first request interceptor
    httpclient.addRequestInterceptor(new PreemptiveAuth(), 0);

    HttpHost targetHost = new HttpHost("www.yemeksepeti.com", 80,
"http");

    HttpGet httpget = new HttpGet("/YemeksepetiCatalogWebService/
CatalogExportMobile.asmx/Mobile_GetCities");


    String responseStr = "";

    HttpResponse response = httpclient.execute(targetHost, httpget,
localcontext);
    HttpEntity entity = response.getEntity();
    InputStream is2 = response.getEntity().getContent();
    BufferedInputStream bis2 = new BufferedInputStream(is2);

    ByteArrayBuffer baf2 = new ByteArrayBuffer(1000);

    int current = 0;

    while ((current = bis2.read()) != -1)
    {
        baf2.append((byte) current);
    }
    responseStr = new String(baf2.toByteArray());

    if (entity != null) {
        entity.consumeContent();
    }

    httpclient.getConnectionManager().shutdown();

and add a class :

 static class PreemptiveAuth implements HttpRequestInterceptor {

    public void process(
            final HttpRequest request,
            final HttpContext context) throws HttpException,
IOException {

        AuthState authState = (AuthState) context.getAttribute(
                ClientContext.TARGET_AUTH_STATE);

        // If no auth scheme avaialble yet, try to initialize it
preemptively
        if (authState.getAuthScheme() == null) {
            AuthScheme authScheme = (AuthScheme) context.getAttribute(
                    "preemptive-auth");
            CredentialsProvider credsProvider = (CredentialsProvider)
context.getAttribute(
                    ClientContext.CREDS_PROVIDER);
            HttpHost targetHost = (HttpHost) context.getAttribute(
                    ExecutionContext.HTTP_TARGET_HOST);
            if (authScheme != null) {
                Log.v("TANIMLAMA OZGE","target host" +
targetHost.getHostName() +" "+ targetHost.getPort());
                Credentials creds = credsProvider.getCredentials(
                        new AuthScope(
                                targetHost.getHostName(),
                                targetHost.getPort()));
                if (creds == null) {
                    throw new HttpException("No credentials for
preemptive authentication");
                }
                authState.setAuthScheme(authScheme);
                authState.setCredentials(creds);
            }
        }

    }

}

}

But it gives that messages; I couldn't solve the problem. Have you any
idea?

    Authentication error: basic authorization challenge expected, but
not found Default buffer size used in BufferedInputStream constructor.
It would be better to be explicit if an 8k buffer is required.

    You are not authorized to view this page
    You are not authorized to view this page
    You do not have permission to view this directory or page using
the credentials that you supplied because your Web browser is sending
a WWW-Authenticate header field that the Web server is not configured
to accept.

    Please try the following:

        * Contact the Web site administrator if you believe you should
be able to view this directory or page.
        * Click the Refresh button to try again with different
credentials.

    HTTP Error 401.2 - Unauthorized: Access is denied due to server
configuration.
    Internet Information Services (IIS)

    Technical Information (for support personnel)

        * Go to Microsoft Product Support Services and perform a title
search for the words HTTP and 401.
        * Open IIS Help, which is accessible in IIS Manager (inetmgr),
and search for topics titled About Security, Authentication, and About
Custom Error Messages.

Thanks

-- 

3. alternative markets offers

4. setWallpaper(Bitmap bitmap) just sets default background?

5. Problem running android camera DEMO

6. android.os.DeadObjectException

7. ListView and Memory Leaks