python

Petalinux-Build: Do_Compile: Oe_Runmake Failed & Do_Compile: Function Failed: Do_Compile

## problem petalinux version: 2018.3 Both kernel and uboot use externally imported source cod…

TwoPunch created at Jan. 17, 2022, 11:59 a.m.

Error: Failed To Source Bitbake Error: Failed To Config Project. Error: Get Hw Description Failed!.

## problem pelalinux version: 2018.3 The error message is as follows: ``` $ petalinux-con…

TwoPunch created at Jan. 17, 2022, 11:55 a.m.

Logging Error Permission Error [Winerror 32]

## problem Django fails to operate file when using `logging` logging module `logging error Permi…

TwoPunch created at Jan. 8, 2022, 3:04 p.m.

How To Use Bedtools In Python (Pybedtools)

## Preface pybedtools is an encapsulation and extension of BEDTools software using Python. Why u…

TwoPunch created at Jan. 7, 2022, 1:58 p.m.

Python Basic Drawing (About The Drawing Method Of The Graph That Changes With The Time Series)

There are two points to consider when drawing this kind of picture: 1. How to generate a continu…

TwoPunch created at Jan. 7, 2022, 3:49 a.m.

Hdf5 Library Version Mismatched Error

## error message ``` Warning! ***HDF5 library version mismatched error*** The HDF5 header file…

TwoPunch created at Jan. 3, 2022, 2:38 p.m.

Pytorch: Runtimeerror: Cuda Error: Out Of Memory

## problem When loading the trained model for testing, I encountered RuntimeError: Cuda error: o…

TwoPunch created at Jan. 3, 2022, 10:01 a.m.

Error During Dcnv2 Compilation: Error: Identifier "Thcudablas_Sgemmbatched" Is Undefined

## solution Reduce the pytorch version to 1.7.0 ### Uninstall the original torch and torchvis…

TwoPunch created at Dec. 30, 2021, 3:39 a.m.

Python Virtual Environment Package Exe

## why virtural environment If you do not create a virtual environment, the packaged `exe` file …

TwoPunch created at Dec. 29, 2021, 3:02 p.m.

Solve The Problem That External Resources Cannot Be Loaded During The Packaging Process Of Pyinstaller

## Introduction Record here how we can pack external resource files into exe applications, so th…

TwoPunch created at Dec. 29, 2021, 2:51 p.m.

Chip-Seq Data Analysis Example (For Long Chromosomes, The Index Cannot Be Established And The Bw File Generation Fails)

Written in front: This process takes the rye genome with long chromosomes as an example, each chrom…

TwoPunch created at Dec. 29, 2021, 2:41 p.m.

Nodenotfounderror(Self.Error_Message, Self.Key, Origin=Self.Origin) Django.Db.Migrations.Excep

## error message ``` raise NodeNotFoundError(self.error_message, self.key, origin=self.origin) …

TwoPunch created at Dec. 29, 2021, 1:31 a.m.

Nameerror: Name ‘_C‘ Is Not Defined

## solution ``` pip install Cython ``` then restart kernel

TwoPunch created at Dec. 27, 2021, 9:11 a.m.

【Python】Attributeerror: ‘Str‘ Object Has No Attribute ‘Decode‘

## cause of the problem There are two reasons: * The difference between Python2 and Pyt…

TwoPunch created at Dec. 24, 2021, 3:03 p.m.

Vcontact2 | Error In Identifying Excluded Genomes

## error Recently, I ran `vConTACT2[1]` to compare various macro virus data sets. A few days …

TwoPunch created at Dec. 15, 2021, 2:10 p.m.

Pycharm:Run.Py: Error: The Following Arguments Are Required: Xxx

## Error ``` run.py: error: the following arguments are required: input_dir ``` ## solution…

TwoPunch created at Dec. 13, 2021, 2:33 p.m.

Syntaxerror: (Unicode Error) ‘Unicodeescape‘ Codec Can‘T Decode Bytes In Position 6-7: Malformed

## problem ``` input_image_path ='Inputs\Nnu01.jpg' ^ SyntaxError: (uni…

TwoPunch created at Dec. 12, 2021, 9:11 a.m.

