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

Error installing OneWire library [id=1] #591

Closed
nogurenn opened this Issue Mar 22, 2016 · 13 comments

Comments

Projects
None yet
2 participants
@nogurenn

nogurenn commented Mar 22, 2016

Configuration

Operating system: Mac OS X El Capitan (10.11)

PlatformIO Version: 2.8.5

Description of problem

I'm trying to install the OneWire (id: 1) library, but I keep getting this unknown error.
All commands were done within the Atom PlatformIO CLI. I think it's worth mentioning that installing the AltSoftSerial library worked.

Steps to Reproduce

  1. Open PlatformIO Library Manager CLI
  2. Enter pio lib install 1 (OneWire library)

Actual Results

Installing library [ 1 ]:
Error: Traceback (most recent call last):
  File "/Users/solitude/.atom/packages/platformio-ide/penv/lib/python2.7/site-packages/platformio/__main__.py", line 107
, in main
    cli(None, None, None)

  File "/Users/solitude/.atom/packages/platformio-ide/penv/lib/python2.7/site-packages/click/core.py", line 700, in __ca
ll__
    return self.main(*args, **kwargs)
  File "/Users/solitude/.atom/packages/platformio-ide/penv/lib/python2.7/site-packages/click/core.py", line 680, in main
    rv = self.invoke(ctx)
  File "/Users/solitude/.atom/packages/platformio-ide/penv/lib/python2.7/site-packages/click/core.py", line 1027, in inv
oke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/solitude/.atom/packages/platformio-ide/penv/lib/python2.7/site-packages/click/core.py", line 1027, in inv
oke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/solitude/.atom/packages/platformio-ide/penv/lib/python2.7/site-packages/click/core.py", line 873, in invo
ke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/solitude/.atom/packages/platformio-ide/penv/lib/python2.7/site-packages/click/core.py", line 508, in invo
ke
    return callback(*args, **kwargs)
  File "/Users/solitude/.atom/packages/platformio-ide/penv/lib/python2.7/site-packages/click/decorators.py", line 16, in
 new_func
    return f(get_current_context(), *args, **kwargs)
File "/Users/solitude/.atom/packages/platformio-ide/penv/lib/python2.7/site-packages/click/decorators.py", line 16, in
 new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/solitude/.atom/packages/platformio-ide/penv/lib/python2.7/site-packages/platformio/commands/lib.py", line
 122, in lib_install
    if not lm.install(id_, version):
  File "/Users/solitude/.atom/packages/platformio-ide/penv/lib/python2.7/site-packages/platformio/libmanager.py", line 9
5, in install
    dlpath = self.download(dlinfo['url'], gettempdir())
  File "/Users/solitude/.atom/packages/platformio-ide/penv/lib/python2.7/site-packages/platformio/libmanager.py", line 3
8, in download
    fd.start()
  File "/Users/solitude/.atom/packages/platformio-ide/penv/lib/python2.7/site-packages/platformio/downloader.py", line 6
4, in start
    chunks = int(ceil(self.get_size() / float(self.CHUNK_SIZE)))
  File "/Users/solitude/.atom/packages/platformio-ide/penv/lib/python2.7/site-packages/platformio/downloader.py", line 5
9, in get_size
    return int(self._request.headers['content-length'])
  File "/Users/solitude/.atom/packages/platformio-ide/penv/lib/python2.7/site-packages/requests/structures.py", line 54,
 in __getitem__
    return self._store[key.lower()][1]
KeyError: 'content-length'

Expected Results

Installing library [ 1 ]:
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
The library #1 'OneWire' has been successfully installed!

Additional Info

pip install -U platformio

Traceback (most recent call last):
  File "/usr/local/bin/pip", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/pip/__init__.py", line 215, in main
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 579, in
setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
@ivankravets

This comment has been minimized.

Member

ivankravets commented Mar 22, 2016

Could you reproduce this issue again with pio lib install 1?

@nogurenn

This comment has been minimized.

nogurenn commented Mar 22, 2016

@ivankravets
Here's a screenshot just now for your request.
screen shot 2016-03-23 at 2 14 43 am

Here's the result for the other library
screen shot 2016-03-23 at 2 17 04 am

@ivankravets

This comment has been minimized.

Member

ivankravets commented Mar 22, 2016

Try in that Terminal

curl "http://dl.platformio.org/libraries/archives/0/2953.tar.gz"

Does it show any errors?

@nogurenn

This comment has been minimized.

nogurenn commented Mar 22, 2016

