Heroku push fails repeatedly, appears to fail on installing Bonjour

I'm attempting to follow Heroku's python quickstart guide but am running into repeated problems. At the moment, "git push heroku master" is failing because it cannot install Bonjour. Does anyone...

pytest-xdist IOError: cannot send to <Channel id=1 closed>

I'm using pytest with pytest-xdist to test django app,when i run py.test -n 1 i get an error: Test session starts (platform: linux2, Python 2.7.12, pytest 2.9.2, pytest-sugar 0.7.1) django...

robotframework dictionary variables click through

could someone help me with this please. find attached dictionary.png Questions: Why Intellij says that No Usage found in Project Files for dictionaries? when I try to click through. does anyone...

pytest-cov not working with tox

This is my tox.ini configuration [tox] envlist = py36 [testenv] commands = pytest -vv --pep8 --flakes \ --cov=quest --cov-report \ term-missing --profile {posargs} deps =...

Mock library before import in module

I have python files as $ tree . . ├── app │   ├── __init__.py │   └── my_module.py ├── setup.py ├── test_my_module.py └── tox.ini 1 directory, 5...

Virtualenv not isolated

I am using pyenv and pyenv-virtualenv. I create a brand new environment: » type python python is ~/.pyenv/shims/python » python --version Python 2.7.12 » pyenv --version pyenv...

pytest KeyError: 'USER' within docker container

I am in the process of building a docker container that will run my automation tests. When I attempt to run the command below [this works locally and in jenkins] I get the following...

Issues with https and Service Fabric

While trying to implement https on our ServiceFabric backend, following this guide, I found my local cluster throwing following error: There was an error during CodePackage activation.The service...

Why do Python plots look so different on different remote machine?

I have a python script that produces a plot, and I run it on a remote machine. The panels and font in the plot are perfectly proportioned, and look as I want them to. I have recently run the...

Could not install packages due to an EnvironmentError: [Errno 13] Pip install Pytest

I am having issues when trying to set up pytest. When I run: pip install pytest pytest-cache I receive this error message: Could not install packages due to an EnvironmentError: [Errno 13]...

Unable to run pytest setup through pycharm

Running pytest through CLI with pytest-xdist runs fine (pytest -n 3 {test}). When running the same set up in PyCharm I get Context version conflict, stating that I need to lower my pytest version....

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

Getting an error when writing a test for celery task

I wrote the following bare minimum unit test class for celery import pytest @pytest.fixture def celery_config(): return { "broker_url": "redis://localhost:6379/0", ...

Python click project, "Django is not available on the PYTHONPATH " error

I am having a click project which don't use/need Django anywhere but while running prospector as part of static analysis throws this strange error *Command* prospector -I __init__.py --strictness...

pytest-cov not generate report with new coverage version 5.X, works with coverage version 4.4.2

I have project which tox.ini as below [tox] envlist = unittest,functional,lint skipsdist = True sitepackages = False [testenv] setenv = TESTING = True deps= -rrequirements.txt ...

conda update InvalidSpecError

I am trying to update a conda environment: conda update --all but get the following Fetching package metadata ............. InvalidSpecError: Invalid spec: =20190808 output of conda list is as...

Msys2 with python 3.8: ImportError: cannot import name 'open_code' from 'io'

NOTE: There have been several EDITs to the question, as per comments. They are indicated below, and separated by lines. As of now, the only remaining issue seems to be that numpy cannot load,...

Msys2: Maintaining two python installations

I am using Msys2 portable under Win 10. I have 2 python 3.8 installations. The original question asked if that is so. I am now certain it is, so for the time being I want to deal with their...

Error loading Python lib pyinstaller (detailed description of different attempts taken)

Error loading Python lib The name of my python script is kled.py This is the message I used to create it: pyinstaller kled.py --windowed Here is the error message I get when I execute the terminal...

mognoengine and bson package not work together

I have one project which is depend on mongoengine and I am using one library which was using bson library. It structure like below. bsNotify/ ├── setup.cfg ├── setup.py └── src ...

Import Error while running pytest in virtualenv

I am trying to run my pytest (bdd) test cases in virtualenv. I have created a requirements.txt (using pip freeze) file in the root folder as...

Azur DevOps throws ValueError: Could not get version for Chrome with this command: reg query

Agent pool : Windows Installed Chrome Version : 85.0.1483.102 When i run the Pytests, it throws "ValueError: Could not get version for Chrome with this command: reg query...

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

BROWNIE - installation issue

I am trying to install Brownie and get the following error " PS C:\Python39> pip install eth-brownie Collecting eth-brownie Using cached eth_brownie-1.14.6-py3-none-any.whl (207 kB) ...