Terminal dies and restarts when I try to import fancyimpute - fancyimpute

I am using ubuntu 18.04. When I try to import fancy impute in jupyter notebook using python 3 suddenly the kernal dies and restarts. PLease help.

Related

Setting up MQTT on Ubuntu to run Frigate

I'm trying to setup Frigate in a Docker container running on Ubuntu 22.04 on my Beelink. To do so you need have some prerequisites.
Docker
MQTT
And more
I've installed Mosquitto MQTT before on a Raspberry Pi running Ubuntu 22.04 and it worked. After trying to install it again on my Beelink running Ubuntu, it gave the error seen in the screenshot.
Any advice?
I've uninstalled it and reinstalled it. This is all new to me. Just started using Linux and the terminal.
Apologies for not attaching the screenshots earlier. I don't have access to the actual text right now. I'll be sure to add text next time instead of a screenshot.
enter image description here

Running OpenCV inside Apptainer with GPU support

I'm trying to run a OpenCV application inside an Apptainer container, in a remote machine, passing the --nv flag for granting GPU support. But then I get this error:
import cv2
ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34` not found (required by /.singularity.d/libs/libGLdispatch.so.0)
If I run the same container without the --nv flag, cv2 imports correctly, but then of course I loose the GPU access. The same container runs correctly on my local machine (with NVIDIA GPU) with --nv flag.
So, I suspect --nv flag specifically in my remote machine. It is probably binding incompatible libraries form the host to the container.
I was hoping someone with Apptainer (singularity) experience could help me figure out how to fix this for my remote machine, or at least point me in the right direction.
Thanks!

Neo4j db slow running it on Mac M1 with neo4j desktop

I downloaded the neo4j desktop to my Mac M1, I notice that the same import which takes a few minutes on an Ubuntu 20.04 machine (same running a neo4j db in desktop setup) is extremely slow. (48 hours for the same query)
After talking to some neo4j folks on the conference:
https://mkyong.com/java/how-to-install-java-on-mac-osx/
you need to:
brew install java
sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
I already had a neo4j desktop on my machine so to make it work I reinstalled the neo4j desktop and created a new db, now the import flies.
(And you probably do not need to reinstall just create a new db)

Jupyter-Lab doesn't show the path for the new internal HDD

I recently added an internal HDD to my PC but I cannot locate its path from Jupyter-Lab to work with. It works fine through Spyder thou.
I finally found a command line that can open Jupyter Lab or Jupyter Notebook from any drive you would like.
To open Jupyter Lab in drive E for example, you just need to write the following line in anaconda prompt:
jupyter lab --notebook-dir=E://

Restore Tensorflow model on docker

I am using a face recognition model based on tensorflow. in my local machine - ubuntu 14.04 - everything works.
when I deploy it using docker, I am getting the following error:
DataLossError: Unable to open table file /data/model/model.ckpt-80000: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you
need to use a different restore operator?
I am using python implementation for tensorflow.
The model is in the old 11.* format (model.meta & model.ckpt-80000) while the tensorflow python version is 12.* . It shouldn't be a problem, as that's the configuration in my local machine, as well as in the place where I took the model from.
The versions of tensorflow, numpy and protobuf are identical in my machine and in the docker machine.
Any advice?
UPDATE
I created a small script that runs perfectly on my machine. Then, I run the same script on the deployed on virtual machine (AWS instance) BUT NOT on docker. It also failed, with the same error.
The deployed machine is ubuntu 16.04.
Seems like i was dealing with a corrupted file

Resources