Well, no errors, but I don't know what to make of this dump. Also, pip install -U platformio works if I execute in on my computer's native Terminal. Unfortunately, pio lib install 1 doesn't work on my native terminal, generating the same error.
screen shot 2016-03-23 at 2 20 23 am

@ivankravets

This comment has been minimized.

Member

ivankravets commented Mar 22, 2016

Thanks. Click on Settings(gear icon) > Packages > Community Packages > platformio-ide and click Use development version.

Try pio lib install 1.

@ivankravets

This comment has been minimized.

Member

ivankravets commented Mar 22, 2016

I forget, after click on Use development version, please wait for a while (it will install develop version in the background).

@ivankravets

This comment has been minimized.

Member

ivankravets commented Mar 22, 2016

Also, please check via pio --version that 2.8.6.dev is installed.

@nogurenn

This comment has been minimized.

nogurenn commented Mar 22, 2016

After enabling Use development version, pio --version is still 2.8.5. The error persists

@ivankravets

This comment has been minimized.

Member

ivankravets commented Mar 22, 2016

You have 2 versions of platformio now: 1 is installed in IDE and second is installed globally in the system

You write that problem persists in native Terminal too. Please open native Terminal and install the latest development version http://docs.platformio.org/en/latest/installation.html#development-version. Please check version before lib installing.

P.S: It's important for us because we are going to release PlatformIO 2.8.6 and new IDE through 15-20mins. Thanks a lot for the help.

@nogurenn

This comment has been minimized.

nogurenn commented Mar 22, 2016

Am I doing something wrong?

About the native terminal platformio, I double-checked it, and it appears that they're using the same pio. My apologies. Is this supposed to be normal though?

screen shot 2016-03-23 at 2 47 58 am

@ivankravets

This comment has been minimized.

Member

ivankravets commented Mar 22, 2016

Could you provide me TeamViewer session? Contact me@ikravets.com with Session ID/Pass. Thanks!

@nogurenn

This comment has been minimized.

nogurenn commented Mar 22, 2016

@ivankravets As much as I'd like to help right away, I don't know how to use TeamViewer... What's the cause of my issue?

@ivankravets

This comment has been minimized.

Member

ivankravets commented Mar 22, 2016

I need temporary access to your Mac to debug this issue under your control. Please install https://www.teamviewer.com and send me@ikravets.com Session ID/Pass. I'll have temporary access to your Mac while you close the TeamViewer application.

@ivankravets ivankravets added bug and removed help wanted labels Mar 22, 2016

@ivankravets ivankravets added this to the 2.8.6 milestone Mar 22, 2016

@ivankravets ivankravets self-assigned this Mar 22, 2016

ivankravets added a commit that referenced this issue Mar 22, 2016

ivankravets added a commit to ivankravets/homebrew that referenced this issue Mar 22, 2016