Typeerror: Expected Str, Bytes Or Os.Pathlike Object, Not Nonetype

## error An error is reported when the py file is packaged into an exe file ``` TypeError: e…

TwoPunch created at Dec. 12, 2021, 8:52 a.m.

Found No Valid File For The Classes .Ipynb_Checkpoints

## solution When encountering this problem, you only need to delete the hidden file `.ipynb_chec…

TwoPunch created at Dec. 12, 2021, 8:48 a.m.

Runtimeerror: Cudnn Error: Cudnn_Status_Not_Initialized

## Problem Description Encountered the following bugs when running PyTorch code: ``` /opt/co…

TwoPunch created at Dec. 11, 2021, 2:19 p.m.

Python Manual Package Installation Error: Error: Can't Create Or Remove Files In Install Directory

## error install command ``` [test@localhost redis-2.10.3]$ python setup.py install ``` …

TwoPunch created at Dec. 8, 2021, 2:36 p.m.

Paddlepaddle Uses Multiple Processes To Report An Error "(External) Cuda Error(3), Initialization Error."

## error When using `paddlepaddle` to train the model, there is a problem that the model trainin…

TwoPunch created at Dec. 8, 2021, 2:21 p.m.

Openssl.Ssl.Error、Insecurerequestwarning、Sslerror: Bad Handshake

## error ``` OpenSSL.SSL.Error: [('SSL routines', 'ssl3_get_record', 'wrong version number')] …

TwoPunch created at Dec. 6, 2021, 3:52 p.m.

Runtimeerror: Error(S) In Loading State_Dict For Xxxxxx:

## error ``` RuntimeError: Error(s) in loading state_dict for SwinUnet ``` First check whet…

TwoPunch created at Dec. 6, 2021, 3:35 p.m.

Gcc: Error Trying To Exec ‘Cc1plus‘: Execvp: Permission Denied

## error When installing `paddleocr` on centos7.5, an error is reported, the error is as follows…

TwoPunch created at Dec. 5, 2021, 7:20 p.m.

Pycharm:Gym.Error.Deprecatedenv: Env Pendulum-V0 Not Found (Valid Versions Include [‘Pendulum-V1‘])

## problem When using the gym package, I encountered the following problem: I couldn't find the …

TwoPunch created at Dec. 5, 2021, 6:47 p.m.

Install Faiss Error

## error 1 Install swig fail An error occurred: ``` Cannot find pcre-config script from P…

TwoPunch created at Nov. 25, 2021, 1:46 p.m.

"Error Scanvertexresultiterator: Get Storage Client Error" Appears When Nebula Executes The Algorithm

The problem indicates that the storage client cannot be connected. ## solution Execute in Neb…

TwoPunch created at Nov. 24, 2021, 2:28 p.m.

Error: *** Is Not A Supported Wheel On This Platform

## problem analysis An error occurred when pip installed `whl`: ``` ERROR: *** is not a supp…

TwoPunch created at Nov. 24, 2021, 2:14 p.m.

Scatter Error In Matplotlib Module'matplotlib' Has No Attribute'scatter'

## error ``` D:\pyPro\graph_recognation\venv\Scripts\python.exe D:/pyPro/graph_recognation/stud…

TwoPunch created at Nov. 22, 2021, 2:08 p.m.
TwoPunch created at Nov. 22, 2021, 2:02 p.m.

Typeerror: Must Be Str, Not Bytes, Formatted Into Array

Want to save an array to a txt file, try pickle, use the following code ``` with open(s…

TwoPunch created at Nov. 22, 2021, 1:59 p.m.

Attributeerror: Can‘T Pickle Local Object ‘Create_Torchvision_Dataset_W

Appears when loading the data set generated by `pytorch DataLoader` ``` AttributeError: Can‘t p…

TwoPunch created at Nov. 22, 2021, 1:56 p.m.

Python Expansion Array (Grayscale Image Is Expanded To 3-Channel Color Image, Array Is Expanded To Color Image)

Let the image size be `n * n` The problem is: change the `n*n` array to `n*n*3` ## 1\. numpy …

TwoPunch created at Nov. 22, 2021, 1:53 p.m.

