Problems with psycopg2 installation/Python path

I created a virtualenv in my django app folder, and there I installed all my python dependencies. My Django project is called theme, so in the theme folder there is a venv folder that contains the...

Why is libtool looking for .lib files instead of .a files?

I am in the process of cross-compiling Fontconfig for Windows using Mingw-w64 (the host is Ubuntu 12.04 64-bit). The process consists of the following steps: Compile and install the build...

OpenCV VideoWriter using ffmpeg with "Could not open codec 'libx264'" Error

I am new to OpenCV, and I want write Mat images into video using VideoWriter on Ubuntu 12.04. But when constructing VideoWriter, errors came out. It seems that OpenCV invoke ffmpeg API using...

Kivy on RaspberryPi (Raspbian) - unable to load any valuable window provider

on my RaspberryPi I am using Python v3.4.3 . Recently, I (kind of successfully) managed to install Kivy v1.9.1-dev on it by the following shell commands: sudo echo "deb...

Cannot "pip install cryptography" in Docker Alpine Linux 3.3 with OpenSSL 1.0.2g and Python 2.7

Solved Wow, these guys are fast... It's basically this https://github.com/pyca/cryptography/issues/2750 It turned out that a security update for openssl was released (DROWN Attack) and that update...

Install pip in docker

I'm not able to install pip in Docker. Here's my Dockerfile: FROM ubuntu:14.04 # Install dependencies RUN apt-get update -y RUN apt-get install -y git curl apache2 php5 libapache2-mod-php5...

Issue in installing php7.2-mcrypt

As I'm trying to load mcrypt extension module from PHP 7.2.X version. So I tried to make use of PECL library that is compatible to the current version of my PHP, in order to get installed and...

Unable to access ec2 ebs backed instance

For some unknown reason, an instance that was accessible via ssh on port 22 is no longer allowing access. After checking security groups and NACLs, correct routing tables associated with Gateways...

jupyter notebook ipython widgets display as text

A colleague (and myself) are trying to write some python scripts to do some common calculation which will also need to be used by our other colleagues. In order to make these scripts easy to use...

Syntax error near unexpected token '(', when sourcing bashrc to setup Openfoam environment

Recently I installed Bash on Ubuntu on Windows using WSL to use OpenFOAM. But when I installed OpenFOAM it is giving me the error like: -bash: eval: line 38: syntax error near unexpected token...

WEBP support not installed error with Pillow included in Anaconda

I have written a small code to open webp image in the Anaconda prompt. from PIL import Image im = Image.open('test.webp') It causes the following...

Error installing gevent in Docker Alpine Python

I'm trying to install gevent on docker image python:3.8.0a4-alpine3.9 which is running gunicorn. When building the docker, I always get an error "gcc failed with exit status 1". I've tried...

"AssertionError: Torch not compiled with CUDA enabled" in spite upgrading to CUDA version

I figured out this is a popular question, but still I couldn't find a solution for that. I'm trying to run a simple repo Here which uses PyTorch. Although I just upgraded my Pytorch to the latest...

HDF5 library version error - HDF5 ver 1.10.4

I'm trying to import some packages with spyder (OS x64), Anaconda and pyton 3.x The error is pretty famous in the internet. The solution proposed is to match the version of the library 1.10.5 with...

Understanding the gibberish error when compiling LLVM from source

Here are the things I did, Compiled and installed gcc-9.2. Compiled and installed GNU binutils-2.32 Compiled and installed GNU Make-4.2 I downloaded the source codes for LLVM, Clang, LLD, libcxx,...

VirtualBox crashing when assembly "sti" is executed when testing Operating System

I'm currently attempting to build my own Operating System and have run into an issue when trying to test out my kernel code using VirtualBox. The real issue arises when I call the assembly...

Unable to install Kivy on MacOS10.15 using pip

So I have been using Tkinter up until now to build my GUI's for Python Projects. I want more functionality so - along comes Kivy. I am running MacOS10.15.3. I have Python 3.8.1 installed, as well...

Unable to install sklearn when building docker image

When I try to install sklearn (scikit-learn) when building a docker image, it fails. These are the processed lines of the Dockerfile: FROM amancevice/pandas:0.25.0-alpine RUN apk update RUN apk...

Minikube apiserver stopped frequently

I am using minikube v1.11.0 on Microsoft Windows 10 Pro . my minikube stopped frequently ,Find minikube status Minikube Status: type: Control Plane host: Running kubelet: Running apiserver:...

Why does `conda list cudnn` have no output after `conda install pytorch torchvision cudatoolkit=10.2 -c pytorch` installation

*Please feel free to vote "Reopen" at the bottom of this question. The reason is that I have marked this as a duplicate although the answers there are not clear enough for this question.* As soon...

postgresql-12.service doesn't start on CentOS 8 after reboot

I have a PostgreSQL 12 database running on CentOS 8 and until today everything was good. After restarting my database server, my postgresql-12.service doesn't start anymore, I've tried with...

Why I'm getting this error while building docker image?

I got the following error while building a docker image by "docker-compose build". ERROR: Couldn't connect to Docker daemon at http://127.0.0.1:2375 - is it running? If it's at a non-standard...

Paired values in github actions matrix

I want to build against three compiler versions for a C and C++ project: gcc, gcc-8 and clang (for the C compiler), which should use g++, g++-8 and clang++ respectively for the C++...

Problem during installation PostgreSQL 12 and PgAdmin4 on Linux Mint 20.1 Ulyssa 64-bit

I want to install PostgreSQL and PgAdmin4 on my Linux Mint 20.1 Ulyssa 64-bit My inxi info System: Kernel: 5.4.0-58-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: MATE 1.24.0 info:...

Booting Linux on QEMU/RISC-V64/Busybox leads to error finding `/init` post boot

I'm trying to boot Linux on QEMU for RISC-V. I have set up my own toolchain described below: riscv-gnu-toolchain from [email protected]:riscv/riscv-gnu-toolchain.git qemu v5.2.0 from...

N-body OpenCL code : error CL_​OUT_​OF_​HOST_​MEMORY with GPU card NVIDIA A6000

I would like to make run an old N-body which uses OpenCL. I have 2 cards NVIDIA A6000 with NVLink, a component which binds from an hardware (and maybe software ?) point of view these 2 GPU...

Dockerfile & Poetry | executor failed running [/bin/sh -c poetry install --no-dev]: exit code: 1

Background Originally, I had this post on Unix & Linux; regarding adjusting my system clock. Solved by: sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' '...

Unexpected error when Intel python3.7 shell is launched : impossible to do any command - abort error

I get the following error when I do a simple command a=1 (or any other command) once an Intel python3 shell is launched on a Debian 10: Python 3.7.11 (default, Sep 9 2021, 02:06:38) [GCC 9.3.0]...

Docker failed with [Makefile:192: imagick_file.lo] Error 127

I try to install php in docker of w2orking project with header in Dockerfile : FROM composer:1 AS composer FROM php:7.4-fpm-alpine COPY --from=composer /usr/bin/composer /usr/bin/composer ENV...

Python: matplotlib.pyplot.show() is not showing the plot

import matplotlib.pyplot as plt plt.plot([1,2,3]) plt.show() input("Press enter to continue...") If I run the script above within VS Code, or even within command prompt, the plot canvas only...