Tag Archives: note

Vue Start Error: This relative module was not found:

This relative module was not found:
I checked it for a long time and found nothing wrong. Finally, I took a look at the directory

I first created an empty project… And then created another project in the empty project by using the terminal command NPM create. The result is that when NPM install XXX is followed, it is in the parent directory of vuero. Therefore, an error will be reported when starting vuero,
in addition, try to use cnpm install XXX instead of NPM insatl XXX

MYSQL Error: Can‘t find error-message file [How to Solve]

Installing MySQL
is running

mysqld --initialize --console

An error was encountered while

2021-11-06T18:04:30.907573Z 0 [ERROR] [MY-010338] [Server] Can't find error-message file 'C: ofterwaresetting\mySQL\mysql-8.0.11-winx64 hare\english\errmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive.

After checking many tutorials, I finally found that there was a problem with the escape character:
https://bugs.mysql.com/bug.php?id=90364

In short, change the path to double slash \ in my.ini file,
for example:

basedir=C:\\softerwaresetting\\mySQL\\mysql-8.0.11-winx64
datadir=C:\\softerwaresetting\\mySQL\\mysql-8.0.11-winx64\\Data
lc-messages-dir=C:\\softerwaresetting\\mySQL\\mysql-8.0.11-winx64\\share\\english

[Solved] Flask Error: RuntimeError: The session is unavailable because no secret key was set.

RuntimeError: The session is unavailable because no secret key was set. Set the secret_ key on the application to something unique and secret.

When we run the flash project on the Linux system, we encounter this error:

Solution:

Basically, on the Internet, you can set secret under the flash object app_ Key:
if it is added to the startup file of my project, I can successfully run the project under windows10. If it cannot succeed on the Linux system, it still reports an error

if it is added to the startup file of my project, it can run successfully on Linux

net start mysql System error 2 has occurred. The system cannot find the file specified.

https://www.jianshu.com/p/6d8ed7c36e6f
368160;-net start mysql29616;- 38169;- 35823s;

error 2 has occurred.  The system cannot find the file specified.

Solution:
run as an administrator and enter the installation path of CD + MySQL bin directory on the command line

C:\WINDOWS\system32>cd C:\softerwaresetting\mySQL\mysql-8.0.11-winx64\bin

C:\softerwaresetting\mySQL\mysql-8.0.11-winx64\bin>mysqld --remove
Service successfully removed.

C:\softerwaresetting\mySQL\mysql-8.0.11-winx64\bin>mysqld --install
Service successfully installed.

C:\softerwaresetting\mySQL\mysql-8.0.11-winx64\bin>net start mysql
The MySQL service is starting.
The MySQL service was started successfully.

How to Solve Error: spawn xxxx ENOENT

Error explanation:   This error indicates that no such directory exists, which generally means that the global variable of command XXX is not set
The full name of enoent is error no entry, and there is no error in the entity directory;

Example: scaffold occurs when NPM installation directory is used, and spawn git enoent error occurs

Solution: it means that Git is not installed or the GIT environment variable is not set. Add “C:\program files\git\bin” in the path of the environment variable. The path is adjusted according to your git installation directory

How to Solve MYSQL into outfile Error13

Error 13 is always reported when writing files. There is no problem viewing directory permissions. Finally, find the following solutions

Write files under Linxu
If you want to use the read and write functions, you must meet the following requirements

The current user is the root user
secure_file_priv is empty, or the folder to be written is just a specific folder of secure_file_priv
The folder where the shell is written must have 777 permissions, otherwise the writing will fail
File size, must be less than max_allowd_packet to
meet the above requirements in order to be written normally

Edit the file/etc/my.cof

Add
under [mysqld]

secure_file_priv =/var/www/html

MySQL view

and then

chmod 777 /var/www/html

Finally, restart the database

How to Solve Archetype generate Error

Unable to add module to the current project as it is not of packaging type ‘pom’

I modified two places. You can have a try,
1. My original java version number was 15.0. Later, I added it completely according to version number 15 under Java – variant

<!-- java version --> 
  <profile>
      <id>jdk-15</id>
      <activation>
	    <activeByDefault>true</activeByDefault>
        <jdk>15</jdk>
      </activation>

      <properties>
        <maven.compiler.source>15</maven.compiler.source>
		<maven.compiler.target>15</maven.compiler.target>
		<maven.compiler.compilerVersion>15</maven.compiler.compilerVersion>
      </properties>
  </profile>

I suggest you complete it

2. I wrote a POM myself in the original project directory, and I deleted it
the second one I tested. The pom.xml file cannot be found in the directory where the project is to be created
then run the generate command to successfully create the project

Nuxt uses the image lazy to load the lazy component tag, and an error is reported

Problems encountered when nuxt uses image lazy loading, when & lt; lazy-component> tag is still normal, but after it is used, more than 40 exceptions will be prompted directly

found later. It needs to be found in & lt; lazy-component> & lt; no-ssr> label is good

<no-ssr>
	<lazy-component>
	...
	</lazy-component>
</no-ssr>

Personal blog address: nuxt uses pictures to load lazy component tags and reports an error

Raspberry pie startup self startup opencv program script and error analysis

1. Make test script

First, we need to make a script to test whether the self startup is effective.

pi@raspberry :~ $ nano /home/pi/start.sh

The contents of start.sh are as follows:

/usr/bin/python3 /home/pi/GeometryOperations.py

Here, you must pay attention to the use of absolute paths, otherwise there is a probability that the load will fail.

Then add an execution file to the script file

pi@raspberry :~ $ chmod 777 start.sh

Test the script function

pi@raspberry :~ $ ./start.sh

If you observe that the program is running normally, you can continue to the next step

2. Add self start

Modify rc.local file

pi@raspberry :~ $ sudo nano /etc/rc.local

Find exit 0 in the text. The code added before will be executed at startup. Add a line of code before exit 0:

su pi -c “exec /home/pi/start.sh &”

CTRL + O to save, Ctrl + X to exit and restart.

pi@raspberry :~ $ sudo reboot

After restart, the program can run.

3.DEBUG

If the raspberry pie does not respond after restart, you can check the status of RC local through systemctl

pi@raspberry :~ $ sudo systemctl status rc-local

After you go in, you can see the status of each step after you start up and check where the error will be reported.

4. Possible error reports

Process:454 ExecStart=/etc/rc.local start (code=exited,status=1/FAILURE)

This error is probably due to the script file
if you just start, you must write the file path as an absolute path, otherwise an error will be reported.

error: (-2:Unspecified error) Can’t initialize GTK backend in function ‘cvInitSystem’

This error will be reported if the self startup program contains code with window operation such as OpenCV

The reason is caused by the following sentence

su pi -c “exec /home/pi/start.sh &”

If your command needs to run for a long time (such as an endless loop) or cannot exit after running, you must ensure that the “& amp;” symbol is added at the end of the command to make the command run in its background

If the code contains window interface operations similar to the following

cv2.namedWindow(‘Cap’)
cv2.imshow(‘Cap’, frame)

It will conflict with the background operation, so that the back end of GTK cannot be initialized and an error will be caused
the solution is to delete all the operations related to the interface and window, and the program can run well!

Objectinputstream of IO stream reports an error (resolved)

Problem: there was an error writing the serialized IO stream today

… eofexception:
exception in thread “main” java.io.streamcorruptedexception: invalid stream header: 7b312c22

take a look at my code

After analysis, the problem has been solved:

Look at the correct code:

The code didn’t change, just changed the order inside and solved it successfully. The specific causes are described in the figure