salimoha / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

problem running under Cygwin #293

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. google docs upload --user user@mygoogleappsdomain.com ./folder
2. running under Windows 7/Cygwin 
3.

What is the expected output? What do you see instead?

      0 [main] python 3116 C:\cygwin\bin\python.exe: *** fatal error - unable to remap \\?\C:\cygwin\lib\python2.6\lib-dynload\time.dll to same address as parent: 0x2F0000 != 0x410000
Stack trace:
Frame     Function  Args
00289948  6102749B  (00289948, 00000000, 00000000, 00000000)
00289C38  6102749B  (61177B80, 00008000, 00000000, 61179977)
0028AC68  61004AFB  (611A136C, 6123C314, 002F0000, 00410000)
End of stack trace
      0 [main] python 4908 fork: child 3116 - died waiting for dll loading, errno 11
Traceback (most recent call last):
  File "/usr/local/bin/google", line 676, in <module>
    main()
  File "/usr/local/bin/google", line 662, in main
    run_once(options, args)
  File "/usr/local/bin/google", line 488, in run_once
    success = authenticate(service, client, options.hostid)
  File "/usr/local/bin/google", line 107, in authenticate
    if client.RequestAccess(domain, hostid):
  File "/usr/lib/python2.6/site-packages/googlecl/docs/client.py", line 260, in request_access
    scopes=scopes)
  File "/usr/lib/python2.6/site-packages/googlecl/client.py", line 114, in request_access
    browser.open(str(auth_url))
  File "/usr/lib/python2.6/webbrowser.py", line 275, in open
    success = self._invoke(args, True, autoraise)
  File "/usr/lib/python2.6/webbrowser.py", line 238, in _invoke
    stderr=inout, preexec_fn=setsid)
  File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1049, in _execute_child
    self.pid = os.fork()
OSError: [Errno 11] Resource temporarily unavailable

What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?

Python 2.6.5
googlecl-0.9.10

Please provide any additional information below.

Original issue reported on code.google.com by les...@ingber.com on 24 Sep 2010 at 12:41

GoogleCodeExporter commented 9 years ago
P.S.:
I did a rebaseall under Cygwin, and this fixed my python problems.

When trying again to use googlecl under mintty, elinks was brought up.  I 
followed the prompts, including going to the https page to register my Grant 
Access, where a password was provided.  I put this password as directed into 
the elinks window and get

Please enter the verification code on the success page: xxxPaswordxxx
Unable to upgrade OAuth request token to access token: 400, The oauth_verifier 
is missing or invalid.

Token upgrade failed! Could not get OAuth access token.
Failed to get valid access token!

Original comment by les...@ingber.com on 24 Sep 2010 at 3:59

GoogleCodeExporter commented 9 years ago
Is it possible some whitespace slipped in with the verifier? That problem is 
fixed in trunk, but 0.9.10 will read the whitespace and say it was an invalid 
verifier.

Original comment by tom.h.mi...@gmail.com on 24 Sep 2010 at 4:30

GoogleCodeExporter commented 9 years ago
I seemed to finally got this working, but I would appreciate any links to a 
simpler method:

Under Cygwin/elinks (I could not see how to get this started otherwise, e.g., 
under a Chrome browser), I get a password to use, but the only way I could see 
to save it was to open a new mintty window and copy the whole page.  If I 
follow the https link to grant access, a different password is issued that does 
not work.

Thanks.

Lester

Original comment by les...@ingber.com on 24 Sep 2010 at 4:33

GoogleCodeExporter commented 9 years ago
I'm not sure I follow what you're doing, or if you saw my comment (comment 2, 
despite having a later timestamp than your comment 3. Weird.)

First off, you should be alright using Cygwin/elinks. I'm guessing that when 
you first use docs, elinks automatically launches and brings you to the "grant 
access" page. You're saying that you can't copy the verification code on the 
page that appears after you "click" on grant access? What do you mean by "copy 
the whole page"? Can you go through exactly what steps you're following?

In any case, you can tell GoogleCL to launch a specific browser with the 
"auth_browser" option in the configuration file. Check out 
http://code.google.com/p/googlecl/wiki/ConfigurationOptions for more details.

Thanks!

Original comment by tom.h.mi...@gmail.com on 24 Sep 2010 at 5:52

GoogleCodeExporter commented 9 years ago
Under elinks, the password to use (on the next screen) is greyed out and I 
cannot copy it with the mouse.  I have to copy the entire page-log to another 
window, where everything is copied.  Then I can select the password to use 
paste into the next screen.

I tried inserting
auth_browser = chrome
but that didn't seem to do anything.  I could have tried to insert the path, 
but then I just got a list of "N/A"s when trying to list subfolders using "/" 
for paths, so I din't try that.  E.g., I get "N/A"s for
google docs list folder/subfolder
google docs list "folder/subfolder"
google docs list ~/folder/subfolder

In any case I was able to upload a folder with tens of subfolders recursively 
just fine.  I then moved that folder in Docs to where I wanted it located

Thanks.

Lester

Original comment by les...@ingber.com on 24 Sep 2010 at 6:20