Discussion:
[BitPim-devel] Mac OS X - run from source
f***@gmail.com
2007-02-26 10:43:46 UTC
Permalink
I tried running 0.9.12 from source. After installing a bunch of
stuff, I am stuck at this point -

When I try to run bitpim with this command:

python bp.py

I get this error:

Traceback (most recent call last):
File "bp.py", line 108, in ?
import gui
File "/Users/timg/bitpim/trunk/releases/0.9.12/src/gui.py", line
40, in ?
import phonebook
File "/Users/timg/bitpim/trunk/releases/0.9.12/src/phonebook.py",
line 114, in ?
import phonebookentryeditor
File "/Users/timg/bitpim/trunk/releases/0.9.12/src/
phonebookentryeditor.py", line 15, in ?
import database
File "/Users/timg/bitpim/trunk/releases/0.9.12/src/database.py",
line 18, in ?
import apsw
ImportError: Failure linking new module: /Library/Frameworks/
Python.framework/Versions/2.4/lib/python2.4/site-packages/apsw.so:
Symbol not found: _sqlite3_declare_vtab
Referenced from: /Library/Frameworks/Python.framework/Versions/2.4/
lib/python2.4/site-packages/apsw.so
Expected in: dynamic lookup

Any idea how to get around this?

Thanks!

Tim
Allen Hancock
2007-02-26 16:41:02 UTC
Permalink
ok, I am sharing one of the problems. but have this to report after
trying to run bp.py:


Traceback (most recent call last):
File "bp.py", line 108, in <module>
import gui
File "/Users/Shared/bitpim/src/gui.py", line 34, in <module>
import guiwidgets
File "/Users/Shared/bitpim/src/guiwidgets.py", line 55, in <module>
import setphone_wizard
File "/Users/Shared/bitpim/src/setphone_wizard.py", line 22, in
<module>
import phone_detect
File "/Users/Shared/bitpim/src/phone_detect.py", line 61, in <module>
import commport
File "/Users/Shared/bitpim/src/commport.py", line 12, in <module>
import serial
ImportError: No module named serial
Post by f***@gmail.com
I tried running 0.9.12 from source. After installing a bunch of
stuff, I am stuck at this point -
python bp.py
File "bp.py", line 108, in ?
import gui
File "/Users/timg/bitpim/trunk/releases/0.9.12/src/gui.py", line
40, in ?
import phonebook
File "/Users/timg/bitpim/trunk/releases/0.9.12/src/phonebook.py",
line 114, in ?
import phonebookentryeditor
File "/Users/timg/bitpim/trunk/releases/0.9.12/src/
phonebookentryeditor.py", line 15, in ?
import database
File "/Users/timg/bitpim/trunk/releases/0.9.12/src/database.py",
line 18, in ?
import apsw
ImportError: Failure linking new module: /Library/Frameworks/
Symbol not found: _sqlite3_declare_vtab
Referenced from: /Library/Frameworks/Python.framework/Versions/2.4/
lib/python2.4/site-packages/apsw.so
Expected in: dynamic lookup
Any idea how to get around this?
T Gallagher
2007-02-26 17:32:21 UTC
Permalink
You need to install the serial module listed on the page also. That one
seemed to go ok.

