Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar

    Reply
    Page 8 of 63 | Prev |   6     7   8   9     10   18 | Next | Last
    AkkiMoto | # 71 | 2010-01-31, 19:19 | Report

    Originally Posted by lorelei View Post
    What is the output you get when you run the python2.5 command in an x-terminal?

    Furthermore, what's the output of the following command?

    Code:
     dpkg --get-selections | grep python
    Here are the screenshots: http://akkimoto.blog.de/2010/01/31/p...relei-7912754/

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to AkkiMoto For This Useful Post:
    lorelei

     
    tuxfoo | # 72 | 2010-01-31, 19:32 | Report

    Originally Posted by lorelei View Post
    tuxfoo: thank you for the pointer to GetAllCalendarsFeed(): I kinda overlooked that possibility.

    Upon inspection of CCalendar API, it's possible to flag a N900 calendar as read-only, so that should do the trick. I just have to figure out how to get the same information from Google Calendars, but I suspect that it won't be too difficult.
    Right, I think this would be trivial.

    Originally Posted by lorelei View Post
    Concerning the colours, unfortunately the N900 palette of colours available to the calendar is quite limited (ten colours or so), whereas Google's palette is a bit more extended, so it won't always be possible to have a 1:1 matching between the two.
    Your right. When looking over the calendar-backend API previously, I noticed you could specify the color for a calendar. I had just assumed this was more flexible, but the enum in CCalendar.h does only define a small palette. We could try to match the closest color, but it might not be worth the effort. It'd be much better if calendar-backend took at RGB color.

    Anyway, keep up the good work!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Palleman | # 73 | 2010-01-31, 22:45 | Report

    Originally Posted by lorelei View Post
    [*]I have troubles with a missing import (xml.utils.iso8601)
    You are affected by this bug if Erminig-NG crashs at startup with the following message:
    Code:
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ImportError: No module named iso8601
    It's caused by line 32 in erminig-ng: "import xml.utils.iso8601"
    The python-xml package is installed on my machine, and the utils/iso8601.py file is there, but the error still occurs. Reinstalling python-xml did not help.

    Anyway, python-xml has to my knowledge not been maintained for ten years or something, and is removed from later versions of python distributions. So you might consider using some other module for the 8601 stuff.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by Palleman; 2010-01-31 at 22:59.

     
    Palleman | # 74 | 2010-01-31, 22:57 | Report

    Originally Posted by lorelei View Post
    What is the output you get when you run the python2.5 command in an x-terminal?
    The same as when typing just "pthoyn":
    Code:
    ~/erminig-ng-0.1.0 $ python2.5
    Python 2.5.4 (r254:67916, Nov 26 2009, 22:24:46) 
    [GCC 4.2.1] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from xml.utils.iso8601 import parse
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ImportError: No module named utils.iso8601
    Originally Posted by lorelei View Post
    Code:
     dpkg --get-selections | grep python
    Code:
    ~/erminig-ng-0.1.0 $ dpkg --get-selections |grep python
    gnome-python                    install
    hildon-desktop-python-loader            install
    python                        install
    python-all                    install
    python-bluez                    install
    python-cairo                    install
    python-central                    install
    python-conic                    install
    python-dbus                    install
    python-evolution                install
    python-facebook                    install
    python-gconf                    install
    python-gdata                    install
    python-glade2                    install
    python-gobject                    install
    python-gst0.10                    install
    python-gtk2                    install
    python-hildon                    install
    python-hildondesktop                install
    python-imaging                    install
    python-lxml                    install
    python-minimal                    install
    python-notify                    install
    python-numeric                    install
    python-openssl                    install
    python-osso                    install
    python-papyon                    install
    python-pygame                    install
    python-runtime                    install
    python-simplejson                install
    python-support                    install
    python-telepathy                install
    python-twitter                    install
    python-xml                    install
    python2.5                    install
    python2.5-minimal                install

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by Palleman; 2010-01-31 at 23:10.

     
    Palleman | # 75 | 2010-01-31, 23:10 | Report

    Code:
    /home/user/erminig-ng-0.1.0 # find / -name "iso8601.py"
    /usr/lib/python2.5/site-packages/papyon/util/iso8601/iso8601.py
    /usr/share/pyshared/_xmlplus/utils/iso8601.py
    /home/opt/pymaemo/usr/share/pyshared/_xmlplus/utils/iso8601.py
    /home/opt/pymaemo/usr/lib/python2.5/site-packages/papyon/util/iso8601/iso8601.py
    /home/user/erminig-ng-0.1.0 #
    Changing the line from "import xml.utils.iso8601" to "import papyon.util.iso8601" made it work.

    /P

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Palleman For This Useful Post:
    lorelei

     
    lorelei | # 76 | 2010-01-31, 23:18 | Report

    Originally Posted by Palleman View Post
    Anyway, python-xml has to my knowledge not been maintained for ten years or something, and is removed from later versions of python distributions. So you might consider using some other module for the 8601 stuff.
    I agree that python-xml is unmaintained for quite a long time and that it's gone in newer version of Python.

    This however doesn't explain why for some people it doesn't work as expected (which is kinda enraging because there's no logical explanation yet).

    I may end up doing what you suggest, i.e. use another module for ISO8601 dates...

    Edit | Forward | Quote | Quick Reply | Thanks

     
    lorelei | # 77 | 2010-01-31, 23:22 | Report

    Originally Posted by Palleman View Post
    Code:
    /home/user/erminig-ng-0.1.0 # find / -name "iso8601.py"
    /usr/lib/python2.5/site-packages/papyon/util/iso8601/iso8601.py
    /usr/share/pyshared/_xmlplus/utils/iso8601.py
    /home/opt/pymaemo/usr/share/pyshared/_xmlplus/utils/iso8601.py
    /home/opt/pymaemo/usr/lib/python2.5/site-packages/papyon/util/iso8601/iso8601.py
    /home/user/erminig-ng-0.1.0 #
    Changing the line from "import xml.utils.iso8601" to "import papyon.util.iso8601" made it work.

    /P
    hmmm, this is interesting. papyon is part of one of the many MSN implementation for maemo, and maybe it's conflicting with python-xml (I'm betting that python-papyon is problematic here).

    In fact I don't have any MSN client installed, so this may be the problem:

    Code:
    Nokia-N900-42-11:~# find / -name 'iso8601.py'
    /usr/lib/python2.5/site-packages/_xmlplus/utils/iso8601.py
    /usr/share/pyshared/_xmlplus/utils/iso8601.py
    /home/opt/pymaemo/usr/share/pyshared/_xmlplus/utils/iso8601.py
    /home/opt/pymaemo/usr/lib/python2.5/site-packages/_xmlplus/utils/iso8601.py

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by lorelei; 2010-01-31 at 23:26. Reason: senseless bet :)

     
    lorelei | # 78 | 2010-01-31, 23:33 | Report

    Palleman:

    would you mind posting here the result of the following two python lines (executed on your device, in a Python shell):

    Code:
    import sys
    print sys.path
    I suspect that papyon's version of iso8601 takes precedence over the version from python-xml, which in turns causes us some griefs.

    thanks

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Palleman | # 79 | 2010-01-31, 23:33 | Report

    Sorry, I was a bit fast there. It didn't make it work, it just made the error disappear. I added a Google calendar loaded with entries, and ended up with a new but empty calendar on N900.

    I.e. the first --sync-calendar command is supposed to fill it up with the existing entries, right? I don't want to run the second command yet, don't want to end up with an empty calendar on the Google side too.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Palleman | # 80 | 2010-01-31, 23:35 | Report

    Code:
    >> import sys
    >>> print sys.path
    ['', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/Numeric', '/usr/lib/python2.5/site-packages/PIL', '/usr/lib/python2.5/site-packages/gst-0.10', '/usr/lib/pymodules/python2.5', '/usr/lib/python2.5/site-packages/gtk-2.0', '/usr/lib/pymodules/python2.5/gtk-2.0']
    >>>

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Palleman For This Useful Post:
    lorelei

     
    Page 8 of 63 | Prev |   6     7   8   9     10   18 | Next | Last
vBulletin® Version 3.8.8
Normal Logout