Skip to content

Can't be installed successfully #4726

Closed
@lukeweston

Description

@lukeweston

Arduino IDE Version: 1.8.5
Mac OSX 10.12.6
Python: 2.7.10
Which ESP8266 hardware I'm using is irrelevant, I'm not really up to that point.
I've shown the specific git clone path and board manager JSON file URL, below.

I have inserted the following entry into the additional board manager URLs:
http://arduino.esp8266.com/stable/package_esp8266com_index.json
The ESP8266 entry is now visible for installation in the Board Manager GUI.
I've attempted to install, with v 2.4.1 selected. (Selecting 2.4.0 does not fix the issue.)

Installation fails with the following error message in red text:
Error downloading https://github.com/esp8266/Arduino/releases/download/2.4.1/esp8266-2.4.1.zip

OK, that doesn't work, so let's try manually installing it.
I don't mind manual installation, as long as it gets the job done in a usable way.
(Remember this is OSX, so we're inside /Applications/Arduino.app/)
cd /Applications/Arduino.app/Contents/Java
cd hardware
mkdir esp8266com
cd esp8266com
git clone https://github.com/esp8266/Arduino.git esp8266
cd esp8266/tools
So far so good.

get.py fails. I'm not sure what Python packages etc, if any, are prerequisites for this script. No such requirements, beyond Python 2.7 itself, are documented on the documentation page.

Python is installed. (2.7.10)

I have followed the instructions as they are given on the documentation page, for both the manual install-from-git and the Board Manager cases, and in neither case can I get a successful installation.

$ python get.py
Traceback (most recent call last):
  File "get.py", line 15, in <module>
    import tarfile
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tarfile.py", line 52, in <module>
    import copy
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 52, in <module>
    import weakref
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/weakref.py", line 14, in <module>
    from _weakref import (
ImportError: cannot import name _remove_dead_weakref

----------------------------- Delete above -----------------------------

Basic Infos

  • This issue complies with the issue POLICY doc.
  • I have read the documentation at readthedocs and the issue is not addressed there.
  • I have tested that the issue is present in current master branch (aka latest git).
  • I have searched the issue tracker for a similar issue.
  • If there is a stack dump, I have decoded it.
  • I have filled out all fields below.

Platform

  • Hardware: [ESP-12|ESP-01|ESP-07|ESP8285 device|other]
  • Core Version: [latest git hash or date]
  • Development Env: [Arduino IDE|Platformio|Make|other]
  • Operating System: [Windows|Ubuntu|MacOS]

Settings in IDE

  • Module: [Generic ESP8266 Module|Wemos D1 mini r2|Nodemcu|other]
  • Flash Mode: [qio|dio|other]
  • Flash Size: [4MB/1MB]
  • lwip Variant: [v1.4|v2 Lower Memory|Higher Bandwidth]
  • Reset Method: [ck|nodemcu]
  • Flash Frequency: [40Mhz]
  • CPU Frequency: [80Mhz|160MHz]
  • Upload Using: [OTA|SERIAL]
  • Upload Speed: [115200|other] (serial upload only)

Problem Description

Detailed problem description goes here.

MCVE Sketch

#include <Arduino.h>

void setup() {

}

void loop() {

}

Debug Messages

Debug messages go here

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions