Opened 15 years ago

Closed 15 years ago

#21707 closed defect (invalid)

py26-psycopg2 won't load

Reported by: dave@… Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: py26-psycopg2

Description

This is on Snow Leopard:

$ sudo port install py26-psycopg2
--->  Computing dependencies for py26-psycopg2
--->  Cleaning py26-psycopg2
zreba:boost_consulting dave$ python
Python 2.6.1 (r261:67515, Jul  7 2009, 23:51:51) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import psycopg2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named psycopg2
>>> ^D
zreba:boost_consulting dave$ port contents py26-psycopg2
Port py26-psycopg2 contains:
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/_psycopg.so
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/errorcodes.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/errorcodes.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/extensions.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/extensions.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/extras.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/extras.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/pool.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/pool.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/psycopg1.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/psycopg1.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/tz.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/tz.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2-2.0.12-py2.6.egg-info
zreba:boost_consulting dave$ port deps py26-psycopg2
Full Name: py26-psycopg2 @2.0.12+postgresql84
Library Dependencies: python26, openssl, postgresql84
zreba:boost_consulting dave$ sudo port activate py26-psycopg2
--->  Activating py26-psycopg2
Error: port activate failed: Image error: py26-psycopg2 @2.0.12_0+postgresql84 is already active.
zreba:boost_consulting dave$ 

Change History (2)

comment:1 in reply to:  description Changed 15 years ago by blb@…

Owner: changed from macports-tickets@… to snc@…
Port: py26-psycopg2 added
Priority: HighNormal

Replying to dave@…:

zreba:boost_consulting dave$ python
Python 2.6.1 (r261:67515, Jul  7 2009, 23:51:51) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin

Are you sure that's the MacPorts' python? It should be 2.6.2, not 2.6.1 (which is the system version).

Try /opt/local/bin/python2.6 and see if that imports right.

comment:2 Changed 15 years ago by nerdling (Jeremy Lavergne)

Resolution: invalid
Status: newclosed

Please use the python_select port to use the MacPorts python, or use the versioned python name (python2.6).

You're using the Apple-supplied Python which MacPorts doesn't touch.

Note: See TracTickets for help on using tickets.