Tim
Post by Allen Hancock
ok, I am sharing one of the problems. but have this to report after
File "bp.py", line 108, in <module>
import gui
File "/Users/Shared/bitpim/src/gui.py", line 34, in <module>
import guiwidgets
File "/Users/Shared/bitpim/src/guiwidgets.py", line 55, in <module>
import setphone_wizard
File "/Users/Shared/bitpim/src/setphone_wizard.py", line 22, in
<module>
import phone_detect
File "/Users/Shared/bitpim/src/phone_detect.py", line 61, in <module>
import commport
File "/Users/Shared/bitpim/src/commport.py", line 12, in <module>
import serial
ImportError: No module named serial
Post by f***@gmail.com
I tried running 0.9.12 from source. After installing a bunch of
stuff, I am stuck at this point -
python bp.py
File "bp.py", line 108, in ?
import gui
File "/Users/timg/bitpim/trunk/releases/0.9.12/src/gui.py", line
40, in ?
import phonebook
File "/Users/timg/bitpim/trunk/releases/0.9.12/src/phonebook.py",
line 114, in ?
import phonebookentryeditor
File "/Users/timg/bitpim/trunk/releases/0.9.12/src/
phonebookentryeditor.py", line 15, in ?
import database
File "/Users/timg/bitpim/trunk/releases/0.9.12/src/database.py",
line 18, in ?
import apsw
ImportError: Failure linking new module: /Library/Frameworks/
Symbol not found: _sqlite3_declare_vtab
Referenced from: /Library/Frameworks/Python.framework/Versions/2.4/
lib/python2.4/site-packages/apsw.so
Expected in: dynamic lookup
Any idea how to get around this?
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BitPim-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
Allen Hancock
2007-02-26 18:18:25 UTC
Permalink
Post by T Gallagher
You need to install the serial module listed on the page also.
That one seemed to go ok.
I tell you what, if it isn't one thing, its another:

Downloaded from here:

http://sourceforge.net/project/showfiles.php?
group_id=46487&package_id=77441


Got this instead:



