Category Archives: How to Fix

Python2.7 + uwsgi error internal server error

First of all, I had no problem running the project before. Then I updated the code and restart uwsgi as usual today. As a result, the access interface reported an error internal server error and checked it uwsgi.xml and uwsgi.log 、 error.log They didn’t find any problems, and then they went to stop uwsgi and started uwsgi again, and the problems appeared in the uwsgi.log Inside. It is due to compilation errors at the code level. If I don’t stop uwsgi and restart uwsgi, I will never get the error log. Therefore, I think there is a bug in the logging mechanism of uwsgi

Find the corresponding code error to solve, return to normal!

Python error: syntax error: encoding problem: utf8

Python error: syntax error: encoding problem: utf8

Such as the title.
The first line reported an error, but I have checked the file code, it is indeed utf8.
At this point, use Notepad + + to open the file, and you can see the newline style of the file at the bottom right. (CR LF is windows style, LF is UNIX style)

so I found that the original. Py file is UNIX newline style, because I pulled it from GitHub, and the original author’s environment is probably UNIX.
So the. Py file can be converted to a Windows style line feed.

finish

About iView reporting error in Vue project: error in mounted hook: “typeerror: this$ parent.updateNav is not a function”

At present, it is not found that the error report has any impact on the function of the project, but the error report is always unpleasant, so it is necessary to solve the problem and record it.

The main reason is the nonstandard use of tabs components in the project, such as & lt; tabpane & gt; & lt; & tabpane & gt; without & lt; tabs & gt; & lt; & tabs & gt; package in the outer layer of the label.

Solution to syntaxerror: invalid syntax in PIP install XXX

Solution to syntaxerror: invalid syntax in PIP install XXX

Statement: 1. PIP install requests are taken as an example; 2. Windows system;
first of all, check whether you have run PIP in the python environment. If so, please open the start menu, enter CMD, find the command prompt and open it.
Enter PIP install requests in CMD, If “not an internal or external command, nor a runnable program or batch file” appears, the specific solutions are as follows:
1. Find the folder where Python is located, find the scripts file, and use Ctrl + C to copy the file path. Take an individual as an example: C: 2 2. Return to the desktop, right-click “my computer” and click “properties”
3. In the pop-up page, select “advanced system settings – variable environment – path – Edit – add the file path copied in step 1 and click OK
4. Restart the computer

After restarting the computer, open CMD again, and then enter the command PIP install requests. If
appears, the installation is successful and the problem is solved.

Handling VirtualBox error in super3hardenedwinrespawn

The reason is that after using the virtual machine, the host only network created automatically by VirtualBox makes the detection of inode multi network cards fail, and inode can access the Internet normally after it is disabled in the network

After that, after the host only network is enabled, the virtual device will automatically create a new host only network when the genymotion is opened. After the virtual device is started, an error will be reported. When the virtual box is used to start, the error cannot be & lt; device name & gt; Create a new task, set IP to 196.168.56.1 according to the online instructions, the problem still can not be solved, and report an error VirtualBox error in super3hardenedwinrespawn, uninstall the current version of VBox, and reload the latest version

 

Solve the problem of installing APK after Android studio compilation: error while installing apk

1. Error description

Today, when I compiled the app with Android studio and installed APK, I reported an error as follows:

The APK file build\outputs\apk\OYP_2.3.4_I2Base_6476_official_debug.apk does not exist on disk.
Error while Installing APK

1 2

As shown in the figure below,

2. Solutions

1. Try build – & gt; clean project recompilation or invalid
2. Try to restart Android studio is invalid

Then I went to the build/outputs/APK directory and found that the APK file was compiled, but the file name was:
oyp_ 2.3.4_ I2Base_ 6478_ official_ debug.apk
as shown in the figure below:

So the reason is that the compiled APK file of Android studio is

OYP_ 2.3.4_ I2Base_ 6478_ official_ debug.apk

And it’s going to install the APK file name

OYP_ 2.3.4_ I2Base_ 6476_ official_ debug.apk
as a result, an error will be reported. Google looked up the error and found it in http://stackoverflow.com There is a solution to this error on the website, and the link is as follows:
the http://stackoverflow.com/questions/34039834/the-apk-file-does-not-exist-on-disk

Solution:
as shown in the figure below:

Step 1: click the gradle button in the Android studio sidebar, as shown below

Step 2: refresh the gradle configuration

The third step: recompile, no more error.