Category Archives: How to Fix

Error reported in Python reading file oserror: [errno 22] invalid argument: ‘u202ac: \ \ users \ \ yyqhk \ \ desktop \ \ 1. CSV’

[Errno 22] Invalid argument: ‘\u202aC:\\Users\\yyqhk\\Desktop\ 1.csv’


It is better to search \u202a directly to find the solution, because I directly through the file properties under the safe Tab copy path, just from the write a different place to copy the path or manually enter again to solve the problem

Reference: http://blog.csdn.net/qq_33733970/article/details/77519660

Python oserror: [errno 22] invalid argument: solution

ERROR: [Errno 22] Invalid argument:

Method 1: Incorrect input format

 f = open('F:\Python 3.6\test.txt','r')

It should be modified to:

f = open('f:\\Python 3.6\\test.txt','r')

Or:

f = open('f:/Python 3.6/test.txt','r')

Change \ to /, or \\, because \t is a newline character in Python and is not recognized.

Method two :(I made a mistake here)

It is best to enter the path manually rather than copy and paste the changes directly.

Python-OSError: [Errno 22]

Record the bugs you encounter. The method refers to the network
Problem description:
Problems encountered while reading and writing files

OSError: [Errno 22] Invalid argument: '\u202aC://Users//huawei//Desktop//a.txt'

Solution:
Enter the file path manually

Error lnk2038: detected “0”_ ITERATOR_ DEBUG_ The reason and solution of the unmatched item of “level”

https://blog.csdn.net/wzsy/article/details/70599654
① The value “0” does not match the value “2”. Debug uses the library files under Release.
② The value “2” does not match the value “0”. Release uses the library file under Debug.
In both cases, you just need to set its value in the preprocessing definition to match the program you want to call. In VS2010, the default value is 2 in Debug mode and 0 in Release mode.
For case one, just in the project ->; Property – & gt; Configure properties ->; C/C++-> Preprocessor ->; Add “_ITERATOR_DEBUG_LEVEL=0” to the preprocessing definition.
Or modify the run to use Release mode, corresponding to: Project ->; Property – & gt; Configure properties ->; C/C++-> Code generation ->; MD
For case two, just in the project ->; Property – & gt; Configure properties ->; C/C++-> Preprocessor ->; Add “_ITERATOR_DEBUG_LEVEL=2” to the preprocessing definition.
Or modify the run using Debug mode, corresponding to: project ->; Property – & gt; Configure properties ->; C/C++-> Code generation ->; MDd

Error lnk2038 occurred during PCL code compilation: detected “error” during PCL code compilation_ ITERATOR_ DEBUG_ Mismatch of level: value ‘0’ does not match value ‘2’ solution

I need to run in Debug and release mode PCLS point cloud processing code, but there is no problem in the Debug mode, the release mode
these problems through inspection found that is in release mode configuration project properties in addition to the problem, the problem below
release mode, the preprocessing command should not be adding _DEBUG

Boot / etc/ rc.local What about invalidity? resolvent

Linux boot /etc/rc.local failure problem to provide three ways to solve the boot can not start the rc.local file problem, need friends refer to the following.

/etc/rc.local = /etc/rc.local

1, echo /etc/rc.local>

1, echo /etc/rc.local>; > /etc/profile & & Source /etc/profile

2>eboot

br>

2, reboot

echo /etc/rc.local>
echo /etc/rc.local> > ~/.bash_profile & & The source/etc/profile
Third:
in the/etc/rc3. D increase a startup scripts directory, and then restart the test, the content is as follows:

cat /etc/rc3.d/StartDefautRoute.sh

#! /bin/bash

# [email protected]

route add default gateway 192.168.1.1 dev xenbr0

Some commands cannot be executed in /etc/rc.local
To add a service that automatically runs when the system is started, simply add it to the /etc/rc.local script file. When the command or program is running without a path, for example:

 

#! /bin/bash
Distccd –user nobody –allow 10.10.98.0/24 –log-file=/var/log/distcc.log –verbose –daemon
loadavg-s 10.10.98.20>; /dev/null 2> & 1

Note that the distccd, loadavg commands are stored in /usr/local/bin/
When the system executes these commands, it will report an error and cannot execute properly!
Because the PATH environment variable was not fully initialized when the rc.local script was executed, the directory /usr/local/bin/ was added to the PATH environment variable only after /etc/profile was executed.

Executing commands in /usr/local/bin/directory in /etc/rc.local requires absolute path.

Centos7 via / etc/ rc.local File configurator boot

Sh
[root@localhost ~]# vi start.sh
start exe
c>usr /dragon/tedr
./ ser>
Local
[root@localhost ~]# vi rc.local
uch /var/lock/subsys/local
nohup sh /usr/dragon/tedr/start.sh > /dev/null 2& > 1 &
Note: & amp; : Represents background execution
Local
[root@localhost ~]# chmod +x /etc/rc.d/rc.local
root@localhost ~]# ll /etc/rc.d/rc.local
[root@localhost ~]# ll /etc/rc.d/rc.local

[root@localhost ~]# reboot
root@localhost ~]# ps-a
[root@localhost ~]# reboot
[root@localhost ~]# ps-a

Using DOS command to run Java program

Run Java programs using the DOS command
First find the location of the program and compile the program with javac
Open the DOS window at the location of the class


A file with the same name but with the suffix.class is generated in the current directory
You need to jump the pointer back to the root directory (SRC) and run it
Note: The runtime needs to be prefixed with the package name
F:\ViC_GymSystem\src> java com.aaa.ViC_GymSystem.Test
If you need to pass an argument, you can just add the argument and separate it with a space
Encoding – unicod utf-8

Ffmpeg (libx264) compiling for IOS

Refer to the article: https://blog.csdn.net/cairo123/article/details/78808763
MacOS: 10.13.5 f77 (17)
FFmpeg: 2.7.7
1. The x264 compilation

The source code download: https://github.com/mstorsjo/fdk-aac
Compile script: https://github.com/kewlbear/x264-ios
Brew install NASM
$ nasm -v
NasM version 2.13.03 Compiled on Feb 8 2018

Compile scripts in X264 source code equivalent directory. Execute the compile script.

To fit the project requirements, modify the compiled script as follows:

CONFIGURE_FLAGS=”–enable-static –enable-pic”

ARCHS=”arm64 armv7 armv7s”

I’m just going to leave the ARM64, the ARMv7, the ARMv7s and I’m going to get rid of the i386 x86_64 of the simulator and the idea here is to reduce the size of the library.
Flags are as simple as possible to avoid the hassle of having fewer compilations, so just keep –enable-static –enable-pic
The modified compiled script: https://download.csdn.net/download/wangyubin2010n/10486377

2. Compile FFmpeg
To download the script: https://github.com/kewlbear/FFmpeg-iOS-build-script
Modify the script:
A. Remove i386, x86_64 architecture support,
B. Modify FFMPEG version to 2.7.7;
C. Streamline FFMPEG to remove unnecessary compilation such as binary compilation and DOCS, save time, and simplify the size of the library.
Because the script downloads the FFMPEG source code automatically, the script is executed directly after the modification is completed.     
The modified script: https://download.csdn.net/download/wangyubin2010n/10486405

3. Complete

X264 -iOS: Static library containing x264
FFMPEG-IOS: Holds FFMPEG libraries.
Library download address: https://download.csdn.net/download/wangyubin2010n/10486418

Methods of compiling and installing ffmpeg and libx264 in Linux

Recently in the study of TS stream video preparation FFMPEG video format encoding and conversion
Compiling FFMPEG was smooth but integrating with Libx264 was tedious
It took me a long time to find it online
It is hereby sorted here

Operating system: CentOS 6.4 64-bit kernel 2.6.32
Compiling environment: GCC 4.4.7
FFMPEG version: 2.4
X264 version: X264 0.142.2479 DD79A61
YASM version: 1.3

Prepare documents:
Ffmpeg source
https://www.ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
x264
Git clone git://git.videolan.org/x264.git
yasm
http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz

Compile and install procedure:
1. Install YASM

tar zxvf yasm-1.3.0.tar.gz 
cd yasm-1.3.0
 ./configure 
 make
 make install
 yasm --version

2. Compile and install X264

cd x264 
./configure --enable-shared --enable-pthread --enable-pic
make
make install

3. Compile FFMPEG

cd ffmpeg
./configure --enable-libx264 --enable-gpl --enable-shared  --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --enable-pic
make
make install

Install well at FFMPEG runtime if prompted

ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No such file or directory

You will need to modify the file: /etc/ld.so.conf

Add a line at the end of the file:
/usr/local/lib
Then execute the command:
ldconfig

Rerun the ffmpeg – encoders | grep x264 will find successful installation

Solve the problem that CEPH dashboard cannot be accessed

Fixed Ceph Dashboard not accessible
Check which node the Dashboard is currently in.

[root@ceph02 ~]# ceph mgr services
{
    "dashboard": "https://ceph02:8443/"
}

Restart Dashboard in Ceph02 (restart on that node and restart on that node)

[root@ceph02 ~]# ceph mgr module  disable  dashboard
[root@ceph02 ~]# ceph mgr module  enable  dashboard

At this point the browser accesses
again

Python error: importerror: DLL load failed: unable to find the specified module solution

Error message
The following error is reported while using Python for a dataset:

The reason for the error
The error occurs because the corresponding module’s file is incomplete or there is no corresponding module.
The solution
The solution is as follows:
The main steps are as follows:
1. Locate the module and uninstall it with PIP. Take the example I came across:

pip uninstall numpy

2. Reinstall the module again.

pip install numpy

The point is which module is causing this problem?
We read the wrong picture:

Find the most recent import package code that reported the error, regardless of importing packages from ‘. ‘:

We found out it was NumPy and reinstalled the module.