The Matplotlib Visualization Image Is Clearly 255, But The Result Is All Black.

## error When matplotlib is in `imshow`, if it receives a two-dimensional matrix, it will automa…

TwoPunch created at Nov. 22, 2021, 1:49 p.m.

Import Matplotlib.Pyplot As Plt Error: From . Import _Imaging As Core Importerror: Dll Load Failed:

Load `matplotlib` error ``` from. import _imaging as core ImportError: DLL load failed: ``` …

TwoPunch created at Nov. 22, 2021, 1:47 p.m.

Raise Contenttooshorterror(Urllib.Error.Contenttooshorterror: <Urlopen Error Retrieval Incomplete

## Problem description The following error occurs in the crawler batch download ``` rais…

TwoPunch created at Nov. 21, 2021, 9:22 p.m.

Python Save The File Name, Line 257, In Urlretrieve Tfp = Open(Filename, ‘Wb’) Oserror: [Errno 22] Invalid Argument:

## 1\. Problem description ``` import urllib.request filename ='File name*File name/File name.…

TwoPunch created at Nov. 21, 2021, 9:19 p.m.

Raise Httperror(Req.Full_Url, Code, Msg, Hdrs, Fp)Urllib.Error.Httperror: Http Error 404: Not Found

## error description ``` import requests url=['www....','www.....',...] for i in range(0,len(…

TwoPunch created at Nov. 21, 2021, 9:15 p.m.

Runtimeerror: Error(S) In Loading State_Dict For Net:

## description ``` size mismatch for classifier.4.weight: copying a param with shape torch.Size…

TwoPunch created at Nov. 21, 2021, 8:50 p.m.

Configure Python Environment Under Windows Error: Microsoft Visual C++ 14.0 Or Greater Is Required. Get It With "Microsoft

## problem Description An error occurred when configuring and installing the pycotools package i…

TwoPunch created at Nov. 17, 2021, 10:25 p.m.

Error: [Errno 98] Address Already In Use

When executing the code in the Linux environment with the command `python3 -u mtfan.py` ![CODE](…

TwoPunch created at Nov. 17, 2021, 1:29 p.m.

Python Pip Install: Syntaxerror: (Unicode Error) 'Utf-8' Codec Can't Decode Byte 0xc6

## solution **Method 1**: Delete UTF-8 encoding and use ASCII encoding Delete all UTF-8 e…

TwoPunch created at Nov. 16, 2021, 2:55 p.m.

Error: No Matching Distribution Found For Mysqlclient==1.4.6

## solution Most of the solutions on the Internet are to use `yum install libmysqlclient-dev` …

TwoPunch created at Nov. 16, 2021, 2:45 p.m.

Command "Python Setup.Py Egg_Info" Failed With Error Code 1

## error ``` D:\Program Files\python_3_6_4>python -m pip install --upgrade pip Cache entry des…

TwoPunch created at Nov. 16, 2021, 2:43 p.m.

Python 3.8 Install Pyaudio Pip3 Install Pyaudio Error: Microsoft Visual C++ 14.0 Or Greater Is Required.

## error ``` E:\Eprogramfiles\Anaconda3\envs\myenvpy38>pip3 install pyaudio Collecting pyaudio…

TwoPunch created at Nov. 16, 2021, 1:37 p.m.

Error: Cannot Uninstall 'Llvmlite'. It Is A Distutils Installed Project.

## reason for the error This is a distutils installation project, so we cannot accurately determ…

TwoPunch created at Nov. 11, 2021, 2:11 p.m.

Pyenv 2.7 Environment To Install Mysql-Python Error

## error ``` ERROR: Command errored out with exit status 1: command: /root/.pyenv/version…

TwoPunch created at Nov. 10, 2021, 1:21 p.m.

Wsl2,Nccl Runtimeerror: Nccl Error 2: Unhandled System Error

## error Using `pytorch1.7.1` on WSL2, it is unable to perform multi-graphics distributed traini…

TwoPunch created at Nov. 9, 2021, 12:33 p.m.

Collect2.Exe: Error: Ld Returned 1 Exit Status(Python,Sublime,G++)

## Problem Description I used sublime to run python programs before, and later configured the Mi…

TwoPunch created at Nov. 3, 2021, 3:23 p.m.

Command “Python Setup.Py Egg_Info“ Failed With Error Code 1 In /Tmp/Pip-Buil

## error ``` Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-buil ``` …

TwoPunch created at Nov. 3, 2021, 3:20 p.m.

Numpy.Core._Exceptions.Memoryerror: Unable To Allocate Xxx Gb

After checking, it should be a problem of python bitness. At first, my local is `32` bit. If you…

TwoPunch created at Nov. 3, 2021, 3:03 p.m.

Macos Failed To Install Pip, Prompt: Syntaxerror: Invalid Syntax

## error Use the command `sudo easy_install pip` to install `pip`, but the result fails. The com…

TwoPunch created at Nov. 3, 2021, 2:56 p.m.

Python Packaging Exe Error: Fatal Error: Pyinstaller Does Not Include A Pre-Compiled Bootloader For Your Platform.

## solution: You can try to uninstall the  existing pyinstaller, reinstall it through the **sour…

TwoPunch created at Oct. 29, 2021, 2:25 p.m.

Pygame.Error: Mixer Not Initialized And Pygame.Error: Wasapi Can’T Find Requested Audio Endpoint: Element Not Found.

When using Python to develop games, it is inevitable that the Pygame module will be used. This modu…

TwoPunch created at Oct. 28, 2021, 3:58 p.m.

Error Tokenizing Data. C Error: Expected 6 Fields In Line 469, Saw 7

## error When using Python for data processing, the following error is reported: ``` pandas.…

TwoPunch created at Oct. 28, 2021, 3:47 p.m.

Parsererror(‘Error Tokenizing Data. C Error: Expected 7 Fields In Line 12881, Saw 8\N‘,)

The reason is that when reading a csv file, the default delimiter is `,`, but there is a `,` **in t…

TwoPunch created at Oct. 28, 2021, 3:45 p.m.

Runtimeerror: Found Dtype Double But Expected Float”

An error was reported when calculating the loss function, ## Solution `target.float()` ```…

TwoPunch created at Oct. 28, 2021, 3:38 p.m.

Runtimeerror: Ordereddict Mutated During Iteration

## problem `OrderedDict` is used to filter the search results in the project. There is a rule to…

TwoPunch created at Oct. 28, 2021, 3:30 p.m.

Error: Glew Initalization Error: Missing Gl Version

OS: Ubuntu 18.04 Since there is no `nvidia-xxx` folder in my `/usr/lib` directory, I use the…

TwoPunch created at Oct. 26, 2021, 3:35 p.m.

Pycuda._Driver.Error:Cuinit Failed:Unknown Error

## problem As the title, in the pytorch project, encountered in autoinit.py ``` pycuda._driv…

TwoPunch created at Oct. 21, 2021, 8:02 a.m.

[Pip Command Error] Solve The Problem Of Sys.Stderr.Write(F"Error: {Exc}") After Ubuntu16.04 Upgrade Pip

## Obtain the repair file get-pip.py 1. Access to get repaired files 2. Find the download lin…

TwoPunch created at Oct. 20, 2021, 5:13 p.m.

Solution For Python Scrapy Error: Spider Must Return Request, Item, Or None, Got'tag'

Today I wrote a crawler and encountered a pit, prompt ``` [scrapy.core.scraper] ERROR: Spider m…

TwoPunch created at Oct. 20, 2021, 4:57 p.m.

When Using The Command Line To Run The Case, It Prompts Python.Exe: Error While Finding Module Specification For'testcase_1.Test'...

## file path ![file path](https://static-workflow.s3.amazonaws.com/media/content_media/TwoPunch/…

TwoPunch created at Oct. 17, 2021, 10:24 p.m.

Error: The Best Solution To The Microsoft Visual C++ 14.0 Is Required Problem

For programmers, they often pip install the packages they need. Most of the packages can basically …

TwoPunch created at Oct. 17, 2021, 1:02 p.m.

Mac Install Python_Levenshtein Error: Error: Command'clang' Failed With Exit Status 1

## Environment * Intel x86\_64 * macOS 10.15.7 ## solution ``` export ARCHFLAGS="-ar…

TwoPunch created at Oct. 16, 2021, 6:57 a.m.

Sys.Stderr.Write(F“Error: {Exc}“) ^ Syntaxerror: Invalid Syntax

## solution in **Linux**, use command: ``` wget https://bootstrap.pypa.io/3.5/get-pip.py py…

TwoPunch created at Oct. 16, 2021, 6:41 a.m.

Run The Python File And Report Syntaxerror: (Unicode Error)'Unicodeescape' Codec Can't Decode Bytes In Position 2-3: Tr

When I was running the python file, it reported ``` SyntaxError: (unicode error)'unicodeescape'…

TwoPunch created at Oct. 8, 2021, 2:08 p.m.
TwoPunch created at Oct. 8, 2021, 2:04 p.m.

Keras Model Attributeerror:’Str‘ Object Has No Attribute ’Call‘

This problem is because you use single quotation marks when using `load_model`, and double quotatio…

doporos created at Oct. 2, 2021, 12:10 p.m.

Overflowerror: Mktime Argument Out Of Range Occurs When Py2neo Connects To Neo4j

## error The error is as follows: ![error ](https://static-workflow.s3.amazonaws.com/media/co…

doporos created at Oct. 2, 2021, 11:48 a.m.

Error Overflowerror: Mktime Argument Out Of Range Was Reported When Importing Py2neo

## error When importing `py2neo`, an error was reported `OverflowError: mktime argument out of r…

doporos created at Oct. 2, 2021, 11:42 a.m.

Error Overflowerror: Mktime Argument Out Of Range Was Reported When Importing Py2neo

## error When importing `py2neo`, an error was reported `OverflowError: mktime argument out of r…

doporos created at Oct. 2, 2021, 11:42 a.m.

Error: Cython.Build.Cythonize Not Found

This problem occurred when installing the package with pip ## solution The solution is to upd…

doporos created at Sept. 27, 2021, 3:05 p.m.

Attributeerror: Type Object ‘Str‘ Has No Attribute ‘Fromhex‘ Python

## code ``` command = bytes.fromhex(command) ``` > AttributeError: type object ‘str’ has no…

doporos created at Sept. 26, 2021, 10:07 a.m.

Python Mongod: Error While Loading Shared Libraries: Libcrypto.So.1.1

## background After installing mongodb using Python, the following error is reported when mongod…

doporos created at Sept. 13, 2021, 5 p.m.

Error: Command '['/Bin/Python3', '-Im', 'Ensurepip', '--Upgrade', '--Default-Pip']' Returned Non-Zero Exit Status 1.

## method 1 Under ubuntu16.04, using the python3.5 that comes with the system to create a virtua…

doporos created at Sept. 9, 2021, 4:33 p.m.

Error: Failed Building Wheel For Ctcdecode

## error message ``` Processing /ctcdecode Building wheels for collected packages: ctcdecode …

doporos created at Sept. 7, 2021, 3:32 p.m.

Pip Install Geoip Error: Fatal Error: Geoip.H: No Such File Or Directory

## description When using pip to install GeoIP package under CentOS 7, the following error is re…

doporos created at Sept. 2, 2021, 5:22 p.m.

Attributeerror: ‘Tensorrt.Tensorrt.Builder‘ Object Has No Attribute ‘Max_Workspace_Size‘

## error when convert yolox\_s.pth to tensorRT  ``` python tools/trt.py -n yolox-s -c preModels…

doporos created at Sept. 2, 2021, 2:47 p.m.

Python: Error: Microsoft Visual C++ 9.0 Is Required

The reason is the lack of the `VCForPython` package for compiling C. ## solution Just install…

doporos created at Sept. 1, 2021, 10:03 p.m.

Error: Could Not Install Packages Due To An Oserror: [Errno 2] No Such File Or Directory

## error description When installing the python environment, using pip to install certain packag…

doporos created at Sept. 1, 2021, 12:43 p.m.

Sys.Stderr.Write(F"Error: {Exc}") Appears After Upgrading Pip

Recently, when using pip on ubuntu16.04, it prompts to upgrade, and an error is reported after the …

doporos created at Aug. 31, 2021, 4:17 p.m.

[App Service For Linux(Function) ] Python Modulenotfounderror: No Module Named 'Mysqldb'

## Problem Description When using Azure Function to create a new Python Function, `ModuleNotFoun…

doporos created at Aug. 27, 2021, 3:04 p.m.

Error: Command 'Clang' Failed With Exit Status 1 When Install Pycurl In Mac

## background install pycurl: ``` python3 -m pip install pycurl ``` and get the error  …

doporos created at Aug. 26, 2021, 3:30 p.m.

Keyerror "Non-Existent Config Key: Model.Backbone.Out_Channels"

When trying to extract visual features using vqa-maskrcnn-benchmark:[Files · master · Vedanuj Goswa…

doporos created at Aug. 26, 2021, 3:09 p.m.

Command "Python Setup.Py Egg_Info" Failed With Error Code 1 In /Tmp/Pip-Build-Fh0feg/Pip/

error `Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-fH0Feg/pip/` w…

doporos created at Aug. 24, 2021, 12:20 a.m.

Zsh: Exec Format Error

I encountered the above problem when packaging a standalone python environment.  This problem is…

doporos created at Aug. 24, 2021, 12:13 a.m.

Shell Error- Unrecognized Arguments- \

When using linux long commands, we usually use a shell script with \\ branch to show the parameters…

doporos created at Aug. 22, 2021, 10:14 p.m.

Attributeerror: Module 'Enum' Has No Attribute 'Intflag'

## description Unexpectedly error `AttributeError: module'enum' has no attribute'IntFlag'` ##…

doporos created at Aug. 20, 2021, 3:44 p.m.

Cx_Oracle.Databaseerror: Error While Trying To Retrieve Text For Error Ora-01804

## problem description When using the python package `cx_Oracle`, an error is always reported wh…

doporos created at Aug. 20, 2021, 2:40 p.m.

Runtimeerror: Error Building Extension ‘Fused‘&Failed: Fused_Bias_Act_Kernel.Cuda.O&Ninja: Build Sto

## error message ``` RuntimeError: Error building extension ‘fused’: [1/3] /usr/local/cuda/bin/…

doporos created at Aug. 19, 2021, 12:42 p.m.

Uwsgi: Error While Loading Shared Libraries: Libssl.So.1.0.0:Cannot Open Shared Object File: No Such File Or Directory

## solution  ### 1\. View missing files and copy from anaconda Copy `libssl.so.1.0.0` from th…

doporos created at Aug. 18, 2021, 12:28 p.m.

Syntaxerror: Name ‘X‘ Is Assigned To Before Global Declaration

## error descritpion code: ``` import os import math import sys MAX = 0 if __name__ …

doporos created at Aug. 18, 2021, 12:22 p.m.

Python Calls Cplex_Docplex-How To Successfully Install And Call The Academic Version Of Docplex

## Introduction This article describes how to properly install and configure the academic versio…

doporos created at Aug. 18, 2021, 6:37 a.m.

Pygame Error:Failed Loading Libmpg123-0.Dll: The Specified Module Could Not Be Found

## Quick and easy solution 1. Search for the `libmpg123-0.dll` script file in the _C_ drive (us…

doporos created at Aug. 17, 2021, 1:45 p.m.

Python Memoryerror Problem: Numpy Library Data Volume Is Too Large To Solve The Problem Of Memory Error Problem Summary

**Python MemoryError problem often occurs in processing of large training sets.** This error me…

doporos created at Aug. 12, 2021, 2:53 p.m.

19 Pythonic Tips

## **1\. Multi-variable assignment** Assign values to multiple variables at the same time ```…

doporos created at Aug. 11, 2021, 2:47 p.m.

Cv2.Imshow Error: Window.Cpp:1274: Error: (-2:Unspecified Error) The Function Is Not Implemented.

## error message ``` Traceback (most recent call last): File “/home/data/PJS/test_bed/img_show…

doporos created at Aug. 10, 2021, 5:23 p.m.

As Compilation And Installation Failure Report Error: Install_Parse_Failed_Manifest_Malformed Processing Method

The problem was located in the manifest file. After some exploration and search, I finally found th…

doporos created at Aug. 9, 2021, 1:49 p.m.