Open AmitTeli opened 6 years ago
I noticed the same issue. In order to fix it, you have to downgrade fabric from 2.0.0 to 1.13.1:
pip install fabric==1.13.1
Thank you for the reply. However with this downgraded fabric, now I am getting following
Traceback (most recent call last):
File "/usr/local/bin/cassandra-snapshotter", line 7, in <module>
from cassandra_snapshotter.main import main
File "/usr/local/lib/python3.5/dist-packages/cassandra_snapshotter/main.py", line 5, in <module>
from fabric.api import env
File "/usr/local/lib/python3.5/dist-packages/fabric/api.py", line 10, in <module>
from fabric.context_managers import (cd, hide, settings, show, path, prefix,
File "/usr/local/lib/python3.5/dist-packages/fabric/context_managers.py", line 535
def accept(channel, (src_addr, src_port), (dest_addr, dest_port)):
^
looks like a Python 3 support issue, I suggest going with py2.7
Thanks a ton to @tbarbugli and @artursmolarek ! Python 2.7 and Fabric 1.13.1 works. my final docker file
FROM python:2.7
RUN apt-get update
RUN apt-get -y install lzop
RUN apt-get -y install awscli
RUN pip install fabric==1.13.1
RUN pip install cassandra_snapshotter
CMD /bin/bash
works fine. Thanks again!
glad to hear that!
@tbarbugli It looks like you fixed this in 1.0.1
(thank you)
I was wondering when I might expect a release for this patch version to be pushed to PyPi
?
artursmolarek's answer also fixed the issue on my macos
python 2 is deprecated. Is their any way this can work on python 3
This is my docker file.
When I run cassandra-snapshotter I get following error
Appreciate the help! Amit