question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Image not found error during import

See original GitHub issue

The following error pops up when trying to import the library

>>> import pyodbc
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dlopen(/Library/Python/2.7/site-packages/pyodbc.so, 2): Library not loaded: /usr/local/lib/libodbc.2.dylib
  Referenced from: /Library/Python/2.7/site-packages/pyodbc.so
  Reason: image not found

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:3
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

78reactions
SamLiu79commented, Dec 15, 2015

@Dawny33 @Yanchek99 you should install unixodbc on your system.

#brew install unixodbc                                                                                                
==> Downloading https://homebrew.bintray.com/bottles/unixodbc-2.3.2_1.el_capitan.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring unixodbc-2.3.2_1.el_capitan.bottle.1.tar.gz
🍺  /usr/local/Cellar/unixodbc/2.3.2_1: 31 files, 1020K

#ipython                                                                                                                
Python 2.7.11 (default, Dec  5 2015, 14:44:53)
Type "copyright", "credits" or "license" for more information.

IPython 4.0.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import pyodbc
4reactions
Ritish-Madancommented, May 7, 2021

I did install the unixODBC using Homebrew. And I have the Python installed using the Graphic Installer, instead of Homebrew installation of Python.

I don’t know if it is creating the problem, but installing the unixodbc is still throwing the same error after importing pyodbc

I did also tried using brew install python3, but Homebrew version of python do not install the other libraries like Pandas, Numpy, Pyodbc too. So I installed the Python3 graphically and got all the other libraries installed.

I have MacBook Air M1

Read more comments on GitHub >

github_iconTop Results From Across the Web

NumPy: Import Error, Image Not Found OSX - Stack Overflow
py file and run it through Terminal as, for example, python test.py. It finds the NumPy library and executes fine: #!/usr/bin/env python import...
Read more >
Import Error: Image not found - Knowledge Base Home
Cause: Image not found at available URL or within .zip file. Resolution: Locate the excel row with the missing image issue.
Read more >
Error importing remote images. Error: Not found - WordPress.org
Hi, I have a problem when importing products with a copy .csv. It fails to import the images of those products “Error: Not...
Read more >
Module not found: Can't resolve image in React [Solved]
To solve the error, import the image and make sure the path that points to the image is correct in your import statement....
Read more >
oc import-image command fails with "Import failed (NotFound ...
The import of an image using the oc import-image command fails with error Import failed (NotFound) although the image exists and can be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found