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.

Missing Console support running bot with pythonw

See original GitHub issue

When I started bot with pythonw.exe it stopped working and it logged empty error to botlog.json adding this code after argument handling fixed it for me:

if sys.platform.find('win') != -1 and sys.executable.find('pythonw') != -1:

    blackhole = file(os.devnull, 'w')

    sys.stdout = sys.stderr = blackhole

Also please add to the comment for gapbottom in default config that it takes percentage of my coins, someone might confuse it with the percentage of coins offered by other peoples or something.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
rnevetcommented, Apr 10, 2017

I think this can be handled without code change by supplying output in the command.

pythonw.exe lendingbot.py 1>stdout.txt 2>stderr.txt

I would prefer not to include platform/env specific code.

0reactions
laxdogcommented, Aug 4, 2017

Closing due to inactivity. Create another if you need it @Bartekc8888

Read more comments on GitHub >

github_iconTop Results From Across the Web

OAuth'ing a bot while it's running leads to no console output ...
Here's a simple bot that I started writing: import asyncio import discord class IconScraperBot(discord.Client): def __init__(self): super().
Read more >
Console Process Stopped! : Forums - PythonAnywhere
Hi everyone! I have acustom account on pythonanywhere, and an app that is running from console - a telegram bot with long-polling.
Read more >
Discord bot is running but not responding to commands after ...
The bot seems to be running in the console, but in reality it isn't running because it isn't responding to my commands.
Read more >
How to Make a Discord Bot in Python - Real Python
In this step-by-step tutorial, you'll learn how to make a Discord bot in Python and interact with several APIs. You'll learn how to...
Read more >
Debugging configurations for Python apps in Visual Studio Code
The Python extension supports debugging of several types of Python ... F5 or Run > Start Debugging when no configuration exists will also...
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