Skip to content

Instantly share code, notes, and snippets.

@evdb
Last active December 24, 2015 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evdb/6867195 to your computer and use it in GitHub Desktop.
Save evdb/6867195 to your computer and use it in GitHub Desktop.
evdb@custard-2 ~ $ virtualenv .venv
New python executable in .venv/bin/python
Installing setuptools............done.
Installing pip...............done.
evdb@custard-2 ~ $ source .venv/bin/activate
(.venv)evdb@custard-2 ~ $ pip install scraperwiki
Downloading/unpacking scraperwiki
Using download cache from /Users/evdb/.pip-download-cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fs%2Fscraperwiki%2Fscraperwiki-0.3.6.tar.gz
Running setup.py egg_info for package scraperwiki
Downloading/unpacking dumptruck>=0.1.2 (from scraperwiki)
Using download cache from /Users/evdb/.pip-download-cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fd%2Fdumptruck%2Fdumptruck-0.1.5.tar.gz
Running setup.py egg_info for package dumptruck
Downloading/unpacking requests (from scraperwiki)
Using download cache from /Users/evdb/.pip-download-cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fr%2Frequests%2Frequests-2.0.0.tar.gz
Running setup.py egg_info for package requests
Installing collected packages: scraperwiki, dumptruck, requests
Running setup.py install for scraperwiki
Running setup.py install for dumptruck
Running setup.py install for requests
Successfully installed scraperwiki dumptruck requests
Cleaning up...
(.venv)evdb@custard-2 ~ $ python
Python 2.7.3 (default, Aug 8 2012, 14:50:51)
[GCC 4.2.1 Compatible Apple Clang 4.0 ((tags/Apple/clang-421.0.60))] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import scraperwiki
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/evdb/.venv/lib/python2.7/site-packages/scraperwiki/__init__.py", line 10, in <module>
import utils, sqlite
File "/Users/evdb/.venv/lib/python2.7/site-packages/scraperwiki/sqlite.py", line 11, in <module>
_connect()
File "/Users/evdb/.venv/lib/python2.7/site-packages/scraperwiki/sqlite.py", line 9, in _connect
dt = DumpTruck(dbname = dbname, adapt_and_convert = False)
File "/Users/evdb/.venv/lib/python2.7/site-packages/dumptruck/dumptruck.py", line 78, in __init__
self.sqlite3 = __import__('sqlite3')
File "/usr/local/Cellar/python/2.7.3/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
from dbapi2 import *
File "/usr/local/Cellar/python/2.7.3/lib/python2.7/sqlite3/dbapi2.py", line 27, in <module>
from _sqlite3 import *
ImportError: dlopen(/Users/evdb/.venv/lib/python2.7/lib-dynload/_sqlite3.so, 2): Library not loaded: /usr/local/lib/libsqlite3.0.8.6.dylib
Referenced from: /Users/evdb/.venv/lib/python2.7/lib-dynload/_sqlite3.so
Reason: image not found
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment