You are not logged in.

#1 2007-11-03 11:58:18

Magician21
Member
Registered: 2007-03-23
Posts: 45

Trying to get BitPim running

I just got a new cell phone, which is supposed to play nicely with BitPim via Bluetooth.  I have pairing between my laptop's usb dongle and my cell phone working.  The next step is not going very well - most likely to my lack of python knowledge.

I got the bitpim-release PKGBUILD from unsupported, and attempted to create an Arc package from the rpm, which I got from the website.  Seeing that the PKGBUILD wanted 1.0.1, I went with that first.
I got everything into a directory, and ran makepkg.  The package was created with no warnings.  I used pacman -U <new package name>, and it installed without warnings.  However, it throws an exception when I start the program.

database integrity check
database integrity check complete
setting windows/CalendarEntryEditor to size 532 x 399
Exception in getting image file - you can't do that!
Traceback (most recent call last):
  File "src/wallpaper.py", line 578, in OpenFile
  File "src/wallpaper.py", line 608, in _OpenFile
  File "src/wallpaper.py", line 625, in OpenBPImageFile
  File "src/wallpaper.py", line 651, in BPFSImageFile
  File "src/wallpaper.py", line 479, in ScaleImageIntoBitmap
  File "/usr/lib/python2.3/site-packages/wx-2.8-gtk2-unicode/wx/_gdi.py", line 715, in EmptyBitmap
PyAssertionError: C++ assertion "depth == visual->depth" failed at ../src/gtk/bitmap.cpp(292) in Create(): invalid bitmap depth

Variables by last 8 frames, innermost last

Frame OpenFile in src/wallpaper.py at line 582
            res =  None
           self =  <wallpaper.BPFSHandler; proxy of <Swig Object of type 'wxPyFileSystemHandler *'
       location =  u'bpimage:ringer.png;width=24;height=24'
     filesystem =  <wx._core.FileSystem; proxy of <Swig Object of type 'wxFileSystem *' at 0x93a68c

Frame _OpenFile in src/wallpaper.py at line 608
          proto =  u'bpimage'
           self =  <wallpaper.BPFSHandler; proxy of <Swig Object of type 'wxPyFileSystemHandler *'
          param =  u'height=24'
              p =  Keys ['height', 'width']
                   {'width': 24, 'height': 24}
              r =  u'ringer.png'
         params =  [u'width=24', u'height=24']
          value =  u'24'
            key =  'height'
     filesystem =  <wx._core.FileSystem; proxy of <Swig Object of type 'wxFileSystem *' at 0x93a68c
              x =  6
       location =  u'bpimage:ringer.png;width=24;height=24'

Frame OpenBPImageFile in src/wallpaper.py at line 625
           name =  u'ringer.png'
              f =  u'/usr/lib/BitPim-1.0.1/resources/ringer.png'
            res =  None
           self =  <wallpaper.BPFSHandler; proxy of <Swig Object of type 'wxPyFileSystemHandler *'
             si =  (33261, 309649L, 771L, 0, 0, 831L, 1186440854, 1194093855)
       location =  u'bpimage:ringer.png;width=24;height=24'
         kwargs =  Keys ['height', 'width']
                   {'width': 24, 'height': 24}

Frame BPFSImageFile in src/wallpaper.py at line 651
           name =  u'/usr/lib/BitPim-1.0.1/resources/ringer.png'
            img =  <wx._core.Image; proxy of <Swig Object of type 'wxImage *' at 0x8dd5cd0> >
          width =  24
         height =  24
        bgcolor =  None
       location =  u'bpimage:ringer.png;width=24;height=24'
         valign =  'center'
      fshandler =  <wallpaper.BPFSHandler; proxy of <Swig Object of type 'wxPyFileSystemHandler *'

Frame ScaleImageIntoBitmap in src/wallpaper.py at line 479
        bgcolor =  None
       usewidth =  24
      useheight =  24
            img =  <wx._core.Image; proxy of <Swig Object of type 'wxImage *' at 0x8dd5cd0> >
         valign =  'center'

Frame EmptyBitmap in /usr/lib/python2.3/site-packages/wx-2.8-gtk2-unicode/wx/_gdi.py at line 715
           args =  (24, 24, 24)
         kwargs =  Keys []
                   {}

So I tried updating the PKGBUILD to handle the new release, 1.0.2.  Here are my deltas from the PKGBUILD in unsupported:
diff PKGBUILD PKGBUILD-1.0.2
4c4
< pkgver=1.0.1
---
> pkgver=1.0.2
9,10c9,10
< source=(http://superb-east.dl.sourceforge.net/sourceforge/bitpim/bitpim-$pkgver-0.i386.rpm)
< md5sums=('0c357a56ddc67db77046e693e9761c0d')
---
> source=(http://superb-east.dl.sourceforge.net/sourceforge/bitpim/bitpim-$pkgver-$pkgrel.i386.rpm)
> md5sums=('07d450c6fae75c48118c5084a17887f1')
25c25
< }
---
> }
\ No newline at end of file

Creation of the 1.0.2 package from the rpm went just as smoothly as the first.  Installing via pacman (removed 1.0.1 package first) also worked perfectly.  Running it goes differently, but not by much.

bitpim
Traceback (most recent call last):
  File "/opt/cx_Freeze-3.0.3/initscripts/ConsoleSetLibPath.py", line 35, in <module>
  File "src/bp.py", line 108, in <module>
  File "src/gui.py", line 26, in <module>
  File "/usr/lib/python2.5/sha.py", line 6, in <module>
    from hashlib import sha1 as sha
  File "/usr/lib/python2.5/hashlib.py", line 133, in <module>
    md5 = __get_builtin_constructor('md5')
  File "/usr/lib/python2.5/hashlib.py", line 60, in __get_builtin_constructor
    import _md5
ImportError: No module named _md5

A quick google search gave me the following command...

python -c 'import md5; md5.new()'

...which worked flawlessly.
The other google results seem to indicate issues with python upgrades gone awry.

I'm running:
gnome-python 2.20.0-1
gnome-python-desktop 2.20.0-2
gnome-python-extras 2.14.3-1
mysql-python 1.2.2-1
python 2.5.1-3
python-m2crypto 0.16-2
python-numeric 24.2-2
python-pyspi 0.6.1-2
wxpython 2.8.4.0-1

I don't know much of anything about python.  I'm hoping this is something simple, like a library path or something.

Offline

#2 2009-03-12 23:48:03

valandil
Member
Registered: 2008-03-11
Posts: 82

Re: Trying to get BitPim running

Have you resolved your _md5 problem? I'm getting the same error trying to deal with Sage, and I must admit it's quite annoying. I cannot find any good solution.

Offline

Board footer

Powered by FluxBB