Gmansolf / googlecl

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

calendar today #153

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
running on osx 10.6.4 (via port)
maple:~ maara$ google
> calendar today
Please specify user: <my google apps account>
Traceback (most recent call last):
  File "/opt/local/bin/google", line 463, in <module>
    main()
  File "/opt/local/bin/google", line 454, in main
    run_interactive(parser)
  File "/opt/local/bin/google", line 251, in run_interactive
    run_once(options, args)
  File "/opt/local/bin/google", line 340, in run_once
    if client.RequestAccess():
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/googlecl/service.py", line 198, in request_access
    request_token = self.FetchOAuthRequestToken(extra_parameters=params)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/gdata/service.py", line 416, in FetchOAuthRequestToken
    response = self.http_client.request('GET', str(request_token_url))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/atom/http.py", line 132, in request
    connection = self._prepare_connection(url, all_headers)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/atom/http.py", line 240, in _prepare_connection
    p_sock.connect((proxy_url.host, int(proxy_url.port)))
  File "<string>", line 1, in connect
TypeError: coercing to Unicode: need string or buffer, NoneType found

maple:~ maara$ python
Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin

--->  Dependencies installed: py26-gdata py26-distribute python26 bzip2 db46 
gdbm gettext expat libiconv gperf ncurses ncursesw openssl zlib readline 
sqlite3 tk Xft2 fontconfig freetype pkgconfig xrender xorg-libX11 
xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto 
xorg-libXdmcp xorg-util-macros xorg-xcmiscproto xorg-xextproto 
xorg-xf86bigfontproto xorg-xtrans xorg-renderproto tcl xorg-libXScrnSaver 
xorg-libXext xorg-scrnsaverproto

Original issue reported on code.google.com by maarecek on 23 Jun 2010 at 7:05

GoogleCodeExporter commented 8 years ago
This looks like the same stack trace that people were getting in Issue 44. Are 
you behind a proxy? Are you using gdata >= 2.0.10?

Original comment by tom.h.mi...@gmail.com on 23 Jun 2010 at 1:04

GoogleCodeExporter commented 8 years ago
yes i am behind a proxy. the proxy is set in network manager and i also tried 
to export env variables http_proxy and https_proxy manually...

Original comment by maarecek on 23 Jun 2010 at 1:07

GoogleCodeExporter commented 8 years ago
i will try to install gdata...

Original comment by maarecek on 23 Jun 2010 at 1:09

GoogleCodeExporter commented 8 years ago
i have installed py-gdata via port
.
.
--->  Fetching py-gdata
--->  Verifying checksum(s) for py-gdata
--->  Extracting py-gdata
--->  Configuring py-gdata
--->  Building py-gdata
--->  Staging py-gdata into destroot
--->  Installing py-gdata @2.0.10_0
--->  Activating py-gdata @2.0.10_0
.
.

but no luck - the google is still crashing

Original comment by maarecek on 23 Jun 2010 at 1:19

GoogleCodeExporter commented 8 years ago
i had to export proxy in format http://myproxy:8080 instead of only myproxy:8080

set http_proxy=http://myproxy:8080
set https_proxy=https://myproxy:8080

now its working well but this overwork realy sucks because it should be working 
wit the enviroment proxy as it is set in the network configuration and py-gdata 
should be a dependency...

anyway thanks for help -it looks good now

Original comment by maarecek on 23 Jun 2010 at 2:20

GoogleCodeExporter commented 8 years ago
Alright, sounds like this is all set. Thanks for reporting in -- I'll update 
the FAQ about setting the proxy.

Original comment by tom.h.mi...@gmail.com on 28 Jun 2010 at 2:31