Standard IO_open and close files_fopen, fdopen, freopen, stdin, stdout, stderr

Directory 1. Open the file 1.1 fopen function prototype 1.1.1 fopen function 1.1.2 Principle of fopen function 1.1.3 What is the difference between text files and binary files? 1.1.4 What is the difference between “r” mode and “rb” mode? 1.1.5 Example of using fopen function 1.2 fdopen function prototype 1.2.1 fdopen function 1.2.2 Principle of […]

Solved stderr: ERROR: Could not find a version that satisfies the requirement gradient==3.23

Solved stderr: ERROR: Could not find a version that satisfies the requirement gradio==3.23 ERROR: No matching distribution found for gradio==3.23 Article directory Error report error translation Error reason Solution Thousands of full-stack VIP Q&A group to contact bloggers to help solve errors Error reporting A friend in the fan group came to private message me […]

[Solved] pip failed – sys.stderr.write(f “ERROR: {exc}”) SyntaxError: invalid syntax

Version: ubuntu16 Python version: 2.7 problem appear: pip -V Traceback (most recent call last): File “/home/xiao-virsual-machine/.local/bin/pip”, line 7, in <module> from pip._internal.cli.main import main File “/home/xiao-virsual-machine/.local/lib/python3.5/site-packages/pip/_internal/cli/main.py”, line 58 sys.stderr.write(f”ERROR: {exc}”) ^ SyntaxError: invalid syntax Reinstall pip as follows (non-pip3): curl https://bootstrap.pypa.io/pip/2.7/get-pip.py –output get-pip.py python2.7 get-pip.py After running, the following problem occurs: pip -V Traceback (most […]

[Solved] .repo/repo/main.py”, line 79 file=sys.stderr) SyntaxError: invalid syntax

【Problem Description】: Downloading using the repo command prompts the following error: File “.repo/repo/main.py”, line 79 file=sys.stderr) ^ SyntaxError: invalid syntax 【Analysis process】: Confirm that the .repo/repo/main.py file is python3 syntax, as follows: #!/usr/bin/env python3 # # Copyright (C) 2008 The Android Open Source Project The current server python is python2.7, there are still problems after […]

[Solved] Jenkins continuous integration error stderr: fatal: unsafe repository (‘/home/water/water’ is owned by someone else)

Project Scenario: In order to facilitate the modification of the project later, the Jenkins continuous integration tool is used to automatically build to run the Maven project. Problem description Error during initial build: Started by user water Running as SYSTEM Building in workspace /home/water/water The recommended git tool is: NONE using credential Honyelchak Cloning the […]

[Solved] HTMLTestRunner output report error <_io.TextIOWrapper name='<stderr>’ mode=’w’ encoding=’UTF-8′>

Error message: Solution: Modify line 631 of HTMLTestRunner.py print >> sys.stderr, ‘\\ Time Elapsed: %s’ % (self.stopTime-self.startTime) or sys.stderr.write(‘\\ Time Elapsed: %s\\ ‘ % (self.stopTime – self.startTime)) changed to sys.stderr.write(‘\\ Time Elapsed: %s\\ ‘ % (self.stopTime – self.startTime)) After changing: operation result:

[Solved] Remember a jenkins scheduling failure stderr: error: The requested URL returned error: 401 Unauthorized while accessing

【Remember a jenkins scheduling failure stderr: error: The requested URL returned error: 401 Unauthorized while accessing】 Today, I suddenly found that jenins scheduling failed. . . . . Error: stderr: error: The requested URL returned error: 401 Unauthorized while accessing Processing flow: Initially suspected that the git user login password was invalid or something git […]