Discussion:
[Bitpim-devel] Running CVS copy of bitpim Linux
Stephen Wood
2003-10-02 13:39:52 UTC
Permalink
I am sure that I have just missed something.

I am able to run bitpim 0.60 using the linux RPM's. However, I can't
figure out how to run bitpim on Linux from the CVS version.

If I type "python bp.py", I get:

Traceback (most recent call last):
File "bp.py", line 24, in ?
import gui
File "gui.py", line 31, in ?
import guiwidgets
File "guiwidgets.py", line 36, in ?
import bpaudio
File "bpaudio.py", line 17, in ?
import win32api
ImportError: No module named win32api

I use Redhat9 which has python 2.2.2.

Thanks, Steve
Roger Binns
2003-10-02 18:29:22 UTC
Permalink
Post by Stephen Wood
I am able to run bitpim 0.60 using the linux RPM's. However, I can't
figure out how to run bitpim on Linux from the CVS version.
Sorry. My fault. Unfortunately my main Linux machine is a victim of
that bug that results in a kernel panic when closing the
USB-serial device. (It still astonishes me that it hasn't been fixed
in 2.4).

I tried using Virtual PC on my XP box, but its serial port emulation
is too flaky. So I have to reboot my XP box into Linux to try stuff
out, which I don't do too often.
Post by Stephen Wood
File "guiwidgets.py", line 36, in ?
import bpaudio
Just comment that line out.

bpaudio currently implements converting any audio format to Qualcomm
purevoice, and back to plain wav. It uses the ffmpeg binary (I tried
to use it as a library but it was a nightmare) and a windows binary
from Qualcomm (I did ask them if I could ship it as their licensing
doc is ambiguous but they never responded). Needless to say, the
latter binary won't work on Linux :-) I will look to see if I can
get it to run under Wine at some point.

Roger
Stephen Wood
2003-10-03 03:17:55 UTC
Permalink
Post by Roger Binns
Post by Stephen Wood
I am able to run bitpim 0.60 using the linux RPM's. However, I can't
figure out how to run bitpim on Linux from the CVS version.
Sorry. My fault. Unfortunately my main Linux machine is a victim of
that bug that results in a kernel panic when closing the
USB-serial device. (It still astonishes me that it hasn't been fixed
in 2.4).
This happened to me when I started working with qcplink to test out my
phone. It seems to be related to sending a break to the phone which
resets. (I think this reset is part of the protocol for syncing the
phone.) Resetting is power cycling the phone, so the USB device winks
out and back in. I make sure that I close the phone device immediately
after doing a reset. This helps, but is not 100% reliable.

What I often do is not send a reset to the phone, but then power cycle
it by hand after the program exits. And I take a deep clensing breath
after I turn the phone off, and again after I turn it on before trying
to talk to it.
Roger Binns
2003-10-03 04:00:15 UTC
Permalink
Post by Stephen Wood
It seems to be related to sending a break to the phone which
resets.
I contacted the author of Linux usb-serial stuff about it. It
is definitely some sort of bug that takes effect when the
file descriptor is closed. It doesn't happen on all machines.
They made a fix for kernel 2.6, but as far as I know it hasn't
been backported to 2.4.

But since my main Linux box is my mail and web server, I can't
really have it crashing ever :-)

Roger
Stephen Wood
2003-10-29 21:55:17 UTC
Permalink
I am just getting ready to try out some rudimentary code to read the
Sanyo 4900 phone book, and I discovered that I am still missing one
piece in being able to run the CVS copy of Bitpim on linux. Namely, the
"serial" package imported in commport.py. I tried to install both
pyserial-1.21 and pyserial-2.0b2 and got the following error:

# python setup.py install
error in setup script: invalid distribution option 'classifiers'

Obviously I don't know anything about python. Is there some other
package that I need to install? (I am running Python 2.2.2 as include
with Redhat 9.0 and I have python-devel installed).

Thanks for any help, Steve
Roger Binns
2003-10-29 22:29:48 UTC
Permalink
Post by Stephen Wood
"serial" package imported in commport.py. I tried to install both
I am actually still on pyserial 1.20. 1.21 only has Windows fixes,
and they don't apply to BitPim anyway. I actually do my Linux dev
on a RH8 box.

Anyway, all you need to do is copy the serial directory to
/usr/lib/python2.2/site-packages

Roger

Loading...