when add a QTGUI-sink module in gnuradio-companion , gr just crashed with the following error:
segmentation fault (core dumped)
above this error, I noticed some warnings
Warning: restarting the docstring loader (crashed while loading 'qtgui_bercurve_sink')
Warning: restarting the docstring loader (crashed while loading 'qtgui_const_sink_x')
Warning: restarting the docstring loader (crashed while loading 'qtgui_edit_box_msg')
Warning: restarting the docstring loader (crashed while loading 'qtgui_freq_sink_x')
Warning: restarting the docstring loader (crashed while loading 'qtgui_histogram_sink_x')
Warning: docstring loader crashed too often
So I import Qtgui, but it was ok.
>>> from PyQt5 import QtGui
env:
os: Ubuntu LTS 20.04
python: python3.8
GnuRadio: Gnuradio3.8.5
gcc:9.3.0
Related
After installing cupy via "pip install cupy-cuda110", I tried this in python3:
import cupy as cp
However, it failed:
"
$ python3
Python 3.8.10 (default, Nov 26 2021, 20:14:08)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import cupy as cp
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/cupy/init.py", line 18, in
from cupy import _core # NOQA
File "/usr/local/lib/python3.8/dist-packages/cupy/_core/init.py", line 1, in
from cupy._core import core # NOQA
ImportError: libnvrtc.so.11.0: cannot open shared object file: No such file or directory
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.8/dist-packages/cupy/init.py", line 20, in
raise ImportError(f'''
ImportError:
Failed to import CuPy.
If you installed CuPy via wheels (cupy-cudaXXX or cupy-rocm-X-X), make sure that the package matches with the version of CUDA or ROCm installed.
On Linux, you may need to set LD_LIBRARY_PATH environment variable depending on how you installed CUDA/ROCm.
On Windows, try setting CUDA_PATH environment variable.
Check the Installation Guide for details:
https://docs.cupy.dev/en/latest/install.html
Original error:
ImportError: libnvrtc.so.11.0: cannot open shared object file: No such file or directory
"
May you know how to resolve this problem? Many thanks!
Before installing cupy, you should check the version of Cuda that is installed on your device :
!nvcc --version
For me, the Cuda version installed on my device is 11.0 (See the picture below) :
After that go to the official Cupy website https://docs.cupy.dev/en/stable/install.html
The following image is from the page I referred to above:
Then type the install command that matches your Cuda version, for me, the install command will be :
pip install cupy-cuda110
When installing these packages with CUDA 11.2, 11.3, or 11.4, you may experience a “Failed to import CuPy” error. To resolve this error, please uninstall cupy-cuda115 and install cupy-cuda11x:
pip uninstall cupy-cuda115
pip install cupy-cuda11x
https://rapids.ai/pip.html
ERROR: Failed to import the TensorFlow module.
Reason: Traceback (most recent call last):
File "C:\Users\pratap\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: The specified module could not be found.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
Python version is 3.8.
The official distribution of TensorFlow for Windows requires Python version 3.5 or 3.6.
TensorFlow is installed at: C:\Users\pratap\Anaconda3\lib\site-packages\tensorflow
msvcp140.dll Found at C:\Users\pratap\Anaconda3\msvcp140.dll
Could not load 'cudart64_90.dll'. Download and install CUDA 9.0 from
this URL: https://developer.nvidia.com/cuda-toolkit
Could not load 'nvcuda.dll'. The GPU version of TensorFlow requires that
this DLL be installed in a directory that is named in your %PATH%
environment variable. Typically it is installed in 'C:\Windows\System32'.
If it is not present, ensure that you have a CUDA-capable GPU with the
correct driver installed.
Could not load 'cudnn64_7.dll'. The GPU version of TensorFlow
requires that this DLL be installed in a directory that is named in
your %PATH% environment variable. Note that installing cuDNN is a
separate step from installing CUDA, and it is often found in a
different directory from the CUDA DLLs. You may install the
necessary DLL by downloading cuDNN 7.0 for Cuda 9.0 from this URL:
https://developer.nvidia.com/cudnn
An exception has occurred, use %tb to see the full traceback.
SystemExit: -1
Tensorflow supports python3.8 starting from version 2.2.
I would recommend running conda install python=3.6 and taking it from there.
I am using ROS-melodic in ubuntu 18.04 LTS. I am getting this error:
Could not import "pyqt" bindings of qt_gui_cpp library - so C++ plugins will not be available:
Traceback (most recent call last):
File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui_cpp/cpp_binding_helper.py", line 43, in <module>
from . import libqt_gui_cpp_sip
ImportError: dynamic module does not define module export function (PyInit_libqt_gui_cpp_sip)
however I have installed pyqt5 and pydot manually, rqt_graph shows up but with this warning. I want to know what can I do to get it right? Is this going to be problem in future? Now rqt_graph is loading but I don't know if this will mess up/create lacking in the graph?
Try uninstalling double packages if any using
pip3 uninstall PyQt5-sip PyQt5
Then try importing it in python3 to check if any other version is there.
If the import is successful then try running the command again
rosrun rqt_graph rqt_graph
if still some error exists install
pip3 install PyQt5==5.12
I'm currently using this Heroku buildpack to install numpy and scipy. Then, I am able to just pip install sklearn from my requirements.txt file during the push deployment.
It appears to install fine, but I run into various errors in files due to imports.
They all ultimately yield an ImportError of:
undefined symbol: cblas_dscal
or
undefined symbol: cblas_dasum
Does anyone have any insight on how to resolve this?
I'm trying to install matplotlib with pip in a virtualenv on debian wheezy.
And i get the following message:
Running setup.py egg_info for package matplotlib
GotoBLAS : Architecture Initialization failed. No initialization function found.
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [1.3.1]
python: yes [2.7.3 (default, Jan 2 2013, 13:56:14) [GCC
4.7.2]]
platform: yes [linux2]
REQUIRED DEPENDENCIES AND EXTENSIONS
Complete output from command python setup.py egg_info:
GotoBLAS : Architecture Initialization failed. No initialization function found.
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [1.3.1]
python: yes [2.7.3 (default, Jan 2 2013, 13:56:14) [GCC
4.7.2]]
platform: yes [linux2]
REQUIRED DEPENDENCIES AND EXTENSIONS
----------------------------------------
I previously had libopenblas-dev installed. In fact, I managed to install matplotlib in Ubuntu Gnome 13.10 using the same procedure.
Any ideas?
Update 1:
I finally installed matplotlib from the distribution packages. Then based on this question I created an environment using the flag --system-site-packages.
To test the installation I tried to import matplotlib in python:
>>> import matplotlib
GotoBLAS : Architecture Initialization failed. No initialization function found.
But I get the same error :( .
Update 2:
I found this post. It is the same error and it was on KVM, just like me. Maybe this error is related with KVM?
I just installed matplotlib without problems in debian wheezy running over VirtualBox. But I really need to install it on the KVM machine.
Update 3:
The same error occurs when trying to import numpy in the same system:
>>> import numpy
GotoBLAS : Architecture Initialization failed. No initialization function found.
this worked for me:
sudo apt-get purge libopenblas-dev
I finally found a solution! I followed the procedure in Daniel Nouri's Blog.
Here's a summary:
Install libatlas3-base:
sudo apt-get install libatlas3-base
Use liblapack3.so.3 from /usr/lib/atlas-base/atlas/liblapack.so.3 as your default:
sudo update-alternatives --config libblas.so.3