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.

Remote agent fails while installing packages - cryptography-3.4.8 (requires-python:>=3.6)

See original GitHub issue

What kind of issue is this?

  • [x ] PlatformIO Core. If you’ve found a bug, please provide an information below.

Configuration

Operating system: Raspbian GNU/Linux 10 Raspbian GNU/Linux 11

PlatformIO Version: PlatformIO Core, version 5.2.3

Description of problem

pio remote agent start fails after trying to install packages. Installed platformio with the installation script get-platformio.py. Logged in with/through pio home and after that remote agent fails while installing dependencies.

Steps to Reproduce

  1. Install latest raspbian
  2. Install platformio with script:
python3 -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/master/scripts/get-platformio.py)"
  1. Start pio home and login from web browser.
  2. Run:
pio remote agent start
  1. Wait for 20 minutes or so for it to fail and try again, and then fail again and so on.

Actual Results

  Downloading cryptography-3.4.8.tar.gz (546 kB)
     |████████████████████████████████| 546 kB 569 kB/s            
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /home/platformio/.platformio/penv/bin/python /tmp/pip-standalone-pip-uj7fkwgo/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-eyxhib9k/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.12; platform_python_implementation != '"'"'PyPy'"'"'' 'setuptools-rust>=0.11.4'
       cwd: None
  Complete output (41 lines):
  Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple, https://www.piwheels.org/simple
  Collecting setuptools>=40.6.0
    Using cached setuptools-59.4.0.tar.gz (2.3 MB)
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Installing backend dependencies: started
    Installing backend dependencies: still running...
    Installing backend dependencies: finished with status 'done'
    Preparing metadata (pyproject.toml): started
    Preparing metadata (pyproject.toml): finished with status 'done'
  Collecting wheel
    Using cached wheel-0.37.0.tar.gz (65 kB)
    Preparing metadata (setup.py): started
    Preparing metadata (setup.py): still running...
    Preparing metadata (setup.py): finished with status 'done'
  Collecting cffi>=1.12
    Downloading cffi-1.15.0.tar.gz (484 kB)
    Preparing metadata (setup.py): started
    Preparing metadata (setup.py): finished with status 'done'
  Collecting setuptools-rust>=0.11.4
    Downloading setuptools-rust-1.1.1.tar.gz (284 kB)
    Installing build dependencies: started
    Installing build dependencies: still running...
    <goes on like this x 10> 
    Installing build dependencies: still running...
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
  ERROR: Some build dependencies for setuptools-rust>=0.11.4 from https://files.pythonhosted.org/packages/3b/17/39804596680094ddabf2f44814c8919edb14da4f5db7b45e38915133f7fb/setuptools-rust-1.1.1.tar.gz#sha256=dc04afb52a70e56f5d6800a7ed9c45ad5937ba95e51a042b9096459edc038ad6 conflict with the backend dependencies: setuptools_scm==6.0.1 is incompatible with setuptools_scm>=6.3.2.
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/cc/98/8a258ab4787e6f835d350639792527d2eb7946ff9fc0caca9c3f4cf5dcfe/cryptography-3.4.8.tar.gz#sha256=94cc5ed4ceaefcbe5bf38c8fba6a21fc1d365bb8fb826ea1688e3370b2e24a1c (from https://pypi.org/simple/cryptography/) (requires-python:>=3.6). Command errored out with exit status 1: /home/platformio/.platformio/penv/bin/python /tmp/pip-standalone-pip-uj7fkwgo/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-eyxhib9k/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.12; platform_python_implementation != '"'"'PyPy'"'"'' 'setuptools-rust>=0.11.4' Check the logs for full command output.

Expected Results

A started remote agent.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ivankravetscommented, Dec 6, 2021

Thanks, I reverted this commit https://github.com/platformio/platformio-core/commit/39494d18bf66cf24ae9e7b6db6c2b638985c6837

Seems it fixes the original issue.

1reaction
ivankravetscommented, Dec 4, 2021

Could you try manually installing cryptography?

source ~/.platformio/penv/bin/activate
pip install "cryptography==3.3.2"

Does it work now?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently asked questions — Cryptography 3.4.8 ...
cryptography failed to install!​​ If you are having issues installing cryptography the first troubleshooting step is to upgrade pip and then try to...
Read more >
Pio agent fails to install or run - Raspbian buster
After installing Platformio the normal way, sourcing the venv, and running: platformio remote agent start. I get the following:
Read more >
Could not build wheels since package wheel is not installed
I am having this problem with wheels: 'Could not build wheels for ..., since ... setup.sh --install /usr/bin/python3.6 using Python 3.6 ...
Read more >
Changelog - pip documentation v22.3.1
Fix an error when trying to uninstall packages installed as editable from a ... requiring cryptography package on systems where it cannot be...
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
Bug:1523 - "[IDEA] Offload work by distributing trivial ebuild ... Bug:111508 - "Adding the examples USE flag to packages installing example source code" ......
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