Python + Google Calendar API issue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kyosohma@gmail.com

    #1

    Python + Google Calendar API issue

    Hi,

    I was trying to hook into Google Calendar today using their gdata
    module for Python, but I can't seem to get Python to work with it.
    When I run the setup.py from the command line, I get the following:

    Traceback (most recent call last):
    File "J:\Python\Lib\ site-packages\gdata\ setup.py", line 39, in ?
    package_dir = {'gdata':'src/gdata', 'atom':'src/atom'}
    File "J:\Python\lib\ distutils\core. py", line 137, in setup
    raise SystemExit, gen_usage(dist. script_name) + "\nerror: %s" %
    msg
    SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2
    [cmd2_opts] ...]
    or: setup.py --help [cmd1 cmd2 ...]
    or: setup.py --help-commands
    or: setup.py cmd --help

    error: no commands supplied


    I tried using some different commands, like --verbose, but it would
    just give me the same traceback. I also tried manually copying all the
    files into my site-packages directory (as you can see from the
    traceback) in hopes that it might work without running the setup.py
    file.

    Does anyone have any ideas? I don't usually have any problem getting
    these things to work. I am using Python 2.4.3 on Windows XP Pro SP2.

    Thanks a lot!

    Mike

  • Diez B. Roggisch

    #2
    Re: Python + Google Calendar API issue

    kyosohma@gmail. com schrieb:
    Hi,
    >
    I was trying to hook into Google Calendar today using their gdata
    module for Python, but I can't seem to get Python to work with it.
    When I run the setup.py from the command line, I get the following:
    >
    Traceback (most recent call last):
    File "J:\Python\Lib\ site-packages\gdata\ setup.py", line 39, in ?
    package_dir = {'gdata':'src/gdata', 'atom':'src/atom'}
    File "J:\Python\lib\ distutils\core. py", line 137, in setup
    raise SystemExit, gen_usage(dist. script_name) + "\nerror: %s" %
    msg
    SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2
    [cmd2_opts] ...]
    or: setup.py --help [cmd1 cmd2 ...]
    or: setup.py --help-commands
    or: setup.py cmd --help
    >
    error: no commands supplied
    >
    >
    I tried using some different commands, like --verbose, but it would
    just give me the same traceback. I also tried manually copying all the
    files into my site-packages directory (as you can see from the
    traceback) in hopes that it might work without running the setup.py
    file.
    >
    Does anyone have any ideas? I don't usually have any problem getting
    these things to work. I am using Python 2.4.3 on Windows XP Pro SP2.
    Did you supply an install command:


    python setup.py install

    --verbose is no command.

    Diez

    Comment

    • kyosohma@gmail.com

      #3
      Re: Python + Google Calendar API issue

      On Jul 1, 7:15 am, "Diez B. Roggisch" <d...@nospam.we b.dewrote:
      kyoso...@gmail. com schrieb:
      >
      >
      >
      Hi,
      >
      I was trying to hook into Google Calendar today using their gdata
      module for Python, but I can't seem to get Python to work with it.
      When I run the setup.py from the command line, I get the following:
      >
      Traceback (most recent call last):
      File "J:\Python\Lib\ site-packages\gdata\ setup.py", line 39, in ?
      package_dir = {'gdata':'src/gdata', 'atom':'src/atom'}
      File "J:\Python\lib\ distutils\core. py", line 137, in setup
      raise SystemExit, gen_usage(dist. script_name) + "\nerror: %s" %
      msg
      SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2
      [cmd2_opts] ...]
      or: setup.py --help [cmd1 cmd2 ...]
      or: setup.py --help-commands
      or: setup.py cmd --help
      >
      error: no commands supplied
      >
      I tried using some different commands, like --verbose, but it would
      just give me the same traceback. I also tried manually copying all the
      files into my site-packages directory (as you can see from the
      traceback) in hopes that it might work without running the setup.py
      file.
      >
      Does anyone have any ideas? I don't usually have any problem getting
      these things to work. I am using Python 2.4.3 on Windows XP Pro SP2.
      >
      Did you supply an install command:
      >
      python setup.py install
      >
      --verbose is no command.
      >
      Diez
      Oops. When I typed <helpit gave me lots of info, but I guess I mis-
      read it. Turns out you were quite right and that all I needed was the
      "install" command.

      Thanks a lot!

      Mike

      Comment

      Working...