olipo186 / Git-Auto-Deploy

Deploy your GitHub, GitLab or Bitbucket projects automatically on Git push events or webhooks using this small HTTP server written in Python. Continuous deployment in it's most simple form.
http://olipo186.github.io/Git-Auto-Deploy/
Other
1.39k stars 216 forks source link

AttributeError: 'module' object has no attribute 'ABC' #253

Open jam-hakimjonov opened 4 years ago

jam-hakimjonov commented 4 years ago

Traceback (most recent call last): File "/usr/local/bin/git-auto-deploy", line 11, in load_entry_point('git-auto-deploy==0.17', 'console_scripts', 'git-auto-deploy')() File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 480, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2693, in load_entry_point return ep.load() File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2324, in load return self.resolve() File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2330, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/usr/local/lib/python2.7/dist-packages/git_auto_deploy-0.17-py2.7.egg/gitautodeploy/init.py", line 3, in from .gitautodeploy import * File "/usr/local/lib/python2.7/dist-packages/git_auto_deploy-0.17-py2.7.egg/gitautodeploy/gitautodeploy.py", line 24, in from .wsserver import WebSocketClientHandlerFactory File "/usr/local/lib/python2.7/dist-packages/git_auto_deploy-0.17-py2.7.egg/gitautodeploy/wsserver.py", line 4, in from autobahn.websocket import WebSocketServerProtocol File "/usr/local/lib/python2.7/dist-packages/autobahn-20.7.1-py2.7.egg/autobahn/websocket/init.py", line 28, in from autobahn.websocket.types import ConnectionRequest, ConnectionResponse, \ File "/usr/local/lib/python2.7/dist-packages/autobahn-20.7.1-py2.7.egg/autobahn/websocket/types.py", line 27, in from autobahn.util import public File "/usr/local/lib/python2.7/dist-packages/autobahn-20.7.1-py2.7.egg/autobahn/util.py", line 41, in import txaio File "/usr/local/lib/python2.7/dist-packages/txaio-20.4.1-py2.7.egg/txaio/init.py", line 29, in from txaio.interfaces import IFailedFuture, ILogger File "/usr/local/lib/python2.7/dist-packages/txaio-20.4.1-py2.7.egg/txaio/interfaces.py", line 41, in class IBatchedTimer(abc.ABC): AttributeError: 'module' object has no attribute 'ABC'

jam-hakimjonov commented 4 years ago

Solved: removed dist-packages folders: /usr/local/lib/python2.7/dist-packages/txaio-20.4.1-py2.7.egg/ /usr/local/lib/python2.7/dist-packages/autobahn-20.7.1-py2.7.egg/ /usr/local/lib/python2.7/dist-packages/git_auto_deploy-0.17-py2.7.egg/

Hint: It occurs if you try to install it via setup.py install