Missing Console support running bot with pythonw
See original GitHub issueWhen 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:
- Created 6 years ago
- Comments:5
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
Closing due to inactivity. Create another if you need it @Bartekc8888