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

Python 3.6: AttributeError: module 'asyncio' has no attribute 'run' #4819

Closed
abelouso opened this issue Jan 1, 2024 · 0 comments
Closed
Milestone

Comments

@abelouso
Copy link

abelouso commented Jan 1, 2024

%23 Description of problem
Leave a comment...

BEFORE SUBMITTING, PLEASE SEARCH FOR DUPLICATES IN

%23 Configuration

VSCode: 1.85.1
PIO IDE: v3.3.2
System: Linux, 5.4.0-136-generic, x64

%23 Exception

Error: AttributeError: Traceback (most recent call last):
File "/home/abelouso/.platformio/penv/lib/python3.6/site-packages/platformio/__main__.py", line 103, in main
  cli()  %23 pylint: disable=no-value-for-parameter
File "/home/abelouso/.platformio/penv/lib/python3.6/site-packages/click/core.py", line 1128, in __call__
  return self.main(*args, **kwargs)
File "/home/abelouso/.platformio/penv/lib/python3.6/site-packages/click/core.py", line 1053, in main
  rv = self.invoke(ctx)
File "/home/abelouso/.platformio/penv/lib/python3.6/site-packages/platformio/cli.py", line 85, in invoke
  return super().invoke(ctx)
File "/home/abelouso/.platformio/penv/lib/python3.6/site-packages/click/core.py", line 1659, in invoke
  return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/abelouso/.platformio/penv/lib/python3.6/site-packages/click/core.py", line 1395, in invoke
  return ctx.invoke(self.callback, **ctx.params)
File "/home/abelouso/.platformio/penv/lib/python3.6/site-packages/click/core.py", line 754, in invoke
  return __callback(*args, **kwargs)
File "/home/abelouso/.platformio/penv/lib/python3.6/site-packages/platformio/home/cli.py", line 97, in cli
  home_url=home_url,
File "/home/abelouso/.platformio/penv/lib/python3.6/site-packages/platformio/home/run.py", line 102, in run_server
  log_level="warning",
File "/home/abelouso/.platformio/penv/lib/python3.6/site-packages/uvicorn/main.py", line 461, in run
  server.run()
File "/home/abelouso/.platformio/penv/lib/python3.6/site-packages/uvicorn/server.py", line 67, in run
  return asyncio.run(self.serve(sockets=sockets))
AttributeError: module 'asyncio' has no attribute 'run'

============================================================

An unexpected error occurred. Further steps:

* Verify that you have the latest version of PlatformIO using
`python -m pip install -U platformio` command

* Try to find answer in FAQ Troubleshooting section
https://docs.platformio.org/page/faq/index.html

* Report this problem to the developers
https://github.com/platformio/platformio-core/issues

============================================================


  at /home/abelouso/.vscode/extensions/platformio.platformio-ide-3.3.2-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:10851
  at ChildProcess.c (/home/abelouso/.vscode/extensions/platformio.platformio-ide-3.3.2-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:4598)
  at ChildProcess.emit (node:events:513:28)
  at ChildProcess.emit (node:domain:489:12)
  at maybeClose (node:internal/child_process:1091:16)
  at Socket.<anonymous> (node:internal/child_process:449:11)
  at Socket.emit (node:events:513:28)
  at Socket.emit (node:domain:489:12)
  at Pipe.<anonymous> (node:net:322:12)
@ivankravets ivankravets transferred this issue from platformio/platformio-vscode-ide Jan 5, 2024
@ivankravets ivankravets added this to the 6.1.12 milestone Jan 5, 2024
@ivankravets ivankravets added the bug label Jan 5, 2024
@ivankravets ivankravets changed the title Start PIO Home Server Python 3.6: AttributeError: module 'asyncio' has no attribute 'run' Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants