-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fabric #4
Comments
I believe this is actually an issue with the syntax used for importing. The code just needs to be updated to use a local import. If I try to import and use this tsheets module, I get an error like:
File "site-packages/tsheets/init.py", line 1, in I believe this is because tsheets/init.py should be using a different import syntax.
Without the local import specification, python was attempting to import the separate python package 'repos'[1]. This import call inside 'repos' would then attempt to import the 'fabric' package. Neither 'fabric' nor 'repos' seem to be needed to run this tsheets python module. My patch in #6 should fix this. |
The fix is merged to master. Thanks once again Dave! |
Which version of fabric does this require? I've have the latest 1.x branch installed:
Name: Fabric
Version: 1.13.1
Getting an exception when trying to use this api.
File "/srv/tsheets/lib/python3.6/site-packages/fabric/context_managers.py", line 535
def accept(channel, (src_addr, src_port), (dest_addr, dest_port)):
^
SyntaxError: invalid syntax
The text was updated successfully, but these errors were encountered: