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 image

image [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

Most upvoted comments

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 image

tasker/tasks.py image

I can install and access my wrapped “module”

image

Now my goal:

  • For some of the tasks I need to communicate with web server, therefore I would like to use Fabric and keep my current(Invoke’s) functionality and add new tasks that.

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