[Solved] Error: ‘gbk’ codec can’t decode byte 0x98 in position

pip install -r requirements.txt. An error occurred while executing the command. File “D:\Program Files\lib\distutils\dist.py”, line 395, in parse_config_files parser.read(filename) File “D:\Program Files\lib\configparser.py”, line 697, in read File “D:\Program Files\lib\configparser.py”, line 1015, in _read for lineno, line in enumerate(fp, start=1): UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0x98 in position 1130: illegal multibyte sequence The error reported […]

[Solved] The solution to the failure to start the zookeeper in the kafka configuration

In the process of kafka configuration, start zookeeper first, and then start kafka, because zookeeper is a configuration management service of kafka. After all the previous configuration files are configured, start: In the bin directory: ./zkServer.sh start, the startup is successful, and then check the status: ./zkServer.sh status If the following problems occur: Go to […]

[Solved] docker: Error response from daemon: driver failed programming external connectivity on endpoint mysq

Docker starts mysql5.7 and reports Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use. 1. The error is as follows: Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use. 2. Use the `netstat -tanlp` command to query 3. `kill 1454` query again, you can see that port 3306 has […]

[Solved] The error of the database Unknown column ” in ‘field list’

CREATE TABLE `Employee` ( `emp_id` INT PRIMARY KEY, `name` VARCHAR(20), `birth_date` DATE, `sex` VARCHAR(2), `salary` INT, `branch_id` INT, `sup_id` INT, FOREIGN KEY (`branch_id`) REFERENCES `Branch` (`branch_id`) ON DELETE SET NULL ); Some small problems in the process of learning the database, INSERT INTO `Employee` VALUES (206, `Xiaohuang`, `1998-10-08`, `male`, 50000,NULL,NULL); When we insert this data, […]

[Solved] Field error in object ‘xxx’ on field ‘xxx’: rejected value [xx];

Incorrect translation: Bad field in object ‘xxx’ on field, value [xxx] rejected. It means: when writing programs in Springboot or springssm framework or other frameworks, the data passed in from the front end such as <input type=”text” name=”price” class=”layui-input”lay-verify=”required|number”> The received value type error occurs when the value of this price received from the client […]

[Solved] tmux configuration error: tmux.conf: ambiguous option: mouse

Questions enter tmux Error: tmux.conf62: ambiguous option: mouse Found line 62 This is a configuration that tmux supports mouse operation. Because of the error, the tmux window cannot support the mouse selection function. Reason tmux version problem Versions after tmux2.1: set-option -g mouse on Versions before tmux2.1: setw -g mouse-resize-pane on setw -g mouse-select-pane on […]

[Solved] [Bug] OpenCV of python:(-215:Assertion failed) !_img.empty() in function ‘imwrite’

1. Problem description: known bbox, crop the image and save it 2. Code details: … for bbox_idx, bbox in enumerate(bbox_list): img_clip = img[bbox[1]:bbox[3], bbox[0]:bbox[2], :] cv2.imwrite(‘./{}.png’.format(bbox_idx),img_clip) … 3. Error: After running a few pictures successfully, an error is reported cv2.error: OpenCV(4.6.0) /io/opencv/modules/imgcodecs/src/loadsave.cpp:801: error: (-215:Assertion failed) !_img.empty() in function ‘imwrite’ 4. Problem Analysis: Analysis: After running […]

[Solved] Getting Started with Rust for the Nth – 8. Error Handling

Article table of contents foreword 8.1 Unrecoverable Error Panic 8.2 Recoverable Error Result Foreword This article introduces Rust error handling~ Rust does not have exceptions, but divides error handling into recoverable and unrecoverable errors. Error Type Description Processing Technique Recoverable errors usually represent situations where reporting the error to the user and retrying the operation […]

[Solved] Call Baidu API to report an error requests.exceptions.ProxyError:

Refer to this article to first calculate the token, and then refer to this article to calculate: Found that there is no problem when only one record is counted import json url = ‘https://aip.baidubce.com/rpc/2.0/nlp/v1/sentiment_classify?charset=UTF-8 & amp;access_token={}’.format(token) data = {<!– –> ‘text’:’This phone is not easy to use’ } data = json.dumps(data) res = requests.post(url,data=data) print(res.text) […]