Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

默认会安装fabric1.14.0,运行在python3.7下会报错 #1

Open
KarryZhou opened this issue May 31, 2020 · 4 comments
Open

默认会安装fabric1.14.0,运行在python3.7下会报错 #1

KarryZhou opened this issue May 31, 2020 · 4 comments

Comments

@KarryZhou
Copy link

No description provided.

@KarryZhou KarryZhou changed the title 默认会安装 默认会安装fabric1.14.0 May 31, 2020
@KarryZhou KarryZhou changed the title 默认会安装fabric1.14.0 默认会安装fabric1.14.0,运行在python3.7下会报错 May 31, 2020
@KarryZhou
Copy link
Author

KarryZhou commented May 31, 2020

下面是fablinker -f 报错

taceback (most recent call last):
File "/usr/local/bin/fablinker", line 5, in
from fablinker import main
File "/usr/local/lib/python3.7/site-packages/fablinker/init.py", line 4, in
from fablinker.cli import main
File "/usr/local/lib/python3.7/site-packages/fablinker/cli.py", line 6, in
from fablinker.fabshell import FabShell
File "/usr/local/lib/python3.7/site-packages/fablinker/fabshell.py", line 9, in
import fabric.api as fab
File "/usr/local/lib/python3.7/site-packages/fabric/api.py", line 10, in
from fabric.context_managers import (cd, hide, settings, show, path, prefix,
File "/usr/local/lib/python3.7/site-packages/fabric/context_managers.py", line 535
def accept(channel, (src_addr, src_port), (dest_addr, dest_port)):
^
SyntaxError: invalid syntax

@KarryZhou
Copy link
Author

fab date 报错

Traceback (most recent call last):
File "/usr/local/bin/fab", line 5, in
from fabric.main import main
File "/usr/local/lib/python3.7/site-packages/fabric/main.py", line 13, in
from operator import isMappingType
ImportError: cannot import name 'isMappingType' from 'operator' (/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/operator.py)

@KarryZhou
Copy link
Author

KarryZhou commented May 31, 2020

安装了 fabric2.5之后fablinker -f 也会报错,fab 正常

Traceback (most recent call last):
File "/usr/local/bin/fablinker", line 5, in
from fablinker import main
File "/usr/local/lib/python3.7/site-packages/fablinker/init.py", line 4, in
from fablinker.cli import main
File "/usr/local/lib/python3.7/site-packages/fablinker/cli.py", line 6, in
from fablinker.fabshell import FabShell
File "/usr/local/lib/python3.7/site-packages/fablinker/fabshell.py", line 9, in
import fabric.api as fab
ModuleNotFoundError: No module named 'fabric.api'

@jly888
Copy link

jly888 commented Feb 19, 2021

安装Fabric3,可以解决报错问题;pip install Fabric3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants