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.

Multiple Errors while execution of Tests

See original GitHub issue

Environment

  • pip version: 19.3.1
  • Python version: 3.7.3
  • OS: Fedora 29

Description Tried Executing very first command $tox -e py36

Expected behavior A Good success message

How to Reproduce Maybe some environment issue, or some command is missing.

  1. Installed Tox
  2. Then Installed Python3.8
  3. Then Executed $tox -e py3.7 >> error.txt

Output

Attached Output File
[error.txt](https://github.com/pypa/pip/files/4035602/error.txt)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
uranusjrcommented, Jan 15, 2020

Hmm, I just checked this on a fresh Fedora 29 Docker image:

>>> import subprocess
>>> subprocess.check_call(['asdasdfdgfgfg'])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python3.7/subprocess.py", line 342, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib64/python3.7/subprocess.py", line 323, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib64/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/usr/lib64/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'asdasdfdgfgfg': 'asdasdfdgfgfg'

So it seems the stdlib is doing the correct thing by default, and the NotADirectory exception you get is indeed an environment problem. I don’t know what it is though. 😦

1reaction
uranusjrcommented, Jan 9, 2020

The two errors are the same, something like

FileNotFoundError: [Errno 2] No such file or directory: "/tmp/pytest-of-deepshar/pytest-13/test_freeze_mercurial_clone0/workspace/scratch/pip-test-package/*** failed to import extension hgext.qct: missing attributes: norepo, optionalrepo, inferrepo\n*** (use @command decorator to register '^qct|commit-tool')\n/tmp/pytest-of-deepshar/pytest-13/test_freeze_mercurial_clone0/workspace/scratch/pip-test-package"

I believe they are tracked in #7545.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to View Multiple JUnit Assertion Errors in One Test ...
Learn an easy solution to view all of the JUnit Assertion errors in one test execution from the test automation professionals at tapQA!...
Read more >
Error Messages During Test Execution - LambdaTest
Here is a list of various error messages that may happen during test execution.
Read more >
JUnit tests succeed individually, but when executed together ...
These test all succeed if they are executed individually i.e. commenting out the two other tests and only executing one. However, if I...
Read more >
Software Testing Errors to look out for (with examples)
In this article, we discuss some common software testing errors that a tester should be aware of. These errors are explained with examples ......
Read more >
Compilation Error in Test A When Executing Test B
PROBLEM. My project contains two or more tests that contain coded steps. I receive a compilation error for Test A when I try...
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