ubuntu-16.04

Getting syntax error while using virtualenv package in Ubuntu 16.04

Getting syntax error while using virtualenv package in Ubuntu 16.04 Question: I am running Ubuntu 16.04 in VMware virtual environment. When I try to install virtualenv, I am facing issues. What I did: sudo apt install python3-pip sudo pip3 install virtualenv virtualenv –version The last command is showing this: Traceback (most recent call last): File …

Total answers: 1

Problem when installing Python from source, SSL package missing even though openssl installed

Problem when installing Python from source, SSL package missing even though openssl installed Question: The Problem Trying to install Python-3.11.1 from source on Zorin OS (Ubuntu16 based) I get the following errors when I try to pip install any package into a newly created venv: python3.11 -m venv venv source venv/bin/active pip install numpy WARNING: …

Total answers: 1

I cannot use opencv2 and received ImportError: libgl.so.1 cannot open shared object file no such file or directory

I cannot use opencv2 and received ImportError: libgl.so.1 cannot open shared object file no such file or directory Question: **env:**ubuntu16.04 anaconda3 python3.7.8 cuda10.0 gcc5.5 command: conda activate myenv python import cv2 error: Traceback (most recent call last): File "", line 1, in File "/home/.conda/envs/myenv/lib/python3.7/site-packages/cv2/__init__.py", line 5, in from .cv2 import * ImportError: libGL.so.1: cannot open …

Total answers: 3

Pip cannot find metadata file – EnvironmentError

Pip cannot find metadata file – EnvironmentError Question: Whenever I run pip to install the Flask packages like virtualenv in Ubuntu 16.04, I get this error: pip install virtualenv Requirement already satisfied: virtualenv in ./.local/lib/python3.5/site-packages (16.1.0) No metadata found in ./.local/lib/python3.5/site-packages Could not install packages due to an EnvironmentError: [Errno 2] No such file or …

Total answers: 9

USBError: [Errno 13] Access denied (insufficient permissions)

USBError: [Errno 13] Access denied (insufficient permissions) Question: This problem is old as the world. There are discussions and solutions available. It all boils down to update the rules file and give permissions. So I have followed the recipe. But I still have the same problem. here are screenshots showing I follow instructions. Versions: Python …

Total answers: 6

permission denied in apache configuration : [Errno 13] Permission denied

permission denied in apache configuration : [Errno 13] Permission denied Question: Im tring to host flask on apache2.4(ubuntu 16) using wsgi and but im facing 500 error in browser: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at [email protected] to …

Total answers: 2

AttributeError: module 'mysql' has no attribute 'connector'

AttributeError: module 'mysql' has no attribute 'connector' Question: I’m running Ubuntu 16.04, trying to connect to mysql in python: import mysql username = ‘root’ cnx = mysql.connector.connect(user=username, database=’db’) cnx.close() But I get an error: File “pysql1.py”, line 4, in <module> cnx = mysql.connector.connect(user=username, database=’db’) AttributeError: module ‘mysql’ has no attribute ‘connector’ I installed the mysql …

Total answers: 8

Python: Can't connect to HTTPS URL because the SSL module is not available

Python: Can't connect to HTTPS URL because the SSL module is not available Question: I’m trying to connect to Stripe to setup payments. I have it working on my dev machine, but when I push to prod, I get the following SSL error: Can’t connect to HTTPS URL because the SSL module is not available. …

Total answers: 1