From virtualenv, pip freeze > requirements.txt give TONES of garbage! How to trim it out?

I'm following this tutorial: http://devcenter.heroku.com/articles/django At some point I'm suposed to do: pip freeze > requirements.txt (Ofc. from virtualenv created instance of python) And I...

Django AttributeError: 'str' object has no attribute '_default_manager'

The following error seems to occur randomly on my live server (i.e. through apache mod_wsgi) but never in development (i.e. localhost python manage.py runserver). Note this happens infrequently...

dpkg error: pycompile: not found

sudo apt-get remove --purge mysql-server mysql-client mysql-common I am getting the following error as I try to remove mysql using the above command: Reading package lists... Done Building...

docker entrypoint running bash script gets "permission denied"

I'm trying to dockerize my node.js app. When the container is built I want it to run a git clone and then start the node server. Therefore I put these operations in a .sh script. And run the...

Target WSGI script cannot be loaded as Python module + no module named Django

I know that the question has already been asked here. I've read tons of answers, but nothing helped. I'm using virtualenv (/root/eb-virt); my Django project is called mediar. All public files are...

Python - No module named 'PyMySQL'

I'm trying to add 'PyMySQL, but it keeps throwing Traceback (most recent call last): File "/home/john/workspace/Python/sql/sql.py", line 1, in <module> import PyMySQL ImportError: No module...

cv2.VideoCapture not working in docker container on a mac host

I am unable to open the web cam or capture a video in an Ubuntu 16.04 docker container on a Mac OS Sierra 10.12.6 Host. vid = cv2.VideoCapture(0) where vid.isOpened() returns a False and ret,...

"ModuleNotFoundError: No module named <package>" in my Docker container

I'm trying to run a python script in a Docker container, and i don't know why, python can't find any of the python's module. I thaught it has something to do with the PYTHONPATH env variable, so i...

Google Colab is very slow compared to my PC

I've recently started to use Google Colab, and wanted to train my first Convolutional NN. I imported the images from my Google Drive thanks to the answer I got here. Then I pasted my code to...

Problem: Google Colab import libraries and authorization to use google drive takes too long?

I execute this part of code in google colab, to authorize me so to get access to my drive folders !apt-get install -y -qq software-properties-common python-software-properties...

How to get messages from googles Pub/Sub sytsem by using the current pubsub subsciber

I need to receive published messages from googles Pub/Sub system by using a python based subscriber. For this I did the following steps: On the web console I created a project, a registry, a...

ImportError: libf77blas.so.3: cannot open shared object file: No such file or directory Raspberry Pi3

I have a Raspberry Pi3 and my goal is to run several python3 scripts there as a dedicated server. So far, I have installed with pip3 the following...

APR for optimal performance in production environments

I am installing a java application in a docker container. It runs fine but I keep gettig this error in the logs: INFO 1 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : The APR...

How to fix 'python: not found' error when using PostCreateCommand in vscode remote docker extension

I'm using the Visual Studio Code Remote - Containers extension with a customized DockerFile. It is based on...

Getting error to run test cases from bit-bucket pipeline( working on localhost direct test cases)

I am using lmc-eu/steward to write test cases with selenium server in php i am running this test cases direct command that is working fine but as i have added it in bitbucket pipeline then its...

Where should I create a folder with my own DAGs for Airflow?

I have to work with Airflow on Windows. I'm new to it, so I have a lot of issues. So, I've already done all the steps from one of the tutorial using Ubuntu: sudo apt-get install...

CVAT(Computer Vision Annotation Tool) installation issue

I'm trying to install CVAT and I'm following this installation guide: https://github.com/opencv/cvat/blob/develop/cvat/apps/documentation/installation.md#windows-10 I installed Docker and Git as...

Package 'python-software-properties' has no installation candidate

I cloned this project : https://github.com/sayems/kubernetes.resources/tree/master/k8s-vagrant And when i try to execute : vagrant up I'm getting this error : ==> k8s-master: Running...

Using dbus to poweroff Raspberry Pi inside docker container and python

I'm using BalenaOS and building a docker container with some python that senses when a button is pressed and then is supposed to send this command: dbus-send --system \ --print-reply=literal...

Failed to fetch packages from jonathonf repository while running Dockerfile from AzureDevOps

I have a Dockerfile which is getting the packages from a source called jonathonf but it's failing to download some packages from this repository. Could any one please help me with the solution? I...

Python Kivy won't use SDL2, insists on using pygame

I struggle to make Kivy (1.11.0) use SDL2 on Ubuntu 18.04 desktop. It keeps demanding pygame but that's been deprecated and I don't want to use it for a new project. On a fresh new Ubuntu 18.04 VM...

Error with Python3 to connect to snowflake: snowflake.connector.errors.OperationalError::Failed to execute:'SSLSocket' object has no attribute 'conn

It seems there is some issue with latest snowflake connector . I am trying to install it on Ubuntu OS and trying to connect to snowflake but it gives error AttributeError: 'SSLSocket' object has...

Docker container OSError: [Errno 5] Input/output error: while reading files on a mac os

I'm trying to run a python script inside a docker container. The version is Cloud integration: 1.0.4 Version: 20.10.2 API version: 1.41 Go version: go1.13.15 Git...

Im trying to build mediapipe on my jetson nano

So Im trying to build a mediapipe whl file for my jetson nano by following this guide https://github.com/jiuqiant/mediapipe_python_aarch64 I am successful on building it with my raspberry pi 4. By...

Broken package installation using Ansible on debian 11 Bullseye

I woud like to install debian packages using Ansible 2.7.7 on Debian testing (yet) I try to execute this simple task: tasks: - name: install basic packages apt: name: ['mc', 'htop',...

ImportError: cannot import name 'LayerNormalization' from 'tensorflow.python.keras.layers.normalization' , getting this error on colab?

I am trying to build a Object Detection model using Tensorflow Object detection API & I am doing this on Colab. But when I am importing Tensorflow I am getting this error,I think this is because...

Terraform: How to mount EFS access point to EC2?

My goal is to install some python packages on the EFS and connect it to my Lambda. Now I'm at the point were I mount EFS to the EC2 instance and install certain libraries, like numpy. The whole...

How to create a secret in k8s using Ansible-K8s

I've create the following task in my ansible playbook. - name: Create a k8s namespace k8s: state: present definition: apiVersion: v1 kind: Secret ...

pycharm error happening at random time: Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

I am working with pycharm community on a tensorflow model with keras backend, sometimes this error appears in a random time, specially after I call pyplot and close the window: Exception ignored...

Puppeteer on Docker M1 Mac fails to open new page (`Target.createTarget`)

I'm unable to launch a new page using Puppeteer within Docker, on an M1 Mac. Versions Docker: version 20.10.11, build dea9396 Node: 16.13.1 MacOS: 12.0.1 (21A559) Puppeteer: 13.0.1 M1 Chip Error...