pytest pytest extended functions pycharm PermissionError: [Errno 13] Permission denied:

Table of Contents 1. pytest-html 1.1 PermissionError: [Errno 13] Permission denied: ‘D:\\software\python3\\anconda3\Lib\\site-packages\pytest_html\ __pycache__\tmp_ttoasov’ 1.2 Cause of error 2. Retry failed test cases 3. Parallel execution of use cases pytest-parallel 1. pytest-html The administrator opens Anaconda Prompt and enters: pip install pytest-html Check whether the installation is successful: 1.1 PermissionError: [Errno 13] Permission denied: ‘D:\software\python3\anconda3\ Lib\site-packages\pytest_html\__pycache__\tmp_ttoasov’ […]

C- wait() & waitpid() & status variable & errno

Basic concepts wait() and waitpid() are system calls used on UNIX and Linux systems to make a parent process wait for its child process to terminate. They enable the parent process to collect the child’s exit status when the child process terminates. These two calls also help prevent the creation of zombie processes. 1. wait() […]

Linux error: OSError: [Errno 28] No space left on device

Traceback (most recent call last): File “D02.py”, line 852, in <module> configure_logging() File “D02.py”, line 66, in configure_logging logging.basicConfig(level=logging.DEBUG, format=’%(asctime)s – %(levelname)s – %(message)s’, filename=log_file) File “/usr/local/python3/lib/python3.6/logging/__init__.py”, line 1808, in basicConfig h = FileHandler(filename, mode) File “/usr/local/python3/lib/python3.6/logging/__init__.py”, line 1032, in __init__ StreamHandler.__init__(self, self._open()) File “/usr/local/python3/lib/python3.6/logging/__init__.py”, line 1061, in _open return open(self.baseFilename, self.mode, encoding=self.encoding) OSError: [Errno […]

python3 subprocess.run error: [Errno 2] No such file or directory: (shell=True, [bin, arg, arg, …] list method)

Article directory Problem recurrence test (Python 3.8.10) The test does not add the shell=True parameter, nor does it use [bin, arg, arg, …] to pass the list to execute the ls -l and ll -a and docker -v commands respectively, and it is found that they cannot be executed successfully Add the shell=True parameter to […]

Solve pod install error: unable to access: LibreSSL SSL_read: error: Operation timed out, errno 60

A scene The new computer runs an old Flutter project, flutter run runs ios and the following error occurs. Launching lib/main.dart on iPhone in debug mode… Upgrading AppFrameworkInfo.plist Upgrading Podfile Updating project for Xcode compatibility. Upgrading project.pbxproj Upgrading Runner.xcscheme Upgrading Info.plist Removing script build phase dependency analysis. Automatically signing iOS for device deployment using specified […]

AnolisOS8.6 as NFS server, mount failed mount: RPC: Unable to receive; errno = Connection refused

background: Operating system: AnolisOS8.6 Kernel: 4.19.91-26.an8.x86_64 Problem: After manually installing nfs and rpc, showmount -e localhost reports an error: rpc mount export: RPC: Unable to receive; errno = Connection refused [root@rancher ~]# cat /etc/redhat-release Anolis OS release 8.6 [root@rancher ~]# uname -r 4.19.91-26.an8.x86_64 [root@rancher ~]# showmount -e localhost rpc mount export: RPC: Unable to receive; […]

linux(stat-readdir-dup2)04-virtual address space, stat function, file, directory, errno description, dup2 and dup

01 Learning Objective 1. Master the use of stat/lstat function 2. Understand the use of functions related to file attributes 3. Understand the use of functions related to directory operations 4. Master the use of directory traversal related functions 5. Master the use of dup and dup2 functions 6. Master the use of fcntl function […]

Errno processing in linux network programming

In Linux network programming, errno is a very important variable. It records the most recent system call error codes. When writing network applications, handling errno properly can help us better understand and debug problems in the program. Usually, errno is set to a non-zero value when an error occurs in Linux network programming. Therefore, we […]

[Linux_Cent OS] yum error: failure: repodata/repomd.xml from local: [Errno 256] No more mirrors to try.

Problem reproduction Recently, I was learning Linux, and found that when I was learning yum, I performed some necessary operations, and this error always appeared. failure: repodata/repomd.xml from local: [Errno 256] No more mirrors to try. file:///mnt/ios/repodata/repomd.xml: [Errno 14] curl#37 – “Couldn\ ‘t open file /mnt/ios/repodata/repomd.xml” Resolve Delete old repository rm /etc/yum.repos.d/*.* Uninstall the yum […]