I am trying to setup lamp server on my Fedora 27. Referring this site, I am following every step, but running this command firewall-cmd --permanent --add-service=http, here are the following errors I get
Traceback (most recent call last):
File "/usr/bin/firewall-cmd", line 31, in <module>
from firewall.client import FirewallClient, FirewallClientIPSetSettings, \
File "/usr/lib/python3.6/site-packages/firewall/client.py", line 29, in <module>
import slip.dbus
File "/usr/lib/python3.6/site-packages/slip/dbus/__init__.py", line 8, in <module>
from . import service
File "/usr/lib/python3.6/site-packages/slip/dbus/service.py", line 30, in <module>
from six import with_metaclass
ModuleNotFoundError: No module named 'six'
I reinstalled six package, but still the same error message.
You probably don't have the six Python module installed. You can find it on
pypi
To install it:
$ easy_install six
If you have pip installed you can run $ pip install 'six'
Related
Hi I have setup my environment for Airflow run. I want to run the DAG whcih connects to Snowflake. I have installed below necessary packages from cloud shell.
pip3 install snowflake-connector-python==2.4.5
pip3 install snowflake-sqlalchemy==1.2.4
pip3 install apache-airflow-providers-snowflake==2.3.0
pip3 install apache-airflow-providers-common-sql
I have established snowflake connection in Airflow.
Now while executing the DAG i am getting this error since long time:
Broken DAG: [/home/airflow/gcs/dags/snowflake_connect_mine.py] Traceback (most recent call last):
File "/home/airflow/gcs/dags/snowflake_connect_mine.py", line 6, in <module>
from airflow.contrib.hooks.snowflake_hook import SnowflakeHook
File "/opt/python3.8/lib/python3.8/site-packages/airflow/contrib/hooks/snowflake_hook.py", line 23, in <module>
from airflow.providers.snowflake.hooks.snowflake import SnowflakeHook # noqa
ModuleNotFoundError: No module named 'airflow.providers.snowflake'
Please help me to resolve this issue.
Regards
Sachin Mittal
9560315720
I tried to launch the Jupyter notebook from Anaconda and I am getting these errors:
Traceback (most recent call last):
File "C:\Users\saiki\anaconda3\Scripts\jupyter-notebook-script.py", line 6, in
from notebook.notebookapp import main
File "C:\Users\saiki\anaconda3\lib\site-packages\notebook\notebookapp.py", line 44, in
from jinja2 import Environment, FileSystemLoader
File "C:\Users\saiki\anaconda3\lib\site-packages\jinja2\__init__.py", line 12, in
from .environment import Environment
File "C:\Users\saiki\anaconda3\lib\site-packages\jinja2\environment.py", line 25, in
from .defaults import BLOCK_END_STRING
File "C:\Users\saiki\anaconda3\lib\site-packages\jinja2\defaults.py", line 3, in
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File "C:\Users\saiki\anaconda3\lib\site-packages\jinja2\filters.py", line 13, in
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (C:\Users\saiki\AppData\Roaming\Python\Python39\site-packages\markupsafe\__init__.py)
It was working properly until I installed pandas-profiling library in my Anaconda Powershell prompt.
How to rectify this?
I found such an issue on github: https://github.com/aws/aws-sam-cli/issues/3661
Downgrading markupsafe to 2.0.1 fixes the issue on my side.
pip install markupsafe==2.0.1
[root#jenkins-dev playbooks]# ansible-galaxy collection install azure.azcollection
ERROR! Unexpected Exception, this is probably a bug: cannot import name 'CollectionRequirement' from 'ansible.galaxy.collection' (/usr/local/lib/python3.7/site-packages/ansible/galaxy/collection/__init__.py)
the full traceback was:
Traceback (most recent call last):
File "/usr/local/bin/ansible-galaxy", line 92, in <module>
mycli = getattr(__import__("ansible.cli.%s" % sub, fromlist=[myclass]), myclass)
File "/usr/local/lib/python3.7/site-packages/ansible/cli/galaxy.py", line 24, in <module>
from ansible.galaxy.collection import (
ImportError: cannot import name 'CollectionRequirement' from 'ansible.galaxy.collection' (/usr/local/lib/python3.7/site-packages/ansible/galaxy/collection/__init__.py)
This exception indicates you have overlapping conflicting installations of ansible-core (or ansible-base) and ansible<2.10.
You will need to clean up your installs to resolve the issue. Potentially via:
$ sudo pip uninstall -y ansible-base ansible-core
And then install again:
$ sudo pip install ansible-base ansible-core
when I am installing a package in python 3.6.5 an error occurs:
"ImportError: cannot import name 'HIDE_CURSOR'"
command: pip install
pip install glob Traceback (most recent call last): File
"c:\python\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec) File "c:\python\lib\runpy.py", line 85, in _run_code
exec(code, run_globals) File "C:\python\Scripts\pip.exe__main__.py", line 5, in File
"c:\python\lib\site-packages\pip_internal__init__.py", line 40, in
from pip._internal.cli.autocompletion import autocomplete File "c:\python\lib\site-packages\pip_internal\cli\autocompletion.py",
line 8, in
from pip._internal.cli.main_parser import create_main_parser File "c:\python\lib\site-packages\pip_internal\cli\main_parser.py",
line 8, in
from pip._internal.cli import cmdoptions File "c:\python\lib\site-packages\pip_internal\cli\cmdoptions.py", line
24, in
from pip._internal.utils.ui import BAR_TYPES File "c:\python\lib\site-packages\pip_internal\utils\ui.py", line 11, in
from pip._vendor.progress import HIDE_CURSOR, SHOW_CURSOR ImportError: cannot import name 'HIDE_CURSOR'
Any help is appreciated.
I simply reinstalled pip by downloading pip from here and reinstalled using cmd python get-pip.pyonce in the directory.
Thats all that seemed to work for me, hope you get it sorted!
I am using the Anaconda environment for python.
I have installed the paramiko (v. 2.0.2) and cryptography (v 1.5) modules using the Anaconda Navigator..
When I try to execute this import statement:
import netmiko
I get an error message "ImportError: No module named cryptography.hazmat.backends"
The total output in the cmd window is:
>>> import netmiko
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build\bdist.win-amd64\egg\netmiko\__init__.py", line 1, in <module>
File "build\bdist.win-amd64\egg\netmiko\ssh_dispatcher.py", line 3, in <module>
File "build\bdist.win-amd64\egg\netmiko\cisco\__init__.py", line 1, in <module>
File "build\bdist.win-amd64\egg\netmiko\cisco\cisco_ios_ssh.py", line 1, in <module>
File "build\bdist.win-amd64\egg\netmiko\ssh_connection.py", line 3, in <module>
File "build\bdist.win-amd64\egg\netmiko\base_connection.py", line 13, in <module>
File "build\bdist.win-amd64\egg\paramiko\__init__.py", line 30, in <module>
File "build\bdist.win-amd64\egg\paramiko\transport.py", line 32, in <module>
ImportError: No module named cryptography.hazmat.backends
Does anyone know how to fix this?
Any help is appreciated.
I guess the right order for the commands would be:
#apt-get update
#apt-get install python-dev
#apt-get install libffi-dev
#pip install cryptography
It solved the issue in my case
You're probably running into a problem because you don't have libffi-dev installed. Installing "python-dev" and "libffi-dev" at the OS layer may help.