fabric: WinError87 when executing local on Connection
Hi all, I`m new to Invoke and even newer to Fabric!
I have some functionality in Invoke and now I`m trying to make a similar demo using fabric
Following code results in WinError87
[WinError 87] Parameter is incorrect
I know it’s probably caused by me misunderstanding something - but I`d really appreciate a hint 😃
Setup:
Python 3.8.5 Fabric 2.6.0
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 26 (15 by maintainers)
Commits related to this issue
- Removing global-scope configuration for replacing environment variables, replacing with specific override to clear environment only for remote. Issue: fabric/fabric#2142 See also: 4358f344e5d6b59dc99... — committed to davidjmemmett/fabric by davidjmemmett 3 years ago
- Removing global-scope configuration for replacing environment variables, replacing with specific override to clear environment only for remote. Issue: fabric/fabric#2142 See also: 4358f344e5d6b59dc99... — committed to davidjmemmett/fabric by davidjmemmett 3 years ago
- Removing global-scope configuration for replacing environment variables, replacing with specific override to clear environment only for remote. Issue: fabric/fabric#2142 See also: 4358f344e5d6b59dc99... — committed to davidjmemmett/fabric by davidjmemmett 3 years ago
- Removing global-scope configuration for replacing environment variables, replacing with specific override to clear environment only for remote. Issue: fabric/fabric#2142 See also: 4358f344e5d6b59dc99... — committed to davidjmemmett/fabric by davidjmemmett 3 years ago
- Removing global-scope configuration for replacing environment variables, replacing with specific override to clear environment only for remote. Issue: fabric/fabric#2142 See also: 4358f344e5d6b59dc99... — committed to fabric/fabric by davidjmemmett 3 years ago
- Removing global-scope configuration for replacing environment variables, replacing with specific override to clear environment only for remote. Issue: fabric/fabric#2142 See also: 4358f344e5d6b59dc99... — committed to davidjmemmett/fabric by davidjmemmett 3 years ago
I do apologise, you’re using Python 3.8.5; I’ll grab that and test!
Hi @davidjmemmett
Thanks so much for taking time to look at my problem 😃
No, I do not have an SSH running - my understanding was that until I only run c.local() the connection is not established and it’s just as if I was using invoke.
Sorry about that.
To add a little background to what I want to do.
I created invoke module and wrapped it into my own pip installing library: http://docs.pyinvoke.org/en/stable/concepts/library.html#reusing-invoke-s-cli-module-as-a-distinct-binary
Here is a simplified example:
tasker/main.py
tasker/tasks.py
I can install and access my wrapped “module”
Now my goal:
As far as I understand @bitprophet designed fabric to be Invoke+, therefore I would like to keep my Invoke solution and add being able to connect over SSH to web servers.
To wrap up: I want to create a fabric module performing tasks both locally and externally(over ssh) and wrap that into a pip package that I can install 😄…
I am all new to this topic - let me know if my intentions are clear