question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WinError87 when executing local on Connection

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:26 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
davidjmemmettcommented, Feb 22, 2021

I do apologise, you’re using Python 3.8.5; I’ll grab that and test!

1reaction
KantiCodescommented, Feb 19, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

EnvironmentError: [WinError 87] The parameter is incorrect
from a Windows 10 command prompt that was being run as administrator. I got the following error: Collecting tensorflow Using cached https:// ...
Read more >
Getting error with pytest OSError: [WinError 87] The parameter ...
Looks like this is due to a pytest/Python bug: https://github.com/pytest-dev/pytest/issues/5724 · https://bugs.python.org/issue37549.
Read more >
Bug report #20281: QGIS 3.4: Python error when running "r ...
I have tried the function in Windows 10 64bit. On the same systems, QGIS 2.18 provided the outputs fine. ... Executing <C:\Users\...\AppData\Local\Temp\ ...
Read more >
Failing to start a worker - The parameter is incorrect
When I run the server using: celery -A tasks worker -l info ... CRITICAL/MainProcess] Unrecoverable error: AttributeError("Can't pickle local object 'Pool.
Read more >
Issue 36213: subprocess.check_output() fails with OSError
... fails on Windows with OSError: [WinError 87] when the current ... \AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 423, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found