I swear I must be dope -- the website shows: curl -O "http://initd.org/pub/software/psycopg/psycopg2-latest.tar.gz" tar -xzvf psycopg2-latest.tar.gz rm psycopg2-latest.tar.gz cd psycopg2-2.0.4 echo library_dirs=/opt/local/lib/postgresql81 >> setup.cfg echo include_dirs=/opt/local/include/postgresql81 >> setup.cfg sudo python setup.py install cd .. sudo rm -Rf psycopg2-2.0.4
But those are broken somehow. The current version I got was - psycopg2-2.0.9.tar.gz When I ran the setup.py - I got: running install running build running build_py creating build creating build/lib.macosx-10.3-i386-2.5 creating build/lib.macosx-10.3-i386-2.5/psycopg2 copying lib/__init__.py -> build/lib.macosx-10.3-i386-2.5/psycopg2 copying lib/errorcodes.py -> build/lib.macosx-10.3-i386-2.5/psycopg2 copying lib/extensions.py -> build/lib.macosx-10.3-i386-2.5/psycopg2 copying lib/extras.py -> build/lib.macosx-10.3-i386-2.5/psycopg2 copying lib/pool.py -> build/lib.macosx-10.3-i386-2.5/psycopg2 copying lib/psycopg1.py -> build/lib.macosx-10.3-i386-2.5/psycopg2 copying lib/tz.py -> build/lib.macosx-10.3-i386-2.5/psycopg2 running build_ext error: No such file or directory This suggests I'm still missing something.... On Thu, Feb 26, 2009 at 9:39 AM, Ed Leafe <[email protected]> wrote: > On Feb 25, 2009, at 2:25 PM, Dan Means wrote: > > > i did the macports, and thought I'd gotten all the stuff needed for > > psycopg2 > > - and it seemed to install - but I get all sorts of weird errors in > > import, > > long before I can even get anything else to run... > > You email motivated me to try once more, and this time I succeeded! > I > followed the instuctions here: > > http://webpy.org/install_macosx > > I skipped the steps for installing Python, web.py and Cheetah. I had > to tweak the version of psycopg listed on the page to 2.0.9, but other > than that, it worked. I can now type 'import psycopg2' on my Mac. > > > -- Ed Leafe > > > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
