Author Archives: Robins

Error an unexpected error occurred:“ https://registry.npm.taobao.orgnpm/element-ui : get

Error an unexpected error occurred:“ https://registry.npm.taobao.orgnpm/element-ui : getaddrinfo ENOTFOUND registry.npm.taobao .orgnpm registry.npm.taobao . orgnpm:443 ”.

This is because the network is not good, resulting in download dependent packet request overrun error, change the download address.

Solution: Step 1. Set the request address to Taobao source

npm config set registry https://registry.npm.taobao.org  
npm config set disturl https://npm.taobao.org/dist  

Step 2. Set the node sass image source

yarn config set sass-binary-site http://npm.taobao.org/mirrors/node-sass

Step 3. Download
again

Error report of GoLand project after go reloading Error:cannot find The solution of package error

Upgrade the version of golang, uninstall the old version of go, download and install the new version of go. After installation, open the GoLand compilation project and report an error, Tips error:cannot find Package XXXX. If you look at the project carefully, there is no change. The original reason is that the installation program of golang will automatically generate an environment variable gopath, which is different from my original configuration. You can solve the problem by modifying the environment variable gopath.

Error: l6242e: cannot link object arm_ cos_ f32.o as its attributes are incompat

report errors

I use AC6 as the compiler in keil MDK. I report an error when I transplant DSP library to F4. I configure it according to the online tutorial and report an error after compiling

Error: L6242E: Cannot link object arm_common_tables.o as its attributes are incompatible with the image attributes.
Error: L6242E: Cannot link object arm_cos_f32.o as its attributes are incompatible with the image attributes.

After searching on the Internet for a circle, I found no result. If I see a similar problem, I can’t try to solve it.
https://blog.csdn.net/crown133/article/details/103333704

solve

Finally, we found the answer on arm’s official developer website

in the end https://developer.arm.com/documentation/ka003983/latest
In short, AC5 and 6 wchar_ The default size of T is not the same

according to the solution of the official website, you can open this option here

if you encounter problems in the future, you still need to find answers through official channels

Vue error: error matching template:

The error information is as follows:

the above situation is generally caused by the following conditions:

{% verbatim%} {% endverbatim%} there are unclosed tags or redundant tags (such as div unclosed) in the range of tags bound by the UE instance el. After finding, delete or complete some tag statements cannot be bound by {{MSG}}, but by V-model. For example, input and textarea need to be bound with V-model,

To solve Anaconda error: command error out with exit status 1

Development environment:

win10 x64

cuda10.0

anaconda4.0.0

 

catalog

1. PIP error: cannot open D: anaconda3/scripts/pip- script.py

2. PIP switches domestic sources

3. Solve SciPy error: importerror: cannot import name ‘show_ config’ from ‘numpy’ (unknown location) 

4. Solve the problem of error: command error out with exit status 1

5. After installing scikit learn, it can be imported, but the running error is: importerror: DLL load failed: the specified program cannot be found

 

—————————————————————————————————————————————————————-

 

This error is due to the dependency package version is too high (too new).

Phenomenon restore: install scikit learn with anaconda, and then install Matplotlib to report the above error.

Solution: the installed version of Matplotlib is too high, and it can be solved by reducing the version.

 

 

However, this is not the end. Generally, scikit learn installed with the CONDA command may import normally, but it is easy to report an error when using it

The solution is to uninstall sklearn, and then use pip to install it again. However, if you directly use the PIP install scikit learn command to install it, there may be errors, and the process of installing again will be very complicated

See:

After installing sklearn, it can be imported normally, but an error is reported

 

Welcome to my personal blog: the road of machine learning

 

Websocket: How to Fix Error Read Econnreset

error message

events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at exports._errnoException (util.js:870:11)
    at TCP.onread (net.js:544:26)

terms of settlement

Add event monitoring of error and close

var ws = require("nodejs-websocket");  
var fs = require("fs");  
var zmqutil = require('./zmqutil')

