VS Code Python paste and indent

I saw other VS Code questions here, so I decided to ask one myself, as their GitHub issues are no so frequently visited. So basically I have one issue with copying and pasting python code in VS...

How can I configure Python linter for the lsp layer of SpaceVim?

The lsp layer in SpaceVim is great! However, there is a slight issue with the Python liner in the lsp layer. it reports the following warings on my formattting which is done using yapf using the...

Syntax highlighting not working for Python in VS Code with type annotations after reformatting

I'm trying to get Visual Studio Code to format (the colours not the layout) Python code with type annotations (hinting). It's failing to do so for the following code: from typing import...

Why does VS-Code Autopep8 format 2 white lines?

print("Hello") def world(): print("Hello") world() Gets corrected to: print("Hello") def world(): print("Hello") world() I have tried to: Reinstall Virtual Studio...

How to use yapf (or black) in VSCode

I installed yapf using: conda install yapf and add next lines in my .vscode/settings.json file: { //"python.linting.pylintEnabled": true, //"python.linting.pycodestyleEnabled": false, ...

error H13 on heroku on an dash application

import requests from bs4 import BeautifulSoup import pandas as pd import dash import dash_core_components as dcc import dash_html_components as html import...

How to stop autopep8 not installed messages in Code

I'm a new Python programmer using the Mac version of VS Code 1.45.1 to create a Django project. I have the Python and Django extensions installed. Every time I save a Django file, Code pops up...

Getting "Extension 'Python Language Basics' cannot format ~'/'" even after configuring Black as formatter

I am trying to set up a formatter for VS Code. I would like to use Black, but I am struggling to get it to work. When I try to use the Format Document command, I get an error that says "Python...

How to get the same Python code formatting with PyCharm and Vim?

We have a 3 years old Django codebase in production. All the code has been written by a single developer using PyCharm. Now, a second developer is joining the team. He used to work with Vim. We...

How can I correctly include a path dependency in pyproject.toml?

I have 2 projects structured as below: /abc-lib / abc / __init__.py / main.py / pyproject.toml /abc-web-api / src / __init__.py / main.py / pyproject.toml I attempted to...

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...

Installing cartopy from pip exits with various errors on Linux Ubuntu 18.04

The shell command pip install cartopy led to several errors. At first, the following error occurred: ERROR: Command errored out with exit status 1: command:...

Visual Studio Code is not recogonizing an Autopep8 installation

I use Visual Studio Code for developing in Django. I did all of the following inside a virtual environment. Whenever I save the Python (.py) files, an alert pops up at the bottom right of the...

python3 pip installation of QMK failing

I am currently attempting to set up QMK on my laptop on MSYS2, following their documentation's instructions. When I enter the command python3 -m pip install qmk, I received an error that was...

Jupyter Notebook not importing Geopandas

I try to import Geopandas on my Jupyter Notebook but it says that there is no module named geopandas. However, when I run !pip list it appears in the list so it must be installed in the...

Conda create environment with .yml file fails

I want to create an exact copy of my current environment in conda. So I am exporting my environment as a env_dashboard.yml file: (C:\Program Files\Anaconda3) C:\Users\TO3THY0>conda-env export -n...

Anaconda, unable to install last version of asammdf

I installed recently Anaconda and need to use asammdf. Standard was 5.8.0 installed, I need 5.21.0. Running the installer from https://anaconda.org/conda-forge/asammdf did not update the...

Extra indent space in tuple

I have the following line of python (2.7) code. audit_row_groups = [(key, list(group), ) for key, group in itertools.groupby(audit_rows, lambda row: (row['date'], row['table_name'],...

Why do I get O365 module not found error?

I wanted to get Outlook calendar data but the module is not recognized, constantly giving the following error: ModuleNotFoundError: No module named 'O365' Right from the first line (from O365...

Importing the numpy C-extensions failed for embedded Python code

I seem to have a problem importing numpy only when trying to run my C++ code with embedded Python. The following code is just a dummy code that captures the problem. Python: from __future__ import...

fatal error: cuda_runtime_api.h: No such file or directory when trying to use cuda in docker

I am trying to build a docker image for a python script that I would like to deploy. This is the first time I am using docker so I'm probably doing something wrong but I have no clue what. My...

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

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...

Stable Baselines: DQN Not performing properly?

I have problem in using DQN for a diagonal line and sin wave as price fluctuation. When the price goes up, there will be a reward and it is colored as green in the chart. When the price goes down...

I have a ModuleNotFoundError: No module named 'Crypto'

Please need help When I try to run myfile.py it says, ModuleNotFoundError: No module named 'Crypto' ,but I already have the path for 'conda' and 'anaconda3' in my environment variables, I also...

It seems that scikit-learn has not been built correctly

I have been using Jupyter Notebook for my machine learning project. Before scikit-learn was working fine but eventually I installed pip install imblearn and pip install -U imbalanced-learn after...

Trouble installing turbodbc

I am attempting to install turbodbc on my Ubuntu 20.10 machine. My specs are as follows: pip 20.2.4, Python 3.8.5 , gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0 I have attempted the solutions provided in...

Can't install spyder

I'm trying to install Spyder from pip install which I have done several times previously. However, I can't seem to install it anymore. I get the following message when I try to install it. EDIT:...

Invalid requirement

I converted the requirements of my project into a txt file with the method below. pip freeze > requirements.txt And I tried to load the generated txt file with the code below to test it, but I...

Updating packages in conda

I have a problem with updating packages in conda. The list of my installed packages is: # # Name Version Build Channel _anaconda_depends 2020.07 ...

This version of ChromeDriver only supports Chrome version 87 Current browser version is 90.0.4430.93

ChromeDriver is giving an error about its version being too low: This version of ChromeDriver only supports Chrome version 87 Current browser version is 90.0.4430.93. I've updated pip's packages...