Turtle Graphics Not Responding

I am creating diagrams with the turtle package in Python, and it is successful to some extent, except for one problem. Once turtle generates the diagram that I have in code, it causes the program...

SimpleCV cannot load OpenCV library

I have installed SimpleCV from the 1.3 Superpack in Win Server 2008 R2. In Python, I can load the Image library as: from SimpleCV import Image This works correctly in Python scripts executed...

PyOpenGL glutInit NullFunctionError

I am running Anaconda Python 2.7 on a Win7 x64 machine and used pip install PyOpenGL PyOpenGL_accelerate at the Anaconda command line to install PyOpenGL. I have some code (not my own I must...

How to add package data recursively in Python setup.py?

I have a new library that has to include a lot of subfolders of small datafiles, and I'm trying to add them as package data. Imagine I have my library as so: library - foo.py - bar.py ...

How do I debug "Error: spawn ENOENT" on node.js?

When I get the following error: events.js:72 throw er; // Unhandled 'error' event ^ Error: spawn ENOENT at errnoException (child_process.js:1000:11) at...

Cannot import cv2 in PyCharm

I am working on a project that requires OpenCV and I am doing it in PyCharm on a Mac. I have managed to successfully install OpenCV using Homebrew, and I am able to import cv2 when I run Python...

Unable to install mysqlclient in python3 virtualenv

I want to run django with MySQL and Python 3. I initialized virtual environment with virtualenv --no-site-packages -p python3 ./. Then I installed django and wheel using pip, so pip freeze...

AWS Lambda import module error in python

I am creating a AWS Lambda python deployment package. I am using one external dependency requests . I installed the external dependency using the AWS documentation...

"pip install unroll": "python setup.py egg_info" failed with error code 1

I'm new to Python and have been trying to install some packages with pip. But pip install unroll gives me Command "python setup.py egg_info" failed with error code 1...

Unable to install cv2 on windows

I am trying to install opencv in python on my windows machine but I am unable to do so. I have python 2.7.11::Anaconda 2.4.1 <32-bit> Here is what I have tried till now - pip install cv2 on...

Is it possible for AWS Lambda to run a Windows binary via Wine?

I have a Python script with a Windows .exe dependency, which in return relies on a (closed-source) Windows DLL. The Python script runs just fine in Ubuntu via a call to Wine. Is it possible (and...

OpenCV !_src.empty() in function 'cvtColor' error

I am trying to do a basic colour conversion in python however I can't seem to get past the below error. I have re-installed python, opencv and tried on both python 3.4.3 (latest) and python 2.7...

Pip installs packages in the wrong directory with virtualenv

With Python 3.7 on OS X I set up a virtual environment then $ source venv/bin/activate $ pip install numpy $ which pip pip is /Users/me/PycharmProjects/Test1/venv/bin/pip (venv)...

Can we use node-gdal package in angular6 project?

I am new to angular, trying to use gdal native library in angular 6 project, Since angular uses npm and GDAL native library is also available in node.js. Can we do this using node-gdal package? I...

pip.exe missing in python scripts module

correction i edited the environment variable to path Scripts, but in the command prompt on typing the pip command it does not shows up the package installation python\scripts location...

Call stored procedure airflow using Oracleoperator

I'm new to Python. I am using apache airflow and a task I am calling a stored procedure oracle. I see error illegal variable name / number t1 = OracleOperator( task_id='Exe_PA', ...

How to import a local module into azure databricks notebook?

I'm trying to use a module in databrick's notebook but I am completely blocked. I'd like to execute the following command or anything similar which allow my to make instances of MyClass from...

ModuleNotFoundError: No module named 'win32serviceutil'

I have a project which can be installed as Windows Service, but i have troubles getting it done. Venv is prepared for this project with pywin32 package installed (version 227). However while I am...

How to use TailwindCSS with Django?

How to use all features of TailwindCSS in a Django project (not only the CDN), including a clean workflow with auto-reloading, and purgeCSS step to be production-ready? When googling, I found a...

If the f-string like string formatting available in Julia?

So I am new to Julia and learned various ways of string formatting. Mainly from websites similar to this. So I use f-strings a lot in Python, not a big fan of .format(). So I was wondering since...

How to specify which python version poetry should create venv?

I started using poetry recently. I really like straightforward package management, but I cant seem to resolve one thing. Python version it should use. I have python 3.9 and 3.7 on my machine. 3.7...

Can I have more than one connection in databricks-connect?

I have setup on my PC a miniconda python environment where I have installed the databricks-connect package and configured the tool with databricks-connect configure to connect to a databricks...

poetry install different package version based on extras

Using python-poetry, I would like to install different package versions based on the extras that I pass during the installation. E.g. I would like to # when extra == 'a', install numpy == 1.20.0 $...

cv2.error: Unknown C++ exception from OpenCV code

I am not able to run cv2 .read() in python Every time I run a simple code just to see myself from my webcam. It gives a strange error which I am not able to solve and I've almost searched a lot...

How can I get torch-geometric to work using Nix?

I am trying to get the Python package torch-geometric to work using Nix (I am on NixOS). Currently, I use mach-nix to try and setup a Python environment. However, the difficulty is that some of...

pip installed packages not found in virtual environment

I am working with venv in VS code on windows 10, and it kept throwing ModuleNotFoundError, even if I have already tried py -m pip install <package name>. The weirdest part was that pip freeze or...

Getting AttributeError: module 'collections' has no attribute 'MutableMapping' while using any pip3 command on linux Python 3.10.0

Hey I have installed latest python 3.10 and pip3 on my linux(Zorin os lite 15.3 X64) machine but whenever I try to use any pip3 command I get following error For example I use the command: pip3...

Need help to install Kivy

No matter what i try, kivy always fails to install. I can install most other packages but not kivy. I tried it through pycharm, reinstalling python, and trying every command on cmd prompt, it just...

Python does not find the Brownie file

I'm following a tutorial on Solidity and Python (for reference https://www.youtube.com/watch?v=M576WGiDBdQ&t=5447s). I'm at the stage where Python and Brownie have been installed and running...