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

Install on ubuntu: Failed to open the app #4764

Closed
mshenouda opened this issue Oct 20, 2023 · 4 comments
Closed

Install on ubuntu: Failed to open the app #4764

mshenouda opened this issue Oct 20, 2023 · 4 comments

Comments

@mshenouda
Copy link

mshenouda commented Oct 20, 2023

AFTER INSTALLING THE APP with sudo apt install platformio
I tried to build some program, yet when entering platformio [command], I received that error

Traceback (most recent call last):
File "/usr/bin/platformio", line 33, in
sys.exit(load_entry_point('platformio==4.3.4', 'console_scripts', 'platformio')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/platformio", line 25, in importlib_load_entry_point
return next(matches).load()
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/init.py", line 202, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/usr/lib/python3/dist-packages/platformio/main.py", line 66, in
@cli.resultcallback()
^^^^^^^^^^^^^^^^^^
AttributeError: 'PlatformioCLI' object has no attribute 'resultcallback'. Did you mean: 'result_callback'?

@SakuraPuare
Copy link

do not use sudo apt install platformio to install platformio

using

curl -fsSL -o get-platformio.py https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py
python3 get-platformio.py

according https://docs.platformio.org/en/latest/core/installation/methods/installer-script.html

@ivankravets
Copy link
Member

@SakuraPuare , thanks for the solution!

@NathanLibutan
Copy link

do not use sudo apt install platformio to install platformio

using

curl -fsSL -o get-platformio.py https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py
python3 get-platformio.py

according https://docs.platformio.org/en/latest/core/installation/methods/installer-script.html

I'm running into this same problem but I'm using curl... Not sure if anyone else has had the same issue?

@ivankravets
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants