question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incompatible with python 2.7.4

See original GitHub issue

Operating system

Windows 10 Sublime Text 3 build 3143

Board used

ESP 8266

Description of problem

I used python version 2.7.3 is work fine. but when I upgrade to version 2.7.4 I got this error.

Error(s) in ST Console? (View > Show Console)

Traceback (most recent call last):
  File "C:\Python27\Lib\runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "C:\Python27\Lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Users\doanh\AppData\Roaming\Sublime Text 3\Packages\User\Deviot\penv\Scripts\platformio.exe\__main__.py", line 5, in <module>
  File "c:\users\doanh\appdata\roaming\sublim~1\packages\user\deviot\penv\lib\site-packages\platformio\__main__.py", line 21, in <module>
    import click
  File "c:\users\doanh\appdata\roaming\sublim~1\packages\user\deviot\penv\lib\site-packages\click\__init__.py", line 18, in <module>
    from .core import Context, BaseCommand, Command, MultiCommand, Group, \
  File "c:\users\doanh\appdata\roaming\sublim~1\packages\user\deviot\penv\lib\site-packages\click\core.py", line 8, in <module>
    from .types import convert_type, IntRange, BOOL
  File "c:\users\doanh\appdata\roaming\sublim~1\packages\user\deviot\penv\lib\site-packages\click\types.py", line 5, in <module>
    from ._compat import open_stream, text_type, filename_to_ui, \
  File "c:\users\doanh\appdata\roaming\sublim~1\packages\user\deviot\penv\lib\site-packages\click\_compat.py", line 6, in <module>
    from weakref import WeakKeyDictionary
  File "C:\Python27\Lib\weakref.py", line 14, in <module>
    from _weakref import (
ImportError: cannot import name _remove_dead_weakref

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
malformed-ccommented, Dec 19, 2017

same, linux debian i tried but that not work

0reactions
Suyash458commented, Jun 9, 2018

Facing the same issue while trying to upload to a teensy 3.2 on Win10 with Python 2 v2.7.14 and PlatformIO v3.5.3. Any leads?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pip install fails because of a build dependency Python 2.7 ...
Problem arises when one of my dependencies needs setuptools to build itself, their specified version in the pyproject.toml or setup.py is too ...
Read more >
Unable to install python 2.7 environment using latest ... - GitHub
Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. Examining @/win-64::__cuda==10.1=0: 50%|·· ...
Read more >
On the old python 2.7.5 version, the pip install package does ...
I have Python 2.7.5 and pip 20.2.4 installed on my computer. When I use the pip install command it gives an SSL connection...
Read more >
Porting Python 2 Code to Python 3 — Python 3.11.1 ...
Under Python 3, binary files and text files are clearly distinct and mutually incompatible; see the io module for details. Therefore, you must...
Read more >
Sunsetting Python 2
We are volunteers who make and take care of the Python programming language. We have decided that January 1, 2020, was the day...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found