ImportError: cannot import name 'local' from 'rasax.community' [Rasa] - importerror

Whenever I call rasa x, I get this error:
ImportError: cannot import name 'local' from 'rasax.community'
Version information:
Rasa Version : 3.2.8
Minimum Compatible Version: 3.0.0
Rasa SDK Version : 3.2.1
Python Version : 3.8.13
Operating System : Windows-10-10.0.19043-SP0

Related

Local pyenv python version ignored

I want to use Notebook with a previous python version as Pytorch works with 3.8
I have installed 2 python version :
$ pyenv versions
* 3.8.10 (set by C:\Users\Guillaume\Documents\Python\Pegasus Tutorial\.python-version)
3.9.6
I have set 3.8.10 local to my notebook folder as I want to run it with older python version.
Though my notebook cell returns this :
!python --version
Python 3.9.5
When I run python --version inside the folder it returns 3.10.5 and not 3.8.10 as expected

ModuleNotFoundError: No module named 'kubernetes'

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'kubernetes'
failed: [ubuntu] (item={'name': 'deploymentnginx.yaml.j2'}) => {"ansible_loop_var": "item", "changed": false, "error": "No module named 'kubernetes'", "item": {"name": "deploymentnginx.yaml.j2"}, "msg": "Failed to import the required Python library (openshift) on ubuntu's Python /usr/bin/python3. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}
Kubernetes is installed but still getting error
(molecule-venv) root#picklock1:~/molecule-blog/mywebapp# pip list -o
Package Version Latest Type
---------- ------- ------- -----
ansible 2.9.0 4.9.0 sdist
Cerberus 1.3.2 1.3.4 sdist
kubernetes 12.0.0 19.15.0 wheel
pip 20.0.2 21.3.1 wheel
PyYAML 5.4.1 6.0 wheel
setuptools 44.0.0 59.4.0 wheel
In my case I had interpreter_python = auto_silent (default) in ansible.cfg which was trying the /usr/bin/python (OS-wide) where I did not have the kubernetes module installed as I am using venv (python's virtual environment) to keep the OS uncluttered.
The solution was setting it to "python" (the full-path works too) in the ansible.cfg:
interpreter_python = python

PyAudio import error : ImportError: DLL load failed: The specified module could not be found

I encountered an import problem by PyAudio.
I have a winodws 10, 64 bit, and use Anaconda and Spyder IDE with python 3.7.
I installed PyAudio in Ananconda, ran as administrator, with these commands :
cd
conda install -c conda-forge PyAudio
The installation ran without any problems.
I then restarted both Anaconda and SPYDER. PyAudio now shows up in Anaconda's list of installed packages.
When I try to import Pyaudio in Spyder (IPython console), I encounter this error message :
[1]: import pyaudio
Could not import the PyAudio C module '_portaudio'.
Traceback (most recent call last):
File "", line 1, in
import pyaudio
File "C:\ProgramData\Anaconda3\lib\site-packages\pyaudio.py", line 116, in
import _portaudio as pa
ImportError: DLL load failed: The specified module could not be found.
I tried to fix it by answers to similar ImportError message issued, while other users tried to import other packages like SKlearn ... , but with no success.
Your problem (and mine) are the same. The issue is, unfortunately, the version of python you're running (in tandem with your OS).
Check out this link:
https://people.csail.mit.edu/hubert/pyaudio/#:~:text=Note%3A%20As%20of%20this%20update,4.
Under the INSTALLATION section in the link for WINDOWS, PyAudio's latest version (0.2.11) is compatible with Python versions: 2.7, 3.4, 3.5, 3.6.
My current python is 3.8.5, so you (and I) could never use PyAudio unless they added compatibilities or we revert to an above python version.
I tried to install portaudio using
conda install portaudio
but it seems like it didn't work as it should be. However,
conda install -c anaconda portaudio
solved the problem.
see the official anaconda page

jupyter ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython'

I recently upgraded jupyter, but now I get
ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython'
when I run for instance jupyter-notebook or jupyter notebook
and pip install --upgrade pyzmq did not solve the issue
any idea?
Thanks
ps: I am on Mac OS 10.15.5 , with jupyter --v:
jupyter core : 4.6.3
jupyter-notebook : 6.0.3
qtconsole : 4.5.5
ipython : 8.0.0.dev
ipykernel : not installed
jupyter client : not installed
jupyter lab : 1.2.3
nbconvert : 5.6.1
ipywidgets : not installed
nbformat : 5.0.4
traitlets : 4.3.3
I had the same issue and below fixed my problem:
pip uninstall pyzmq
pip install pyzmq
This actually worked. If you are launching jupyter-notebook from a venv and you get this error message, just pip unistall pyzmg and pip install pyzmg. You should be fine.

How_to_solve_python_version_problem_networkx?

Type:
if you having problem with networkx library in python, you should follow the below step by step :
1-)python --version
2-)if the version is 3.7, you need to downgrade version
3-)conda install python=3.6