Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot not starting on windows 10 #2

Closed
Repressoh opened this issue Mar 26, 2022 · 14 comments
Closed

Bot not starting on windows 10 #2

Repressoh opened this issue Mar 26, 2022 · 14 comments
Labels
bug Something isn't working can’t reproduce

Comments

@Repressoh
Copy link

Repressoh commented Mar 26, 2022

I am trying to start the bot, the .py script works fine but when i select run from the menu ( after inserting the bot token ) it crash.
I have python 3.7.9 from microsoft store on Windows 10 build 19044.1586.

✔️ What do you want to do? arrow keys to move and enter to select Run
Traceback (most recent call last):
File ".\main.py", line 170, in
menu()
File ".\main.py", line 145, in menu
amark=emoji.emojize(":check_mark: "),
File "C:\Users\casealby\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\InquirerPy\base\simple.py", line 330, in execute
result = self._run()
File "C:\Users\casealby\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\InquirerPy\base\complex.py", line 205, in _run
return self.application.run()
File "C:\Users\casealby\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\prompt_toolkit\application\application.py", line 938, in run
self.run_async(pre_run=pre_run, set_exception_handler=set_exception_handler)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 562, in run_until_complete
self._check_closed()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 479, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
sys:1: RuntimeWarning: coroutine 'Application.run_async' was never awaited
PS C:\Users\casealby\Downloads\BotCreator-master>

@StarNumber12046
Copy link
Member

I tested with python 3.7.9 and 3.9 and I can't reproduce, do you use releases or source code build?

@StarNumber12046 StarNumber12046 added bug Something isn't working can’t reproduce labels Mar 26, 2022
@Repressoh
Copy link
Author

Source code, beacause release don't start

@StarNumber12046
Copy link
Member

could you try another python version?

@StarNumber12046 StarNumber12046 pinned this issue Mar 28, 2022
@StarNumber12046
Copy link
Member

I can't reproduce the bug.

@Repressoh
Copy link
Author

I try today on a fresh install of windows. But I think that the fault is of Powershell on the paste of the token. I will update you today or tomorrow

@andrew64dev
Copy link

same error

@andrew64dev
Copy link

Traceback (most recent call last):
File "C:\Users\name\BotCreator\main.py", line 170, in
menu()
File "C:\Users\name\BotCreator\main.py", line 141, in menu
choice = inquirer.select(
TypeError: ListPrompt.init() got an unexpected keyword argument 'amark'

@StarNumber12046
Copy link
Member

Try removing amark="..."

@andrew64dev
Copy link

ok now works

@andrew64dev
Copy link

same error, async never awaited

@StarNumber12046
Copy link
Member

Remove emoji=... and all references

@Repressoh
Copy link
Author

sorry for the long wait. I retryed today and this is the error i get

✔️ What do you want to do? arrow keys to move and enter to select Run
Traceback (most recent call last):
File "C:\Users\Casea\OneDrive\Desktop\BotCreator-master\main.py", line 170, in
menu()
File "C:\Users\Casea\OneDrive\Desktop\BotCreator-master\main.py", line 146, in menu
).execute()
File "C:\Users\Casea\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\InquirerPy\base\simple.py", line 330, in execute
result = self._run()
File "C:\Users\Casea\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\InquirerPy\base\complex.py", line 205, in _run
return self.application.run()
File "C:\Users\Casea\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\prompt_toolkit\application\application.py", line 936, in run
return loop.run_until_complete(
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 621, in run_until_complete
self._check_closed()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 515, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001DE1EE50550>
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 116, in del
self.close()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 750, in call_soon
self._check_closed()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 515, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
sys:1: RuntimeWarning: coroutine 'Application.run_async' was never awaited
Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001DE1EE50550>
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 116, in del
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 108, in close
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 750, in call_soon
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 515, in _check_closed
RuntimeError: Event loop is closed
PS C:\Users\Casea\OneDrive\Desktop\BotCreator-master>

python 3.10.4 from microsoft store on Latest windows 11 Dev insider build and Windows Terminal

@StarNumber12046
Copy link
Member

hm, I'm gonna fix this

@StarNumber12046
Copy link
Member

Seems a dependency issue

@Repressoh Repressoh closed this as not planned Won't fix, can't repro, duplicate, stale Jul 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working can’t reproduce
Projects
None yet
Development

No branches or pull requests

3 participants