What is the meaning of : "Symbol not found: ____chkstk_darwin"? - django

I have the message below when I run my server:
Symbol not found: ____chkstk_darwin
I want to connect Postgresql with Django but it seems it doesn't work with this problem mentioned before.
This is the response of the shell when I am trying to run my server:
raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: dlopen(/Users/Nicolas/Desktop/OC/Python/Projets/P8_purbeurre/venv/lib/python3.7/site-packages/psycopg2/_psycopg.cpython-37m-darwin.so, 2): Symbol not found: ____chkstk_darwin
Referenced from: /Users/Nicolas/Desktop/OC/Python/Projets/P8_purbeurre/venv/lib/python3.7/site-packages/psycopg2/.dylibs/libcrypto.1.1.dylib (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
in /Users/Nicolas/Desktop/OC/Python/Projets/P8_purbeurre/venv/lib/python3.7/site-packages/psycopg2/.dylibs/libcrypto.1.1.dylib
I have a macbook Pro High Sierra version 10.13.6.

Related

installing rmarkdown packages gives me non-zero exit status

I am completely new to RStudio. Hence I apologize in advance for my inexpertise.
the response to install.packages("rmarkdown") the first code below.
Then, when I try to go to New file Rmarkdown it appears the alert: "Creating R Markdown documents requires an updated version of the rmarkdown package. Do you want to install this package now?"
When I accept I get the second code below.
What can I do to solve the problem? You help a total beginner please? Thank you for your patience. I am using RStudio 1.3.1093 on OS Sierra 10.12.6
'''
There is a binary version available but the source version is later:
binary source needs_compilation
rmarkdown 2.3 2.5 FALSE
installing the source package ‘rmarkdown’
provo con l'URL 'https://cran.rstudio.com/src/contrib/rmarkdown_2.5.tar.gz'
Content type 'application/x-gzip' length 3203415 bytes (3.1 MB)
==================================================
downloaded 3.1 MB
Warning in file(con, "r") :
cannot open file '/var/db/timezone/zoneinfo/+VERSION': No such file or directory
dyld: lazy symbol binding failed: Symbol not found: _utimensat
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _utimensat
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib
/Library/Frameworks/R.framework/Resources/bin/INSTALL: line 34: 51734 Done echo 'tools:::.install_packages()'
51735 Abort trap: 6 | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R" $myArgs --no-echo --args ${args}
Warning in install.packages :
installation of package ‘rmarkdown’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/_3/fpj05lzj5zj03typ4t6k3wlh0000gn/T/RtmpMVE5wW/downloaded_packages’
Installing 'rmarkdown' for R Markdown...
There is a binary version available but the source version is later:
binary source needs_compilation
rmarkdown 2.3 2.5 FALSE
installing the source package ‘rmarkdown’
provo con l'URL 'https://cran.rstudio.com/src/contrib/rmarkdown_2.5.tar.gz'
Content type 'application/x-gzip' length 3203415 bytes (3.1 MB)
==================================================
downloaded 3.1 MB
Warning in file(con, "r") :
cannot open file '/var/db/timezone/zoneinfo/+VERSION': No such file or directory
dyld: lazy symbol binding failed: Symbol not found: _utimensat
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _utimensat
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib
/Library/Frameworks/R.framework/Resources/bin/INSTALL: line 34: 51767 Done echo 'tools:::.install_packages()'
51768 Abort trap: 6 | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R" $myArgs --no-echo --args ${args}
The downloaded source packages are in
‘/private/var/folders/_3/fpj05lzj5zj03typ4t6k3wlh0000gn/T/RtmpDhf44F/downloaded_packages’
✔ Package 'rmarkdown' successfully installed.
Warning message:
In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/") :
installation of package ‘rmarkdown’ had non-zero exit status
Try install.packages(“rmarkdown”, dep = TRUE) . I also see something about the time zone, is your PC on the right time? I’ve seen installs not work because of the pc had the wrong time. You will also need to install latex with Rmarkdown

Caffe2 installed correct but can't load glog library

I pip installed caffe2 via a "Prebuilt Caffe2 Python Wheel" without an error. But running the first example I get the following error message which seems not be able to find/load "/usr/local/opt/glog/lib/libglog.0.dylib".
If I import caffe2.python it does not give me an error.
The glog is missing in usr/local/opt.
Is this a Mac GPU problem ? I know that CUDA is a problem/does not run on Mac or is there anything else I missed/I have to do. ?
Thanks for any help.
WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode.
WARNING:root:Debug message: No module named caffe2_pybind11_state_gpu
CRITICAL:root:Cannot load caffe2.python. Error: dlopen(/usr/local/lib/python2.7/site-packages/caffe2/python/caffe2_pybind11_state.so, 10): Library not loaded: /usr/local/opt/glog/lib/libglog.0.dylib
Referenced from: /usr/local/lib/python2.7/site-packages/caffe2/python/caffe2_pybind11_state.so
Reason: image not found

VTK error message in ipython on CentOS 7

I am using a module called pymatgen (http://pymatgen.org). There is a function within pymatgen
which displayed a graphical representation of an structure object. pymatgen requires VTK and
the VTK python bindings. I have installed both on my CentOS 7 system. Yum reports
%yum list installed |grep -i vtk vtk.x86_64
6.1.0-5.el7 #epel vtk-python.x86_64
6.1.0-5.el7 #epel vtk-qt.x86_64
6.1.0-5.el7#epel vtk-qt-python.x86_64#epel
in ipython (4.2.1)
In [1]: import pymatgen as mg
In [2]: from pymatgen.vis.structure_vtk import StructureVis
In [3]: struct = mg.Structure.from_file('POSCAR')
In [4]: StructureVis(struct)
libGL error: No matching fbConfigs or visuals found libGL error:
failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 150 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 44
Current serial number in output stream: 45
I am confused by this error as VTK is installed. I am using the CentOS 7 machine via a
remote X11 client (on a Macintosh using Mac OS X 10.11.5).
Does anyone have a suggestion as to how to resolve this problem as it is preventing me from using the visualization environment.

graph-tool crahes on import

Using Python 2.7 I try to import graph-tool:
from graph_tool.all import *
Each time I execute the above command the following error is returned and Python crashes.
dyld: lazy symbol binding failed: Symbol not found:
__ZN5boost6python6detail11init_moduleEPKcPFvvE Referenced from: /usr/local/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.so
Expected in: flat namespace
dyld: Symbol not found: __ZN5boost6python6detail11init_moduleEPKcPFvvE
Referenced from:
/usr/local/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.so
Expected in: flat namespace
Trace/BPT trap: 5
I installed graph-tool with homebrew on Mac OSX 10.10. Does anybody know how to fix this issue?
There is probably a mismatch between the python version you are using,
and the one used to compile boost::python and graph-tool.
For example, you might be using the system's python, whereas
graph-tool/python were compiled with a version installed via homebrew.
Python modules have been installed but the site-packages may not be
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run like this:
mkdir -p /Users/myname/Library/Python/2.7/lib/python/site-packages
echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/myname/Library/Python/2.7/lib/python/site-packages/homebrew.pth
In my case it's the homebrew site-packages, but may not yours

Error in loading OpenCV from Python on OS X Marericks

I've correctly build OpenCV in OS X and I can use it with C++,
however, when I try to load the cv2 module from Python, I get this error:
import cv2
Traceback (most recent call last):
File "", line 1, in
ImportError: dlopen(/usr/local/lib/python2.7/site-packages/cv2.so, 2): Symbol not found: _ZN2cv11FileStorageC1ERKSsiS2
Referenced from: /usr/local/lib/python2.7/site-packages/cv2.so
Expected in: lib/libopencv_core.2.4.dylib
in /usr/local/lib/python2.7/site-packages/cv2.so
I have the same issue both with python and opencv installed from macports and when compiling OpenCV by my self. I have tried to use Python 2.7.5 and 2.7.6 and opencv 2.4.5 and 2.4.6.1