import psycopg2
Traceback (most recent call last): File "", line 1, in
File
"/Users/vedantwarekar/anaconda3/lib/python3.6/site-packages/psycopg2/init.py",
line 51, in
from psycopg2._psycopg import ( # noqa ImportError:
dlopen(/Users/vedantwarekar/anaconda3/lib/python3.6/site-packages/psycopg2/_psycopg.cpython-36m-darwin.so,
2): Symbol not found: _PQencryptPasswordConn Referenced from:
/Users/vedantwarekar/anaconda3/lib/python3.6/site-packages/psycopg2/_psycopg.cpython-36m-darwin.so
Expected in: /usr/lib/libpq.5.dylib in
/Users/vedantwarekar/anaconda3/lib/python3.6/site-packages/psycopg2/_psycopg.cpython-36m-darwin.so
I got this error when I installed Postgresql on my mac with the app(POSGIS).
It was resolved upon loading with brew:
brew install postgresql#<version>
Related
This error is displayed in the console
Traceback (most recent call last):
File "main.py", line 12, in <module>
from utils.sql import ManagerDB
ModuleNotFoundError: No module named 'utils.sql'
check your project if "utils" is your own python package, name "utils" is too generic,unlikely is a PYPI package which you install by pip
I have installed python-pcl| using pip. When I try to import pcl in my conda environment I am getting the following
ERROR
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/is/sg2/ghegde/install/conda/envs/deepl/lib/python3.6/site-packages/pcl/__init__.py", line 2, in <module>
from ._pcl import *
ImportError: /usr/lib/x86_64-linux-gnu/libpcl_visualization.so.1.8: undefined symbol: _ZN3pcl9PCDWriter10writeASCIIERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_14PCLPointCloud2ERKN5Eigen6MatrixIfLi4ELi1ELi0ELi4ELi1EEERKNSC_10QuaternionIfLi0EEEi
getting a error while a installing a tensorflow python project from https://github.com/victordibia/skyfall
first i tried to install the requiremnt.txt file i got Could not detect requirement name for 'git+https://github.com/dpallot/simple-websocket-server.git', please specify one with #egg=your_package_name error,
then i removed the last line of txt file, then getting this
Traceback (most recent call last):
File "app.py", line 18, in
from utils import web_socket_server
File "C:\Users\anurag\Downloads\skyfall-master\utils\web_socket_server.py", line 4, in
from SimpleWebSocketServer import SimpleWebSocketServer, WebSocket
ModuleNotFoundError: No module named 'SimpleWebSocketServer'
after that i installed git , now getting this
Traceback (most recent call last):
File "app.py", line 19, in
from utils import web_socket_client
File "C:\Users\anurag\Downloads\skyfall-master\utils\web_socket_client.py", line 8, in
from websocket import WebSocketException, WebSocketConnectionClosedException
ImportError: cannot import name 'WebSocketException'
The error means that you have not installed this package: https://github.com/dpallot/simple-websocket-server
Try this to install it(you must have pip installed and also git) and then run the project again:
python -m pip install git+https://github.com/dpallot/simple-websocket-server.git
I connected Python with MySQLdb using MySQLConnector but now i am getting the following error.
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import MySQLdb
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.6-intel.egg/MySQLdb/__init__.py", line 19, in <module>
import _mysql
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.6-intel.egg/_mysql.so, 2): Symbol not found: _mysql_affected_rows
Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.6-intel.egg/_mysql.so
Expected in: flat namespace in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.6-intel.egg/_mysql.so
After installing using homebrew, i am getting the following errors
Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
import _mysql
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.6-intel.egg/_mysql.so, 2): Symbol not found: _mysql_affected_rows
Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.6-intel.egg/_mysql.so
Expected in: flat namespace in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.6-intel.egg/_mysql.so
i use flask.I installed MySQL using easy_install mysql-python and then tried to run my app.py but got this lines of error.What is those mean?
Traceback (most recent call last):
File "app.py", line 7, in <module>
import MySQLdb
File "/Users/ozcan/Documents/python/venv/lib/python2.7/site-packages/MySQLdb/__init__.py", line 19, in <module>
import _mysql
ImportError: dlopen(/Users/ozcan/Documents/python/venv/lib/python2.7/site-packages/_mysql.so, 2): no suitable image found. Did find:
/Users/ozcan/Documents/python/venv/lib/python2.7/site-packages/_mysql.so: mach-o, but wrong architecture
I would suggest to use Flask-MySQL instead.
Here's documentation https://flask-mysql.readthedocs.org/en/latest/