Category Archives: Error

[Solved] ERROR: You don‘t have the SNMP perl module installed.

net-snmp mib2c error:

ERROR: You don't have the SNMP perl module installed.  Please obtain
this by getting the latest source release of the net-snmp toolkit from
http://www.net-snmp.org/download/ .  Once you download the source and
unpack it, the perl module is contained in the perl/SNMP directory.
See the README file there for instructions.
Solution:
apt-get install libperl-dev
apt-get install libsnmp-perl

[Solved] octave Error: -error: ‘squareThisNumber‘ undefined near line 1 column 1

. M file name should also be capitalized: squarethisnumber m

Question 2:

parse error near line 1 of file C:\Users\asus\squareThisNumber. m

syntax error

>>> {\rtf1\ansi\ansicpg936\deff0\nouicompat{\fonttbl{\f0\fnil\fcharset134 \’cb\’ce\’cc\’e5;}}

Solution: the WordPad program (nodepad) opens the file and finds many redundant characters. Delete them and add endfunction at the end.

[Solved] error: ‘IEEE80211_BAND_2GHZ’ undeclared here (not in a function)

Environmental description

System: centos7 linux-3.10 0 kernel

Driver version: 00014996-rtl8192eu_linux_v5. 6.3. 1_34030_COEX20171113-0047.20190613.zip

Network card: Realtek rtl8192eu

Problem log

rtl8192EU_WiFi_linux_v5.6.3.1_34030.20190613_COEX20171113-0047/include/../os_dep/linux/ioctl_cfg80211.h:414:27: error: ‘IEEE80211_BAND_2GHZ’ undeclared here (not in a function)
 #define NL80211_BAND_2GHZ IEEE80211_BAND_2GHZ
                           ^

Solution:

Modify IOCTL_cfg80211.h

 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26)) && (LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0))
+#define IEEE80211_BAND_2GHZ 0 //add by wellnw 20211213
 #define NL80211_BAND_2GHZ IEEE80211_BAND_2GHZ
 #define NL80211_BAND_5GHZ IEEE80211_BAND_5GHZ
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0))

[Solved] AttributeError : ‘GridSearchCV‘ object has no attribute ‘grid_scores_‘

The reason is that grid_scores_ has been deleted in version 0.20 of sklearn and replaced by cv_results_.

Method 1 (version 0.20 deleted):
grid_search.grid_scores_
method 2 (applicable to version 0.20):
means = grid_search.cv_results_[‘mean_test_score’]
params = grid_search.cv_results_[‘params’]

[Solved] QT Compile Error: nmake: fatal error u1077

One possibility is that the installation path of VS is not added to the environment variable
an error is reported:
nmake 👎 Error: u1077: “D:\program files (x86)\Microsoft Visual Studio 14.0\VC\bin\AMD64\link.Exe”: return code “0x486”

Solution:

Add to the environment variable:

D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN

How to Solve Go Error: concurrent map iteration and map write

Pure dry goods.

Direct cause: problems caused by concurrent read/write of map. The source of your problem must be among the following reasons.

catalogue

Reason 1: abnormal loading and unlocking

Reason 2: adding unlock code looks normal

Reason 3: incomplete locking

Reason 4: the same lock is not added to the map


Reason 1: abnormal loading and unlocking

The code is not written rigorously, the lock is not unlocked, and a single closed loop is not formed
solution: if a closed loop is formed, there must be a solution

Reason 2: adding unlock code looks normal

In fact, the internal code of the lock is lonely. The map operation is not within the scope of the lock. The (read and write together) or the same map (same address) is used with the external code. The lock does not play a practical role

Solution: transfer the map data without using the old map, generate a new map between locking and unlocking,
transfer the data to the new map (or other data structures), and then return to the new map

Or

Just adjust the code position

Reason 3: incomplete locking

Only the goroutine that writes the map is unlocked, but the goroutine that reads the map is not or only goroutine reading map is unlocked, but goroutine writing is not or unlocked

Reason 4: the same lock is not added to the map

For example: for a map, there are two goroutines for reading the map and two goroutines for writing the map. The four are numbered 1,2,3,4. The first three use mu1 and the last one uses mu2, which will cause the error.

Warm tips:
the same lock can act on multiple maps, but the same map cannot have two locks.

Win10 remote connection submits error by using cluster: Batch: error: batch script contains DOS line breaks (\R\n) sbatch: error

Description:

The notebook of win10 system is remotely connected to the win10 workstation of the office, and then the win10 workstation is used to submit tasks to the cluster server. At this time, you can edit bash directly in the Linux environment of the cluster server The SH file cannot be run normally. If you use VIM to open the file and edit it again, the error will be prompted as follows:

batch: error: Batch script contains DOS line breaks (\r\n)
sbatch: error: instead of expected UNIX line breaks (\n)

In this case, use vscode to bash The SH file can be changed from CRLF to LF to solve the problem.

[Solved] Tableau Desktop Install Error: 0x80070643 fatal error during installation

Problem description

When installing tableau desktop, the following errors may occur:

0x80070643 fatal error during installation

The error log is as follows:
in addition, the following errors can be found in the log:

Error 0x80070643: unable to execute MSI package

reason

Required installation components failed to start
Please note that error 0x80070643 is an error of Microsoft
.

Solution:

1. In windows, navigate to control panel > “Programs and features >”, Locate the visual c + + redistributable package shown in the setup file. For example, tableau desktop 2018.2 3 installation procedure Exe file contains 2013 and 2014 x64 Visual C + + redistributable component packages (as well as. MSI installer and some Database Driver Installer files of tableau desktop)

2. If not, go to the Microsoft official website to download
download link: https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=53587

3. Just download and install
run the installer from tableau desktop Exe file, and then run tableau desktop MSI installer