platformio 2.8.6
-   Launched [PlatformIO Community Forums](http://community.platformio.org) ([issue \Homebrew#530])
-   Added support for ARM mbed-enabled board Seed Arch Max (STM32F407VET6) ([issue \Homebrew#572])
-   Improved DNS lookup for PlatformIO API
-   Updated Arduino Wiring-based framework to the latest version for Atmel AVR/SAM development platforms
-   Updated “Teensy Loader CLI” and fixed uploading of large .hex files ([issue \Homebrew#568])
-   Updated the support for Sanguino Boards ([issue \Homebrew#586])
-   Better handling of used boards when re-initialize/update project
-   Improved support for non-Unicode user profiles for Windows OS
-   Disabled progress bar for download operations when prompts are disabled
-   Fixed multiple definition errors for ST STM32 development platform and ARM mbed framework ([issue \Homebrew#571])
-   Fixed invalid board parameters (reset method and baudrate) for a few ESP8266 based boards
-   Fixed “KeyError: ‘content-length’” in PlatformIO Download Manager ([issue \Homebrew#591])

  [issue \Homebrew#530]: platformio/platformio-core#530
  [issue \Homebrew#572]: platformio/platformio-core#572
  [issue \Homebrew#568]: platformio/platformio-core#568
  [issue \Homebrew#586]: platformio/platformio-core#586
  [issue \Homebrew#571]: platformio/platformio-core#571
  [issue \Homebrew#591]: platformio/platformio-core#591

xu-cheng added a commit to Homebrew/homebrew-core that referenced this issue Mar 23, 2016

platformio 2.8.6
-   Launched [PlatformIO Community Forums](http://community.platformio.org) ([issue \#530])
-   Added support for ARM mbed-enabled board Seed Arch Max (STM32F407VET6) ([issue \#572])
-   Improved DNS lookup for PlatformIO API
-   Updated Arduino Wiring-based framework to the latest version for Atmel AVR/SAM development platforms
-   Updated “Teensy Loader CLI” and fixed uploading of large .hex files ([issue \#568])
-   Updated the support for Sanguino Boards ([issue \#586])
-   Better handling of used boards when re-initialize/update project
-   Improved support for non-Unicode user profiles for Windows OS
-   Disabled progress bar for download operations when prompts are disabled
-   Fixed multiple definition errors for ST STM32 development platform and ARM mbed framework ([issue \#571])
-   Fixed invalid board parameters (reset method and baudrate) for a few ESP8266 based boards
-   Fixed “KeyError: ‘content-length’” in PlatformIO Download Manager ([issue \#591])

  [issue \#530]: platformio/platformio-core#530
  [issue \#572]: platformio/platformio-core#572
  [issue \#568]: platformio/platformio-core#568
  [issue \#586]: platformio/platformio-core#586
  [issue \#571]: platformio/platformio-core#571
  [issue \#591]: platformio/platformio-core#591

Closes Homebrew/legacy-homebrew#50326.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>

benjaminfrank added a commit to benjaminfrank/homebrew that referenced this issue Apr 9, 2016

platformio 2.8.6
-   Launched [PlatformIO Community Forums](http://community.platformio.org) ([issue \Homebrew#530])
-   Added support for ARM mbed-enabled board Seed Arch Max (STM32F407VET6) ([issue \Homebrew#572])
-   Improved DNS lookup for PlatformIO API
-   Updated Arduino Wiring-based framework to the latest version for Atmel AVR/SAM development platforms
-   Updated “Teensy Loader CLI” and fixed uploading of large .hex files ([issue \Homebrew#568])
-   Updated the support for Sanguino Boards ([issue \Homebrew#586])
-   Better handling of used boards when re-initialize/update project
-   Improved support for non-Unicode user profiles for Windows OS
-   Disabled progress bar for download operations when prompts are disabled
-   Fixed multiple definition errors for ST STM32 development platform and ARM mbed framework ([issue \Homebrew#571])
-   Fixed invalid board parameters (reset method and baudrate) for a few ESP8266 based boards
-   Fixed “KeyError: ‘content-length’” in PlatformIO Download Manager ([issue \Homebrew#591])

  [issue \Homebrew#530]: platformio/platformio-core#530
  [issue \Homebrew#572]: platformio/platformio-core#572
  [issue \Homebrew#568]: platformio/platformio-core#568
  [issue \Homebrew#586]: platformio/platformio-core#586
  [issue \Homebrew#571]: platformio/platformio-core#571
  [issue \Homebrew#591]: platformio/platformio-core#591

Closes Homebrew#50326.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>

NAzT pushed a commit to cmmakerclub/platformio that referenced this issue Apr 11, 2016

jvillard added a commit to jvillard/homebrew that referenced this issue Jul 25, 2016

platformio 2.8.6
-   Launched [PlatformIO Community Forums](http://community.platformio.org) ([issue \Homebrew#530])
-   Added support for ARM mbed-enabled board Seed Arch Max (STM32F407VET6) ([issue \Homebrew#572])
-   Improved DNS lookup for PlatformIO API
-   Updated Arduino Wiring-based framework to the latest version for Atmel AVR/SAM development platforms
-   Updated “Teensy Loader CLI” and fixed uploading of large .hex files ([issue \Homebrew#568])
-   Updated the support for Sanguino Boards ([issue \Homebrew#586])
-   Better handling of used boards when re-initialize/update project
-   Improved support for non-Unicode user profiles for Windows OS
-   Disabled progress bar for download operations when prompts are disabled
-   Fixed multiple definition errors for ST STM32 development platform and ARM mbed framework ([issue \Homebrew#571])
-   Fixed invalid board parameters (reset method and baudrate) for a few ESP8266 based boards
-   Fixed “KeyError: ‘content-length’” in PlatformIO Download Manager ([issue \Homebrew#591])

  [issue \Homebrew#530]: platformio/platformio-core#530
  [issue \Homebrew#572]: platformio/platformio-core#572
  [issue \Homebrew#568]: platformio/platformio-core#568
  [issue \Homebrew#586]: platformio/platformio-core#586
  [issue \Homebrew#571]: platformio/platformio-core#571
  [issue \Homebrew#591]: platformio/platformio-core#591

Closes Homebrew#50326.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment