How to clean up /Library/Python/2.7/site-packages under Mac OS X El Capitan

So I was messing around following all kinds of tutorials telling me to sudo pip install instead of doing it right by using a virtualenv for properly handling what my individual web apps need. The...

Targeting nested nodegroups fails with "Minion did not return. [No response]", despite the hosts responding if targeted via other criteria

I'm having an odd issue with nested nodegroups in that I can't seem to target them. Here's my nodegroups section of my master config file: /etc/salt/master: nodegroups: linuxlabs: '[email protected]^pubbox' ...

Salt request timed out. The master is not responding

We've suddenly started receiving the error: Salt request timed out. The master is not responding. If this error persists after verifying the master is up, worker_threads may need to be...

Cloud execution module - Profile is not defined Salt Stack

I am trying to set up the cloud execution module, and every time I try to bring up a test instance with "salt-cloud -p ec2_east_nano_prod saltcloud_nano_test", I get an error: [DEBUG ]...

salt-minion dropping connection to master

I am new to salt and have setup a master with 2 remote minions. All works perfectly well until after some time the master loses the connections from the minions. I think the TCP connection is...

rsync auth failed when executed by salt

Rsync running normally via salt without password file, but when I added password file today, it didn't work anymore: # salt 10.10.70.202 rsync.rsync rsync://10.10.81.71:9999/test /tmp/test/...

Reconnect minion on a new salt-master causes issues

I'm trying to reconnect minions to my new salt-master. To do that, I changed the sources.list installing the new version of salt-minion (from 2015 to 2017.7.8) Disconnect the minion from the old...

KeyError: 'collectstatic' When deploying the Django application to pythonanywhere

During the implementation of my Django application on pythonanywhere for the first time I encountered such an error. Previous applications with a very similar structure were able to be implemented...

How is the correct syntax/call to get the sls-file working - salt

I'm trying to build a reactor sls file, which starts running when an event occurs. The content of the sls file should be as the following cli commands: sudo salt minion git.add /srv/salt . sudo...

Conda build conflict from requirements generated by environment on that exact pc

I have the following requirements in a requirements.txt file: # This file may be used to create an environment using: # $ conda create --name <env> --file <this file> # platform:...

Salt Error while bringing up minion for multi-master

I'm getting some errors when I start salt minions: Error while bringing up minion for multi-master. Is master at salt-server00001.nix.us.companyworld.company.com responding? 2019-10-16...

Salt ldap.managed 'Tuple_to_LDAPMod' 'expected a tuple' issue

I've got a new salt master on a fresh system and i'm verifying some of my pre-existing states. I've got to the point where i'm now testing Salt's ability to update LDAP, and while it can connect...

“rasa x" returns AttributeError

I have installed rasa x on my computer. rasa shell works well. I can chat within terminal. but when I try to run rasa x I get following error.I am using python 3.6 and tensorflow backend. Starting...

SaltStack : Unable to install a salt dependency library manually

I am trying to install a library pycryptodome on the salt master using pip and post installation version report doesn't show it correctly. However what i notice is the the version of the new...

Python/Anaconda can not locate installed modules in conda environments

I am using anaconda as an environment manager for my code. When i installed anaconda and created the environments everything worked fine. But when i came back the next day and activated the...

failed: Jinja variable 'salt.utils.context.NamespacedDictWrapper object' has no attribute 'env'

Just inherited a salt implementation and I'm running into an error that I just can't seem to figure out. I have 5 minions that are all running perfectly, but when I added the 6th I get the...

AttributeError: module 'tensorflow' has no attribute 'compat' when loading tf.compat.v1.train.SessionRunHook

I can see that this question has been asked before here tensorflow-has-no-attribute-compat but the answer given was to Microsoft Visual C++ 2015-2019 Redistributable (x64) It did not work for the...

Issue with using snowflake-connector-python with Python 3.x

I've spent half a day trying to figure it out on my own but now I've run out of ideas and googling requests. So basically what I want is to connect to our Snowflake database using...

ModuleNotFoundError: No module named 'flake8'

here is the part of the files that are important for this question: . ├── .env ├── tox.ini ├── requirements-dev.txt └── tests/ ├── test_blocking.py └──...

In production (deployed to pythonanywhere.com) - How do I resolve this error while adding user to group in django admin?

Everything work in my local environment but gives error in production. I'm using Django 3.0.4, Postgresql 11.8, Python 3.7 Here's my custom permission in a decorator.py from django.http import...

How to install gitpython with, Failed to initialize: Bad git executable

I am trying to install git-python on Windows. I tried to install it using the git command: pip install gitpython It installed just fine and it install in my local app data. The only problem was...

How to fix a problem that "apt-get install" doesn't work because of python issue

I'm using Ubuntu 16.04.I'd like to install a ROS related package with "apt-get install", but it doesn't work. Terminal said like following. $ sudo apt-get install ros-kinetic-libuvc Reading...

Saltstack module is not available

Trying to run sls but the salt tells me the function is not available My sls. Must create a mongodump file create-dump: module.run: - name: docker.run - m_name: mongo - cmd: 'mongodump...

Error of rasa and rasa X intallation and running the local server

I have installed rasa on Max OSX and this output on the terminal: python3.8 -m pip install rasa Collecting rasa Using cached rasa-2.2.2-py3-none-any.whl (688 kB) Processing...

PIP install rasa-x is not working and pip downgrade too

I have exactly the same problem as mentioned in https://stackoverflow.com/questions/65806524/pip-install-rasa-x-takes-forever. In the Rasa installation guide they say, you have to create an...

Conda - how to update only cudatoolkit in an existing environment?

This is a specific instance of a general problem that I run into when updating packages using conda. I have an environment that is working great on machine A. I want to transfer it to machine...

NameError: name '_mysql' is not defined -- On airflow start in MacOSX

There are numbers of articles on the titled question but none of them worked for me. The detailed error is as follows: Traceback (most recent call last): File...

How to install PyCaret in AWS Glue

How can I properly install PyCaret in AWS Glue? Methods I tried: --additional-python-modules and --python-modules-installer-option Python library path easy_install as described in...

Heroku: Compiled Slug Size is too large Python

I trying to deploy my app to heroku I have following deploying error transformers 4.8.2 requires huggingface-hub==0.0.12, but you'll have huggingface-hub 0.0.14 which is incompatible. ...

Package streamlit app and run executable on windows

this is my first question on Stackoverflow. I hope my question is clear, otherwise let me know and don't hesitate to ask me more details. I'm trying to package a streamlit app for a personal...