M5stack core2 :ImportError: cannot import name 'Serial' from 'serial'
-
hello, I'm on m5stack core2 and when I want to send or even compile my project, I have this error:
ImportError: cannot import name 'Serial' from 'serial' (C:\Users\Home.platformio\penv\lib\site-packages\serial_init_.py):
File "C:\Users\Home.platformio\penv\lib\site-packages\platformio\builder\main.py", line 97:
env = DefaultEnvironment(**DEFAULT_ENV_OPTIONS)
File "C:\Users\Home.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Defaults.py", line 83:
default_env = SCons.Environment.Environment(*args, **kw)
File "C:\Users\Home.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Environment.py", line 1010:
apply_tools(self, tools, toolpath)
File "C:\Users\Home.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Environment.py", line 116:
_ = env.Tool(tool)
File "C:\Users\Home.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Environment.py", line 1878:
tool = SCons.Tool.Tool(tool, toolpath, **kwargs)
File "C:\Users\Home.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Tool_init.py", line 120:
module = self.tool_module()
File "C:\Users\Home.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Tool_init.py", line 209:
module = spec.loader.load_module(spec.name)
File "<frozen importlib._bootstrap_external>", line 529:File "<frozen importlib._bootstrap_external>", line 1029:
File "<frozen importlib._bootstrap_external>", line 854:
File "<frozen importlib._bootstrap>", line 274:
File "<frozen importlib._bootstrap>", line 711:
File "<frozen importlib._bootstrap>", line 680:
File "<frozen importlib._bootstrap_external>", line 850:
File "<frozen importlib._bootstrap>", line 228:
File "C:\Users\Home.platformio\penv\lib\site-packages\platformio\builder\tools\pioupload.py", line 26:
from serial import Serial, SerialExceptionEverything was working fine until i installed atom on my pc