Missing conf file for sphinx command

I am running into problem when I am running tox command to generate Sphinx documentation for my Python project. Here is the error: docs runtests: PYTHONHASHSEED='1181019260' docs runtests:...

Tabula-py - ImportError: No module named tabula

I am trying to use Tabula-py to read a pdf. I installed tabula-py through pip install tabula-py I have also installed the required dependencies requests pandas pytest flake8 My code is currently...

py.test deal with both pylint and flake8 when importing features from a module

So, I have roughly this code: from .fixtures import some_fixture def test_whatever(some_fixture): print(some_fixture) I get two warnings from flake8 for this: F401...

Negative result for regression using Keras and Tensorflow

I was following the tutorial by Jason Brownlee, and finished section 2. Where his code apparently gave, as a result, Baseline: 31.64 (26.82) MSE mine gave Results: -59.54 (45.45) MSE I am...

Mocking of celery worker gives authentication error

I am following documentation for the celery testing to test my celery task. I also using PyTest-bdd for BDD testing. My project structure are as below myprj/ ├── __init__.py ├──...

Memory leaks when using pandas_udf and Parquet serialization?

I am currently developing my first whole system using PySpark and I am running into some strange, memory-related issues. In one of the stages, I would like to resemble a Split-Apply-Combine...

flake8 e999 on using fstrings in python2 (with future_fstrings)

I'm using fstrings in python2 after pip install future-fstrings like the following: # -*- coding: future_fstrings -*- class A(object): def __init__(self, **kw): ...

Can't iterate over multiprocessing.managers.DictProxy

Can't iterate over multiprocessing.managers.DictProxy. through pytest-paralell but works fine in python. I found this issue even here https://bugs.python.org/issue9733 but since the managers.py is...

Flake8 config not being applied in git hook

I have a pre-commit git hook that is supposed to hinder the commit if the added lines don't follow the specified style-guide. So in the root folder of my repo I have a .flake8 file that looks...

flake8 not showing fatal erros in vscode

Vscode is not showing fatal erros in vscode. It is only highlighting warnings in the code. Example: I have vscode running flake8 from a virtualenv with python 2.7. The settings is as...

emacs flycheck-mode python3 print statement with file=sys.stderr

I am using emacs on Ubuntu 16.04 and added the configuration for flycheck-mode to include the python3 setup...

vscode doesn't catch flake8 output

I currently work on a project which uses flake8 as a python linter. Previously I was using pylint for all my projects. So I work in Visual Studio Code, I also use black as code formatter. So now...

Error the deployment function in lambda with graphene module

[error when executing the function in aws lambda, while locally there is no error.][1] [1]: https://i.stack.imgur.com/l4XsD.png When executing the code in AWS lambda this error arises, what I want...

Python flake8 py reporting W391 (no newline at end of file) incorrectly

W391 says that there should be one (and only one) blank line at the end of file. However, flake8 reports the error when there is at least one newline at the end of the file: $ cat /tmp/test.py def...

ContextualVersionConflict when importing guesslang package

When importing guesslang package, I've got ContextualVersionConflict error about html5lib package. ContextualVersionConflict: (html5lib 1.0.1...

Githook pre-commit error exit code 1 in GitKraken

I'm trying to use the pre-commit package and the git hooks. If I run pre-commit, or if I commit, from the command line all runs well. But when I try to commit from GitKraken, the following error...

ImportError: cannot import name 'ensure_object'

Using pandas to read excel file and getting the following error. Using ipython notebook and conda environment for it ImportError: cannot import name 'ensure_object'# import numpy as np ...

why are pylint's error squiggle lines not showing in python visual studio code?

i'm using vscode for python3 in Ubuntu. Error-squiggle-lines have stopped working for Python(it works for other languages). And I am using Microsoft's Python extension. vscode v1.41.1 Ubuntu...

Gitlab-CI for Python project with SonarQube

I want to set Gitlab-CI for my python project with SonarQube. I have one problem with that. I set SonarQube variables in settings gitlab-ci. This is my gitlab-ci.yml file: variables: ...

How can I improve the performance of my script?

I have a "seed" GeoDataFrame (GDF)(RED) which contains a 0.5 arc minutes global grid ((1802)(360*2) = 259200). Each cell contains an absolute population estimate. In addition, I have a "leech" GDF...

How can I mock ECS with moto?

I want to create a mock ECS cluster, but it seems not to work properly. Although something is mocked (I don't get a credentials error), it seems not to "save" the cluster. How can I create a mock...

VSCode: Linting not working on Python 2.7

System: Win x64 10.0.18363 VSCode: 1.43.2 Python: 2.7.10 32-bit My linter just stopped working on VSCode around the time I installed flake8. I have no clue what is wrong because the linter is...

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

Pre-commit-hook for Python project

How do I remove print statements in a Python project using pre-commit hook before checking in code to GitHub? Currently, I use black and flake8 pre-commit hooks. But they don't seem to have the...

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

lint usages of functions with @deprecated decorator

Is there a linter that detects usages of functions that are marked as deprecated with the @deprecated decorator from the deprecated package? e.g. in from deprecated import deprecated def...

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

Pytest fail exit code 1, (github actions)

I have a github repository that has a file Test_app.py. I am running a pytest on the file in github actions and keep getting the error message: E botocore.exceptions.NoRegionError: You must...

Python3 Import Error: undefined symbol: aes_hw_encrypt

I am trying to use DialogFlow to make a small talk chatbot on Raspberry Pi 4, and I am getting this error: ImportError:...

tkinter + figma animated GUI

I'm trying to redesign my application. In previous version ('old') I was using pure tkinter with python. In the new version I decided to create modern GUI. For this purpose I'm using Figma to...