var server = ws.createServer(function (conn) {  
    console.log("connection sussess");  
    var push = zmqutil.socket('push')
    push.connect('tcp://127.0.0.1:7113')

    conn.on("close", function (code, reason) {
        console.log("close connection")
    });
    conn.on("error", function (code, reason) {
        console.log("close error")
    });

    ......
}

When integrating redis with SSM framework, error creating bean with name ‘rediscontentserviceimpl’ defined in file

When integrating redis in SSM framework, error creating bean with name ‘rediscontentserviceimpl’ defined in file

Error report: there is a problem with bean dependency, that is, there is a problem with bean injection. Finally, we found that there was a problem with the version of the connection between redis and jedis. We found a new version and solved it.

        <dependency>
            <groupId>redis.clients</groupId>
            <artifactId>jedis</artifactId>
            <version>2.7.3</version>
        </dependency>
        <!-- spring-redis-->
        <dependency>
            <groupId>org.springframework.data</groupId>
            <artifactId>spring-data-redis</artifactId>
            <version>1.6.2.RELEASE</version>
        </dependency>

 

Error creating bean with name ‘redistemplate’ defined in class path resource

I set up a set of projects, using springboot version 2.3.0. When I started, I repeatedly reported errors, so I started a long journey of error finding. At first, I thought it was because the framework was not well configured. Finally, I found that it was the problem of redis.

Error one

org.springframework.data . redis.connection.RedisConnectionFactory ’ that could not be found

Error two

Error creating bean with name ‘redisTemplate’ defined in class path resource

reason

I report an error because I didn’t introduce the jedis dependency. Another reason is that the Maven dependent versions of jedis and spring boot starter data redis are incompatible, which is a common problem. The same is true when the jedisconnectionfactory cannot be created.

solve

Just introduce the jedis dependency to solve the problem

   <!--redis cache-->
   <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-data-redis</artifactId>
   </dependency>
   <!--spring boot2.x The above version needs to be introduced, otherwise the startup will report an error!-->
   <dependency>
       <groupId>redis.clients</groupId>
       <artifactId>jedis</artifactId>
   </dependency>

Launch again

perfect solution~

K8S error validating data: ValidationError(Deployment.spec): missing required field selector

The following error is reported

This is an error when I execute the pod copy of the deployment controller. The meaning of the error is:
deployment verification error. The selector parameter must be specified in the deployment spec module.

Original yaml file

In Deployment.spec In the module, only the number of replicas is specified, and the replica label needs to be specified to match the deployment controller

apiVersion: apps/v1     #Api interface version
kind: Deployment #define controller
metadata:      
 name: nginx-deployment #deployment name
spec:       
 replicas: 3 #Under the specific parameter information spec, only the number of replicas is specified, you also need to specify the replica tag to match the Deployment controller

 template:
   metadata: 
     labels: 
       app: nginx-deployment   
   spec:
     containers:    	
       - name: nginx-deployment  	
         image: nginx:1.7.9  
         ports:   	 
           - containerPort: 80

Solution: modify yaml file

As shown in the figure above, write the selector tag parameters of the full spec according to the tags on the picture, matching with pod and deployment

Execute yaml script

kubectl apply -f deployment.yaml --record

Vue Error in callback for immediate watcher “height”: “TypeError: Cannot read property ‘style’ of

Vue error vue.esm.js?eaf6 :628 [Vue warn]: Error in callback for immediate watcher “height”: “TypeError: Cannot read property ‘style’ of undefined”

TypeError: Cannot read property ‘style’ of undefined

As follows:

The error is because tabledata is an empty array this.monthTradingTableHeight This is empty

solve:

1. Do not render when there is no data, and add a style with no data

code:

effect:

2. Or HTML code unchanged, modify JS, and give it when there is no data this.monthTradingTableHeight If you assign a value or ‘auto’, you will not report an error

code:

this.monthTradingTableHeight = tableData.length > 9 ? '310' : 'auto'

effect:

Here I choose the first solution, which is to add a style with no data.