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.

[BUG] stderr duplication failed

See original GitHub issue

setuptools version

setuptools==56.0.0

Python version

Python 3.9

OS

Windows

Additional environment information

No response

Description

I use gui_scripts with a blank function. If i use pip install -e . or py setup.py install nothing happens, as expected. If i do pip install . or use setup.py to make a binary dist then install it, i get stderr duplication failed in a prompt. This happens before any code gets run.

Expected behavior

Nothing

How to Reproduce

# setup.py
from setuptools import setup

setup(
    name="test",
    packages=["test"],
    entry_points={
        "gui_scripts": [
            "test-script=test:main"
        ]
    }
)
# test/__init__.py
def main():
    pass

Run above commands

Output

image

Code of Conduct

  • I agree to follow the PSF Code of Conduct

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:133 (57 by maintainers)

github_iconTop GitHub Comments

2reactions
vsajipcommented, May 11, 2022

Just waiting for a response from @rayzchen (and anyone else) and then I should be able to cut a release soon after that.

2reactions
vsajipcommented, May 10, 2022

Thanks @cbrnr and @carlkl for redoing the tests. Looking promising 🤞

Read more comments on GitHub >

github_iconTop Results From Across the Web

duplication of messages in stderr and stdout python logging
My question is how to make the message not repeat itself ? I want ERROR on strerr and INFO on stdout. python ·...
Read more >
Issue 13582: IDLE and pythonw.exe stderr problem
Running IDLE using python.exe will display a traceback in the console, but IDLE keeps running. However, IDLE won't even bring up a window...
Read more >
1204488 – report rpm errors to stderr and log file
Running transaction Failed to obtain the transaction lock (logged in as: root). Error: Could not run transaction. If not 'root', what the heck...
Read more >
36437: problem with STDERR and STDOUT redirection
This throws our error-reporting out big-time as not only is the first line interrupted by this block of stderr, the block of stderr...
Read more >
Troubleshooting AWS IoT Greengrass V2
This error typically occurs if your device doesn't have sufficient memory to allocate an object in the Java heap. On devices with limited...
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