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.

spec version check fails

See original GitHub issue

spec version check currently fails on CI. I think I’ve seen this when using an older pip: pip install -e . thinks the project uses setuptools (either because it does not support pyproject.toml or because it gets confused by our decoy setup.py).

This could be fixed by

  • fixing #2070 or
  • updating pip in the workflow

I assume the first one is enough, but it’s possible that both are needed (if pip is old enough then it literally can’t install pyproject.toml projects with “-e”). I suggest trying #2070 first.

python3 -m pip install -e .
Obtaining file:///home/runner/work/python-tuf/python-tuf
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Collecting securesystemslib>=0.22.0
  Downloading securesystemslib-0.23.0-py3-none-any.whl (107 kB)
Requirement already satisfied: requests>=2.1[9](https://github.com/theupdateframework/python-tuf/runs/8057985831?check_suite_focus=true#step:4:10).1 in /usr/lib/python3/dist-packages (from tuf==2.0.0) (2.22.0)
Installing collected packages: securesystemslib, tuf
  Running setup.py develop for tuf
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/runner/work/python-tuf/python-tuf/setup.py'"'"'; __file__='"'"'/home/runner/work/python-tuf/python-tuf/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix=
         cwd: /home/runner/work/python-tuf/python-tuf/
    Complete output (3 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ModuleNotFoundError: No module named 'setuptools'
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/runner/work/python-tuf/python-tuf/setup.py'"'"'; __file__='"'"'/home/runner/work/python-tuf/python-tuf/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix= Check the logs for full command output.
Error: Process completed with exit code 1.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jkucommented, Aug 31, 2022

All green now, thanks.

1reaction
jkucommented, Aug 30, 2022

oops, pip now complains: no such option: -u

Should have been -U or --upgrade, the latter is used in other workflows

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Spec Test" fails after reboot - Check Point Support Center
The test fails when it checks lom connectivity. This happens due to: An installation error of the os_lom_utils in the diagnostic partition ......
Read more >
Need help understanding why Clojure spec test/check is ...
I've been playing around with Clojure Spec for testing and data generation and am seeing some strange behavior where the function works in...
Read more >
Clojure Q&A
When trying to manually wire clojure.test and spec for fdef'ed functions, I realized that spec.test/check returns a map with (link: :failure ...
Read more >
devtool::test Package independant "Error: invalid version ...
Hi devtools developer, recently I upgraded to Ubuntu 22.04 and R 4.2.1 and out of the blue my package fails tests with an...
Read more >
Troubleshoot instances with failed status checks
Use the following procedure: Stop the instance. Detach the root volume. Attach the root volume to a known working instance. Run filesystem check...
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