$ python setup.py install
running install
running build
running build_py
Traceback (most recent call last):
File "setup.py", line 19, in <module>
package_data = data_files
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/core.py", line 151, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/dist.py", line 974, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/command/install.py", line 506, in run
self.run_command('build')
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/command/build.py", line 112, in run
self.run_command(cmd_name)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/dist.py", line 993, in run_command
cmd_obj.ensure_finalized()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/cmd.py", line 117, in ensure_finalized
self.finalize_options()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/command/build_py.py", line 60, in finalize_options
self.data_files = self.get_data_files()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/command/build_py.py", line 121, in get_data_files
file[plen:] for file in self.find_data_files(package, src_dir)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/command/build_py.py", line 128, in find_data_files
globs = (self.package_data.get('', [])
AttributeError: 'NoneType' object has no attribute 'get'
Allen Hancock
2007-02-26 18:36:42 UTC
Permalink
Sorry for the waste of bandwidth... downloading the right package
helped.

ok, so pyserial is going, and another run of bp.py ends in

ImportError: No module named apsw



so, I am back to here:
http://initd.org/pub/software/pysqlite/apsw/3.3.13-r1/apsw.html

(of course, I am using the older 3.3.10 version, as indicated
@bitpim.org

I run through those commands, and it makes fine, and I can copy the
files as indicated here:
cp .libs/*.a .

but when I cd .. and go to python setup.py install

I get this:

/Library/Frameworks/Python.framework/Versions/2.5/Resources/
Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno
2] No such file or directory


Which, near as I can tell, is true, since I don't see where the
setup.py file will come from...

I hope I am not missing something so simple this time....
T Gallagher
2007-02-26 18:54:48 UTC
Permalink
Those instructions assumed that you built the sqlite3 library as a
subdirectory of the apsw
module directory, so the cd .. would put you back into the apsw directory
which has a
setup.py.

I think if you complete that step and then try to run bitpim (python bp.py)
from the source
directory, you will be where I am.

Tim
Post by Allen Hancock
Sorry for the waste of bandwidth... downloading the right package
helped.
ok, so pyserial is going, and another run of bp.py ends in
ImportError: No module named apsw
http://initd.org/pub/software/pysqlite/apsw/3.3.13-r1/apsw.html
(of course, I am using the older 3.3.10 version, as indicated
@bitpim.org
I run through those commands, and it makes fine, and I can copy the
cp .libs/*.a .
but when I cd .. and go to python setup.py install
/Library/Frameworks/Python.framework/Versions/2.5/Resources/
Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno
2] No such file or directory
Which, near as I can tell, is true, since I don't see where the
setup.py file will come from...
I hope I am not missing something so simple this time....
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BitPim-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
Allen Hancock
2007-02-26 20:11:48 UTC
Permalink
Post by T Gallagher
Those instructions assumed that you built the sqlite3 library as a
subdirectory of the apsw
module directory, so the cd .. would put you back into the apsw
directory which has a
setup.py.
I think if you complete that step and then try to run bitpim
(python bp.py) from the source
directory, you will be where I am.
humor me please, and from / which directory should one be putting the
apsw-3.3.10-r1.zip and sqlite-3.3.10.tar.gz folders to start with?

I just can't seem to get apsw happy.

this is on an intel based mac running 10.4.8.

could there be an issue with this stuff being built under intel code,
and bp.py making ppc calls? (not that I really believe this... but
want to ask)

Then maybe Tim & I can move forward!

thanks
T Gallagher
2007-02-26 20:18:12 UTC
Permalink
I put the apsw folder as a subdirectory of my home directory and the sqlite3
as a subdirectory of
the apsw directory.
Post by Allen Hancock
Post by T Gallagher
Those instructions assumed that you built the sqlite3 library as a
subdirectory of the apsw
module directory, so the cd .. would put you back into the apsw
directory which has a
setup.py.
I think if you complete that step and then try to run bitpim
(python bp.py) from the source
directory, you will be where I am.
humor me please, and from / which directory should one be putting the
apsw-3.3.10-r1.zip and sqlite-3.3.10.tar.gz folders to start with?
I just can't seem to get apsw happy.
this is on an intel based mac running 10.4.8.
could there be an issue with this stuff being built under intel code,
and bp.py making ppc calls? (not that I really believe this... but
want to ask)
Then maybe Tim & I can move forward!
thanks
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BitPim-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
Sean Burke
2007-02-26 20:37:52 UTC
Permalink
Not for nothing,* but I recall having to build apsw and sqlite before BP
would work on my PPC/10.4 laptop. In both cases, it required an "install"
step at the end. For apsw, see:
http://initd.org/pub/software/pysqlite/apsw/3.3.13-r1/apsw.html#Building
For sqlite3, I think it is a "./configure make make install" thing.
Bitpim is easy to get running from source on OS X. Its the dependencies
(apsw, etc...) that are a bear to get going. Its been a few months since I
have had to do it so my recollection is a bit hazy. Hope this helps. If
not, send more questions.

Sean

* Why do people always start out something really insulting with "not for
nothing?" My wife does this all the time. e.g. "Not for nothing, but you
aren't eighteen any more and you look fat in that shirt."
Post by T Gallagher
I put the apsw folder as a subdirectory of my home directory and the
sqlite3 as a subdirectory of
the apsw directory.
Post by Allen Hancock
Post by T Gallagher
Those instructions assumed that you built the sqlite3 library as a
subdirectory of the apsw
module directory, so the cd .. would put you back into the apsw
directory which has a
setup.py.
I think if you complete that step and then try to run bitpim
(python bp.py) from the source
directory, you will be where I am.
humor me please, and from / which directory should one be putting the
apsw-3.3.10-r1.zip and sqlite-3.3.10.tar.gz folders to start with?
I just can't seem to get apsw happy.
this is on an intel based mac running 10.4.8.
could there be an issue with this stuff being built under intel code,
and bp.py making ppc calls? (not that I really believe this... but
want to ask)
Then maybe Tim & I can move forward!
thanks
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BitPim-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BitPim-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
--
Sean Burke
Imaging Analysis Specialist
Albert Einstein College of Medicine
Yeshiva University
Bronx, NY 10461
Adit Panchal
2007-02-26 21:09:00 UTC
Permalink
I noticed this about 6-8 months ago, but I stopped using BitPim from
source at that time so it never seemed like it was an issue to me.

Anways I got the same error back then as I do now with the latest
APSW code and SQLite:

ImportError: Failure linking new module: /Library/Frameworks/
Python.framework/Versions/2.4/lib/python2.4/site-packages/apsw.so:
Symbol not found: _sqlite3_enable_shared_cache
Referenced from: /Library/Frameworks/Python.framework/Versions/2.4/
lib/python2.4/site-packages/apsw.so
Expected in: dynamic lookup

Curiously, the following warnings were reported when installing apsw
to site-packages:

apsw.c:54:1: warning: "INT32_MIN" redefined
In file included from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/sys/
_endian.h:88,
from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/
i386/endian.h:92,
from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/
machine/endian.h:32,
from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/
sys/wait.h:182,
from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/
stdlib.h:64,
from /Library/Frameworks/Python.framework/Versions/
2.4/include/python2.4/Python.h:39,
from apsw.c:37:
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin8/4.0.1/
include/stdint.h:135:1: warning: this is the location of the previous
definition
apsw.c:54:1: warning: "INT32_MIN" redefined
In file included from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/sys/
_endian.h:88,
from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/
ppc/endian.h:107,
from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/
machine/endian.h:30,
from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/
sys/wait.h:182,
from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/
stdlib.h:64,
from /Library/Frameworks/Python.framework/Versions/
2.4/include/python2.4/Python.h:39,
from apsw.c:37:
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-
darwin8/4.0.1/include/stdint.h:135:1: warning: this is the location
of the previous definition
apsw.c: In function 'convert_value_to_pyobject':
apsw.c:1262: warning: pointer targets in passing argument 1 of
'convertutf8string' differ in signedness
apsw.c: In function 'convert_value_to_pyobject':
apsw.c:1262: warning: pointer targets in passing argument 1 of
'convertutf8string' differ in signedness
apsw.c: In function 'Cursor_next':
apsw.c:2955: warning: pointer targets in passing argument 1 of
'convertutf8string' differ in signedness
apsw.c: In function 'Cursor_next':
apsw.c:2955: warning: pointer targets in passing argument 1 of
'convertutf8string' differ in signedness

But it installed fine - this is on an Intel Mac but with Python 2.4.
I haven't tried with Python 2.3 or 2.5 though.

Maybe we should forward this to Roger or to the PySQLite mailing list
since it may be more appropriate there.

Adit
Post by Sean Burke
Not for nothing,* but I recall having to build apsw and sqlite
before BP would work on my PPC/10.4 laptop. In both cases, it
http://initd.org/pub/software/pysqlite/apsw/3.3.13-r1/
apsw.html#Building
For sqlite3, I think it is a "./configure make make install" thing.
Bitpim is easy to get running from source on OS X. Its the
dependencies (apsw, etc...) that are a bear to get going. Its been
a few months since I have had to do it so my recollection is a bit
hazy. Hope this helps. If not, send more questions.
Sean
* Why do people always start out something really insulting with
"not for nothing?" My wife does this all the time. e.g. "Not for
nothing, but you aren't eighteen any more and you look fat in that
shirt."
I put the apsw folder as a subdirectory of my home directory and
the sqlite3 as a subdirectory of
the apsw directory.
Post by T Gallagher
Those instructions assumed that you built the sqlite3 library as a
subdirectory of the apsw
module directory, so the cd .. would put you back into the apsw
directory which has a
setup.py.
I think if you complete that step and then try to run bitpim
(python bp.py) from the source
directory, you will be where I am.
humor me please, and from / which directory should one be putting the
apsw-3.3.10-r1.zip and sqlite-3.3.10.tar.gz folders to start with?
I just can't seem to get apsw happy.
this is on an intel based mac running 10.4.8.
could there be an issue with this stuff being built under intel code,
and bp.py making ppc calls? (not that I really believe this... but
want to ask)
Then maybe Tim & I can move forward!
thanks
----------------------------------------------------------------------
---
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?
page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BitPim-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
----------------------------------------------------------------------
---
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?
page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BitPim-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
--
Sean Burke
Imaging Analysis Specialist
Albert Einstein College of Medicine
Yeshiva University
Bronx, NY 10461
----------------------------------------------------------------------
---
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?
page=join.php&p=sourceforge&CID=DEVDEV________________________________
_______________
BitPim-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
Allen Hancock
2007-02-26 23:38:11 UTC
Permalink
Post by Sean Burke
Not for nothing,*
is that a New England thing? down here, we just append a "bless his
heart"

As in, "The documentations for getting bitpim's dependencies in place
could use a bit of updating, bless its heart."

Personally, I am happy to help w/ such updating, given the desire of
the admin's in charge
Post by Sean Burke
but I recall having to build apsw and sqlite before BP would work
on my PPC/10.4 laptop. In both cases, it required an "install"
http://initd.org/pub/software/pysqlite/apsw/3.3.13-r1/
apsw.html#Building
For sqlite3, I think it is a "./configure make make install" thing.
does that mean a make install or make clean step should be in there?




ok, these steps could use a bit more fleshing out...

# The static library is not built for inclusion into a seperate
shared library
# by default. If using gcc, then do this
$ env CC="gcc -fPIC" CFLAGS="-DHAVE_DLOPEN" ./configure --enable-
threadsafe --disable-tcl
# otherwise do this
$ env CFLAGS="-DHAVE_DLOPEN" ./configure --enable-threadsafe --
disable-tcl
# The CFLAGS="-DHAVE_DLOPEN bit is needed for loading dynamic
# extensions. See SQLite bug 2082

so, given these notes, I am assuming that with the latest dev tools,
I am using gcc for building, and so have been using the first line,
but not the second (env CFLAGS) line.
Is that OK?


Now, after tossing all, re-decompressing from their zip/gz files, I
have redone the steps (again)

I get this:

/build/apsw-3.3.13-r1 myuser $ ls
total 4792
drwxr-xr-x 15 myuser wheel - 510B Feb 26 17:26 ./
drwxr-xr-x 12 myuser wheel - 408B Feb 26 17:18 ../
-rw-r--r-- 1 myuser wheel - 125K Feb 19 01:46 apsw.c
-rw-r--r-- 1 myuser wheel - 133K Feb 19 01:46 apsw.html
-rw-r--r-- 1 myuser wheel - 33B Feb 19 01:46 apswversion.h
drwxr-xr-x 4 myuser wheel - 136B Feb 26 17:23 build/
-rw-r--r-- 1 myuser wheel - 2K Feb 19 01:46 mingwsetup.bat
-rw-r--r-- 1 myuser wheel - 3K Feb 19 01:46 pointerlist.c
-rw-r--r-- 1 myuser wheel - 1K Feb 19 01:46 setup.py
-rw-r--r-- 1 myuser admin - 1M Feb 13 14:05
sqlite-3.3.13.tar.gz
drwxr-xr-x 141 myuser wheel - 4K Feb 26 17:22 sqlite3/
-rw-r--r-- 1 myuser wheel - 5K Feb 19 01:46 statementcache.c
-rw-r--r-- 1 myuser wheel - 1K Feb 19 01:46 testextension.c
-rw-r--r-- 1 myuser wheel - 84K Feb 19 01:46 tests.py
-rw-r--r-- 1 myuser wheel - 4K Feb 19 01:46 traceback.c
/build/apsw-3.3.13-r1 myuser $ python -c "import apsw ; print
apsw.sqlitelibversion(), apsw.apswversion()"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/site-packages/apsw.so, 2): Symbol not found:
_sqlite3_declare_vtab
Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/site-packages/apsw.so
Expected in: dynamic lookup

so, maybe I have a problem with my Python installation elsewhere?

Could there be old detritus I need to get rid of first?
Post by Sean Burke
Bitpim is easy to get running from source on OS X. Its the
dependencies (apsw, etc...) that are a bear to get going. Its been
a few months since I have had to do it so my recollection is a bit
hazy. Hope this helps. If not, send more questions.
Sent. Thanks!
T Gallagher
2007-02-27 00:10:37 UTC
Permalink
That doesn't give me much hope then, since I got the same exact error using
the 3.3.10
version.

Tim
Post by Allen Hancock
Post by Sean Burke
Not for nothing,*
is that a New England thing? down here, we just append a "bless his
heart"
As in, "The documentations for getting bitpim's dependencies in place
could use a bit of updating, bless its heart."
Personally, I am happy to help w/ such updating, given the desire of
the admin's in charge
Post by Sean Burke
but I recall having to build apsw and sqlite before BP would work
on my PPC/10.4 laptop. In both cases, it required an "install"
http://initd.org/pub/software/pysqlite/apsw/3.3.13-r1/
apsw.html#Building
For sqlite3, I think it is a "./configure make make install" thing.
does that mean a make install or make clean step should be in there?
ok, these steps could use a bit more fleshing out...
# The static library is not built for inclusion into a seperate
shared library
# by default. If using gcc, then do this
$ env CC="gcc -fPIC" CFLAGS="-DHAVE_DLOPEN" ./configure --enable-
threadsafe --disable-tcl
# otherwise do this
$ env CFLAGS="-DHAVE_DLOPEN" ./configure --enable-threadsafe --
disable-tcl
# The CFLAGS="-DHAVE_DLOPEN bit is needed for loading dynamic
# extensions. See SQLite bug 2082
so, given these notes, I am assuming that with the latest dev tools,
I am using gcc for building, and so have been using the first line,
but not the second (env CFLAGS) line.
Is that OK?
Now, after tossing all, re-decompressing from their zip/gz files, I
have redone the steps (again)
/build/apsw-3.3.13-r1 myuser $ ls
total 4792
drwxr-xr-x 15 myuser wheel - 510B Feb 26 17:26 ./
drwxr-xr-x 12 myuser wheel - 408B Feb 26 17:18 ../
-rw-r--r-- 1 myuser wheel - 125K Feb 19 01:46 apsw.c
-rw-r--r-- 1 myuser wheel - 133K Feb 19 01:46 apsw.html
-rw-r--r-- 1 myuser wheel - 33B Feb 19 01:46 apswversion.h
drwxr-xr-x 4 myuser wheel - 136B Feb 26 17:23 build/
-rw-r--r-- 1 myuser wheel - 2K Feb 19 01:46 mingwsetup.bat
-rw-r--r-- 1 myuser wheel - 3K Feb 19 01:46 pointerlist.c
-rw-r--r-- 1 myuser wheel - 1K Feb 19 01:46 setup.py
-rw-r--r-- 1 myuser admin - 1M Feb 13 14:05
sqlite-3.3.13.tar.gz
drwxr-xr-x 141 myuser wheel - 4K Feb 26 17:22 sqlite3/
-rw-r--r-- 1 myuser wheel - 5K Feb 19 01:46 statementcache.c
-rw-r--r-- 1 myuser wheel - 1K Feb 19 01:46 testextension.c
-rw-r--r-- 1 myuser wheel - 84K Feb 19 01:46 tests.py
-rw-r--r-- 1 myuser wheel - 4K Feb 19 01:46 traceback.c
/build/apsw-3.3.13-r1 myuser $ python -c "import apsw ; print
apsw.sqlitelibversion(), apsw.apswversion()"
File "<string>", line 1, in <module>
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/
_sqlite3_declare_vtab
Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/site-packages/apsw.so
Expected in: dynamic lookup
so, maybe I have a problem with my Python installation elsewhere?
Could there be old detritus I need to get rid of first?
Post by Sean Burke
Bitpim is easy to get running from source on OS X. Its the
dependencies (apsw, etc...) that are a bear to get going. Its been
a few months since I have had to do it so my recollection is a bit
hazy. Hope this helps. If not, send more questions.
Sent. Thanks!
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BitPim-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
Allen Hancock
2007-02-27 21:27:06 UTC
Permalink
Post by T Gallagher
That doesn't give me much hope then, since I got the same exact
error using the 3.3.10
version.
Had you also already installed python 2.5 & wxPython?

I wonder if these build instructions aren't aimed at panther's native
python install?

I wonder if someone who hasn't installed a new python can get apsw to
install properly?

Of course, is the only way to get wxPython installed on a tiger
computer is to install v2.5, it would seem some people who are more
familiar with Python/apsw would have to work out and/or tell us how
get apsw working in the new Python.

(Correct me if I am wrong about any of my steps, please)


on a side note, since apsw.so is built, and the devel-page says to
put it somewhere our code can reach,

Is there a location we can copy apsw.so to so that bp.py can see it?

Thanks again
T Gallagher
2007-02-27 22:28:25 UTC
Permalink
I installed python 2.4 and wxPython 2.6.3.3 for python 2.4.

The problem is not that bitpim can't see the apsw.so file, it's that the
apsw.so
is not seeing the sqlite3 from what I can tell. Please correct me if I'm
wrong.

if you run the python setup.py install command for apsw, then it should get
copied
into a place that bp.py can see it.
Post by Allen Hancock
Post by T Gallagher
That doesn't give me much hope then, since I got the same exact
error using the 3.3.10
version.
Had you also already installed python 2.5 & wxPython?
I wonder if these build instructions aren't aimed at panther's native
python install?
I wonder if someone who hasn't installed a new python can get apsw to
install properly?
Of course, is the only way to get wxPython installed on a tiger
computer is to install v2.5, it would seem some people who are more
familiar with Python/apsw would have to work out and/or tell us how
get apsw working in the new Python.
(Correct me if I am wrong about any of my steps, please)
on a side note, since apsw.so is built, and the devel-page says to
put it somewhere our code can reach,
Is there a location we can copy apsw.so to so that bp.py can see it?
Thanks again
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BitPim-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
Sean Burke
2007-02-27 00:32:31 UTC
Permalink
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ha!&nbsp; Well, yes, it is a New England thing.&nbsp; (Although technically, NY
isn't in New England - that's where the insult comes in.)&nbsp; While you
are setting up the dependencies, take notes.&nbsp; I forgot to and later on
couldn't retrace my steps, bless my heart.<br>
<br>
Sean<br>
<br>
Allen Hancock wrote:
<blockquote
cite="midD1CAD43F-E282-4806-970E-***@hancockconsulting.net"
type="cite">
<pre wrap="">On Feb 26, 2007, at 2:37 PM, Sean Burke wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Not for nothing,*
</pre>
</blockquote>
<pre wrap=""><!---->
is that a New England thing? down here, we just append a "bless his
heart"

As in, "The documentations for getting bitpim's dependencies in place
could use a bit of updating, bless its heart."

Personally, I am happy to help w/ such updating, given the desire of
the admin's in charge


</pre>
<blockquote type="cite">
<pre wrap="">but I recall having to build apsw and sqlite before BP would work
on my PPC/10.4 laptop. In both cases, it required an "install"
step at the end. For apsw, see:
<a class="moz-txt-link-freetext" href="http://initd.org/pub/software/pysqlite/apsw/3.3.13-r1/">http://initd.org/pub/software/pysqlite/apsw/3.3.13-r1/</a>
apsw.html#Building
For sqlite3, I think it is a "./configure make make install" thing.
</pre>
</blockquote>
<pre wrap=""><!---->
does that mean a make install or make clean step should be in there?




ok, these steps could use a bit more fleshing out...

# The static library is not built for inclusion into a seperate
shared library
# by default. If using gcc, then do this
$ env CC="gcc -fPIC" CFLAGS="-DHAVE_DLOPEN" ./configure --enable-
threadsafe --disable-tcl
# otherwise do this
$ env CFLAGS="-DHAVE_DLOPEN" ./configure --enable-threadsafe --
disable-tcl
# The CFLAGS="-DHAVE_DLOPEN bit is needed for loading dynamic
# extensions. See SQLite bug 2082

so, given these notes, I am assuming that with the latest dev tools,
I am using gcc for building, and so have been using the first line,
but not the second (env CFLAGS) line.
Is that OK?


Now, after tossing all, re-decompressing from their zip/gz files, I
have redone the steps (again)

I get this:

/build/apsw-3.3.13-r1 myuser $ ls
total 4792
drwxr-xr-x 15 myuser wheel - 510B Feb 26 17:26 ./
drwxr-xr-x 12 myuser wheel - 408B Feb 26 17:18 ../
-rw-r--r-- 1 myuser wheel - 125K Feb 19 01:46 apsw.c
-rw-r--r-- 1 myuser wheel - 133K Feb 19 01:46 apsw.html
-rw-r--r-- 1 myuser wheel - 33B Feb 19 01:46 apswversion.h
drwxr-xr-x 4 myuser wheel - 136B Feb 26 17:23 build/
-rw-r--r-- 1 myuser wheel - 2K Feb 19 01:46 mingwsetup.bat
-rw-r--r-- 1 myuser wheel - 3K Feb 19 01:46 pointerlist.c
-rw-r--r-- 1 myuser wheel - 1K Feb 19 01:46 setup.py
-rw-r--r-- 1 myuser admin - 1M Feb 13 14:05
sqlite-3.3.13.tar.gz
drwxr-xr-x 141 myuser wheel - 4K Feb 26 17:22 sqlite3/
-rw-r--r-- 1 myuser wheel - 5K Feb 19 01:46 statementcache.c
-rw-r--r-- 1 myuser wheel - 1K Feb 19 01:46 testextension.c
-rw-r--r-- 1 myuser wheel - 84K Feb 19 01:46 tests.py
-rw-r--r-- 1 myuser wheel - 4K Feb 19 01:46 traceback.c
/build/apsw-3.3.13-r1 myuser $ python -c "import apsw ; print
apsw.sqlitelibversion(), apsw.apswversion()"
Traceback (most recent call last):
File "&lt;string&gt;", line 1, in &lt;module&gt;
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/site-packages/apsw.so, 2): Symbol not found:
_sqlite3_declare_vtab
Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/site-packages/apsw.so
Expected in: dynamic lookup

so, maybe I have a problem with my Python installation elsewhere?

Could there be old detritus I need to get rid of first?


</pre>
<blockquote type="cite">
<pre wrap="">Bitpim is easy to get running from source on OS X. Its the
dependencies (apsw, etc...) that are a bear to get going. Its been
a few months since I have had to do it so my recollection is a bit
hazy. Hope this helps. If not, send more questions.

</pre>
</blockquote>
<pre wrap=""><!---->Sent. Thanks!


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT &amp; business topics through brief surveys-and earn cash
<a class="moz-txt-link-freetext" href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV</a>
_______________________________________________
BitPim-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:BitPim-***@lists.sourceforge.net">BitPim-***@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/bitpim-devel">https://lists.sourceforge.net/lists/listinfo/bitpim-devel</a>

</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Sean Patrick Burke
Imaging Analysis Specialist
Albert Einstein College of Medicine
Yeshiva University
</pre>
</body>
</html>
Joe Pham
2007-02-26 22:43:09 UTC
Permalink
Post by f***@gmail.com
I am stuck at this point -
Symbol not found: _sqlite3_declare_vtab
You need to install the latest release of the apsw package.

-Joe Pham



_____________________________________________________________________
FREE Reminder Service - NEW from AmericanGreetings.com
Click HERE and never forget a Birthday or Anniversary again!
http://track.netzero.net/s/lc?s=197335&u=http://www.americangreetings.com/products/online_calendar.pd?c=uol5752
T Gallagher
2007-02-26 23:16:33 UTC
Permalink
by latest release, you mean not the 3.3.10 version?
Post by Joe Pham
Post by f***@gmail.com
I am stuck at this point -
Symbol not found: _sqlite3_declare_vtab
You need to install the latest release of the apsw package.
-Joe Pham
_____________________________________________________________________
FREE Reminder Service - NEW from AmericanGreetings.com
Click HERE and never forget a Birthday or Anniversary again!
http://track.netzero.net/s/lc?s=197335&u=http://www.americangreetings.com/products/online_calendar.pd?c=uol5752
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BitPim-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
Allen Hancock
2007-02-27 12:59:16 UTC
Permalink
Post by Joe Pham
Post by f***@gmail.com
I am stuck at this point -
Symbol not found: _sqlite3_declare_vtab
You need to install the latest release of the apsw package.
-Joe Pham
Thanks, is there a newer version than:
http://initd.org/pub/software/pysqlite/apsw/3.3.13-r1/
apsw.html#Building ?

because I built apsw from that, and see that apsw.so got put into:
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/apsw.so

but maybe there is something else that needs to get copied? (that is
what the directions seem to imply)
Joe Pham
2007-02-26 22:58:52 UTC
Permalink
and from / which directory should one be putting the apsw-3.3.10-
r1.zip and sqlite-3.3.10.tar.gz folders to start with?
You can put them in you working dirs, you should install them in your
standard lib (Python and system) dir.

-Joe Pham




_____________________________________________________________________
FREE Reminder Service - NEW from AmericanGreetings.com
Click HERE and never forget a Birthday or Anniversary again!
http://track.netzero.net/s/lc?s=197335&u=http://www.americangreetings.com/products/online_calendar.pd?c=uol5752
Loading...