bitacora

Vendo mi Macbook Pro 15" modelo 2009

in computador

Hace un par de meses cambié mi computador por uno más nuevo. No porque el antiguo estuviera funcionando mal o porque tuviera problemas. Tiene un disco duro más grande y el doble de memoria RAM que cuando lo compré, pero ya estaba envejeciendo, así que decidí aprovechar una buena oferta y renovarlo.

Ahora estoy vendiendo ese computador a un excelente precio (pronto pondré algunas fotos). Aquí están las especificaciones. Si está interesado, cuénteme.

Macbook Pro 15" Modelo Mid 2009 (MacBookPro5,3)
Comprado agosto 2009
Precio CO$ 1,650,000

Procesador y memoria:
Procesador Intel Core 2 Duo 2.66GHz
8GB Ram DDR3 1067 MHz
Graficos NVIDIA GeForce 9400M
Cache L2 3MB

Sistema operativo:
MacOS 10.7 Lion

Almacenamiento:
DD 500 GB
Superdrive DVD 8x

Conexiones:
1 MagSafe Power
1 Gigabit ethernet RJ-45 10/100/1000
1 Firewire 400
1 Mini Display
2 USB
1 SD card slot (Dañado)
1 Line In
1 Stereo Out
1 Kensington Lock

Comunicaciones:
Airport Extreme WiFi wireless 802.11a/b/g/n
Bluetooth 2.1

Audio:
Altavoces estéreo
Micrófono omnidireccional

Input
Teclado en inglés
Trackpad multi-touch
Cámara web integrada

Un poco de carpintería

in carpintería, woodwork

¡Terminamos el Moisés!

Psycopg on Mac OS 10.8 with Python 2.7 and Postgresql 9.2

in 10.8, lion, mountain, osx, postgre, postgresql, psycopg, psycopg2, python, troubleshooting

I don't have time for a full tutorial, but here is how I managed, after weeks of trying without luck, to get Psycopg2 to work with Python 2.7.3 and PostgreSQL 9.2 on Mac OS 10.8, Mountain Lion.

The problem I was having, after installing Psycopg using python setup.py install was related to this error when running import psycopg2 from a Python shell. Symbol not found: _PQbackendPID.

This fixed it:

  1. You'll need XCode from the App Store and the Command Line Tools (Google it if this sounds like gibberish).
  2. Follow the instructions about exporting your path here: http://www.jonathandean.com/2011/08/postgresql-8-4-on-mac-os-x-10-7-lion/. This will make your Postgresql 9.2 the default. You can check if it already is by typing which psql in a Terminal window.
  3. Create a Universal libpq.dylib following instructions here: http://contestclash.blogspot.com/2009/09/building-psycopg2-on-snow-leopard.html. Copy the new file to wherever your Postgresql is. In my case it was /Library/PostgreSQL/9.2/lib. These instructions solved the 64/32 bit architecture problem. (This crucial piece of info was burried in Google and took quite a while to find. All other solutions suggested running Python in 32 bit mode, which didn't work).
  4. Modify the psycopg2 setup.cfg file following these instructions (only the last part, right after "Change setup.cfg so it looks like the following:"): http://blog.timc3.com/2010/08/20/psycopg2-os-x-_pqbackendpid/.
  5. Create the simlinks mentioned in the comments here in order to fix a new problem with SSL and Crypto libraries: http://psycopg.lighthouseapp.com/projects/62710/tickets/111-library-not-loaded-libssl100dylib
  6. Now build psycopg2 using "python setup.py install".
  7. You should be able to import psycopg2 from a Python shell or from IDLE (I actually did it for EPD free).

Many, many thanks to each of the four sources cited in steps 2-6. You did all the work. All I needed to do was find which instructions to follow.

I hope this helps others struggling with this issue.