"No idea what *something* is!" after running fabric2
See original GitHub issueI am new to fabric and having trouble getting it to work. I installed it via pip3 first when I tried to run it I was getting Command ‘fab’ not found, I eventually found it in /home/me/.local/bin/fab2.
Is this the correct place?
Second whenever I run it like so
/home/me/.local/bin/fab2 version
I get
(2, 3, 1)
2.3.1
No idea what 'version' is!
import fabric
if hasattr(fabric, '__version__'):
# For fabric2
print(fabric.__version_info__)
print(fabric.__version__) # for a version tuple
else:
# for fabric1
from fabric.api import *
print(env.version)
Is /home/me/.local/bin/fab2 the correct location? What is ‘No idea what ‘version’ is!’ why does it show up?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:18
Top Results From Across the Web
New to python fabric and not able to run basic code
I have a basic code which doesn't run: def hello(): print ...
Read more >fab options and arguments - Fabric documentation
In its most simple form, fab may be called with no options at all, and with one or ... where everything after the...
Read more >Fabric - Read the Docs
err = "No idea how to get disk space on {}! ... menting a new command-runner method recently added to Invoke; this prevents...
Read more >Re: [Fab-user] Not having much luck with your initial examples.
I have seen that error before too. It means I am trying to execute Fabric <2 code with Fabric 2+ library. I can...
Read more >How Big Is A Yard Of Fabric? (+Yardage Conversion Chart)
But that didn't help because I had no idea about inches, either! ... When you buy fabric in yards, they don't measure the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ajmcateer, I had this problem as well. The issue is that thew new fabric task method (as discussed here - http://docs.fabfile.org/en/1.14/usage/tasks.html) is to use the @task decorator. The equivalent "Hello World’ example is:
Running ‘fab hello’ yields the expected output.
If your issue is that you receive this error for a task argument, it may be that you are not passing the argument in its correct format, but as how you have your task named.
not
I realize this isn’t spot on the issue, but since I ended up here, I’ll leave this for anybody else who has my same issue.