Category Archives: How to Fix

When VS code imported Cv2, an error ImportError: numpy.core.multiarray failed to import; There are no mistakes in using the Spyder

The following error occurs when programming in VsCode and using anaconda’s virtual environment as the interpreter to import Cv2

ImportError: numpy.core.multiarray failed to import

After checking the trial, it was found that:

    I use on spyder without this error; Also used after trying to update numPY; And the python interpreter in the lower left corner is the right choice;

It turned out that the reason might be that vs Code was not started correctly and the Anaconda environment might not have been activated.
In the Anaconda Prompt, the following is executed in sequence

conda activate env_name
cd workDir
code .

So now it’s activated and the import is correct.
In addition, try to directly open VS Code, and then open python working directory in the File-Open folder.
Also note this error. The environment of Vscode is correct, but the terminal does not activate the environment. This can be determined by checking the contents of the prefix brackets.

ASP.NET AJAX client-side framework failed to load


======================================================

note: source code click here to download

======================================================

Asp.net ajax client-side framework failed to load

posted on 2011-08-09 00:04 Leo. W read (30) comments (0) edit collection

development environment from xp upgrade to 64-bit 2008 or windows7,iis change to 7.0, encountered various problems

encountered the same problem, various errors

1 webform_autofocus(“”) missing object

2 asp.net ajax client framework failed to load

solution application pool, advanced Settings, with 32-bit applications enabled set to true.

everything is ok.

depressed colleagues also default installation, I do not know how to set to false, made me crazy for two days!!

tag: ajax client-side

green channel: good text to focus on my collection this article with me to contact

registered users can only post comments after logging in, please log in or register, return to the homepage of the blog garden.

home blog ask flash news garden recruitment knowledge base

latest it news :

·android platform surpassed ios

in advertising browsing share in December with 51.6%
· ios beta source code shows that iPad 3 May support siri

· Stephen Hawking’s new computer

· jingdong mall won a piece of Beijing’s commercial land with 295 million yuan

· American newspaper giants cooperate with facebook Google media attach importance to network network

» more news…

latest knowledge base article :

·javascript object-oriented programming

· continuous integration of “everything is code”

· continuously integrated “software self-recognition”

· continuous integration play-word check-in dance

· what is a closure.
my understanding

» more knowledge base articles…

Textbook touring exhibition in autumn 2011

China -pub out of print computer books on demand service

======================================================

in the end, I invite you to participate in sina APP, sina is a free to give you a space, support PHP+MySql, free secondary domain name, free domain name binding this is the address I invited, you register through this link is my friend, and get a gift of 500 yundou, worth 5 yuan! The station I created has more than 2000 visitors per day, and I can earn 50+ yuan per day by hanging advertisements. Oh, (^o^)/

python: This application failed to stat could not find or load the Qt platform plugin “windows”

there was a problem that the graphics window could not be used when drawing with matplotlib today:

This application failed to start because it could not find or load the Qt platform plugin “windows”
in “”.

Reinstalling the application may fix this problem.

That’s the case with

.

I had no problem using it before, but suddenly today, I think it must be because I have just reinstalled some packages or library files of the system that have not been installed, or the environment is configured.

because python was installed before, then install whatever package you need, step by step install over, after reinstall the system for convenience, install anaconda, so as not to rely on the environment too much trouble. However, there was a problem: the application failed to start because it could not find or load the QT platform plug-in “Windows” .

looked up some related column problems on the Internet, and finally solved the problem.

plug-ins cannot be found or loaded, in two cases 1: no relevant software or libraries are installed. 2: Yes, but there is no associated path at call time.

I looked at Qt’s installation package:

is all there is, so the problem should be the path setting. There are many related problems on the Internet, the main one is to add it in the environment variable, the steps are as follows:

variable name: QT_QPA_PLATFORM_PLUGIN_PATH

plugins variable value: D:\Anaconda\ PKGS \qt-5.6.2-vc14h6f8c307_12\Library\plugins (my path, installation location changed, changed)

remember that it’s the qt plugins path.

if the problem is the above, then 90% of the solution is like this. At the beginning, I also added the variable value wrong, so I failed several times, but as long as you find the right path, you can solve ( after every change in the variable remember to restart the software, run again, otherwise no change ).

Swap off failed: cannot allocate memory

swap partition closes

is ready to adjust the utilization of the swap partition under Linux.

executing swapoff-a-v under Linux reports the following error:

swapoff: /dev/mapper/cryptswap1: swapoff failed: Cannot allocate memory

error cause analysis:

can be seen from the above information, the current Linux/dev/mapper/cryptswap1 this device as a swap partition, if the current swap partition instead of the current remaining capacity is greater than the system memory, will quote this mistake, because at the time of closing swap partition, all need to partition data written to the memory, if the memory capacity is insufficient, will cause the error.

resolved:

method 1: free memory cache

# sync ; echo 3 > /proc/sys/vm/drop_caches  #先把内存数据回写到磁盘,然后释放内存缓存

drop_caches accepted parameters are 1, 2, 3, empting pagecache, slab object, pagecahce, and slab object

, respectively

parameters explanation to this file can be found from https://github.com/torvalds/linux/blob/master/Documentation/sysctl/vm.txt:

drop_caches

Writing to this will cause the kernel to drop clean caches, as well as
reclaimable slab objects like dentries and inodes.  Once dropped, their
memory becomes free.

To free pagecache:
    echo 1 > /proc/sys/vm/drop_caches
To free reclaimable slab objects (includes dentries and inodes):
    echo 2 > /proc/sys/vm/drop_caches
To free slab objects and pagecache:
    echo 3 > /proc/sys/vm/drop_caches

dirty state memory cache will not be freed. To free as much memory cache as possible, first execute the command sync to reduce memory cache in the dirty state. If disable, the input parameter 4, note that 0 is not acceptable:

the above method may not work if you use too much swap partition.

method 2: allows memory overcommit

overcommit_memory controls “when user space requests memory, overcommit and approve:

When this flag is 0, the kernel attempts to estimate the amount
of free memory left when userspace requests more memory.

When this flag is 1, the kernel pretends there is always enough
memory until it actually runs out.

When this flag is 2, the kernel uses a "never overcommit"
policy that attempts to prevent any overcommit of memory.
Note that user_reserve_kbytes affects this policy.

2 means overcommit is not allowed. At this point, if swap is stopped, the available memory is reduced and the user space memory request may trigger overcommit to be rejected.


Reference

https://www.lijiaocn.com/%E9%97%AE%E9%A2%98/2019/02/27/linux-swap-off-fail.html

reproduced in: https://www.cnblogs.com/yjt1993/p/11163679.html

Nginx 502 Error: Failed to load resource: the server responded with a status of 502 (Bad Gateway)

problem found



was meant for cookie with too many headers, required header data was too big

solve the problem

nginx adds configuration

    # 502 bad gateway 错误解决配置 start
    proxy_buffer_size 64k;
    proxy_buffers 32 32k;
    proxy_busy_buffers_size 128k;
    # 502 bad gateway 错误解决配置 end
    

note the location of the configuration

individual open source project (general back office management system) — > Can look at https://gitee.com/wslxm/spring-boot-plus2, like
in this paper, to this end, if you feel useful, move the small hand thumb up or focus on bai, do not regularly will continue to update more… Thank you for watching!

HTTP 405 Error: Failed to load resource: the server responded with a status of 405 (Method Not Allowed)

carelessness:

    $.ajax({
        type: 'POST',
        async: false,
        url: url,
        dataType: 'json',
        contentType: 'application/json',
        data: JSON.stringify(postData),
        success: function(result){
            if(result.state==1){
                //成功
                var data = result.data.tableList;
                var sumnum = result.data.iSumNum;
                grid.setDatasource(data,sumnum);
            }else{
                cui.error("数据初始化失败");
            }
        }
    });
}
开始的时候没写url导致该错误

Successfully solved opencv error: assertion failed (SCN = = 3 | SCN = = 4) in CV:: cvtcolor

successfully resolve OpenCV Error: Assertion failed (SCN == 3 || SCN == 4) in CV ::cvtColor

directory

solve the problem

solution

solution


solve the problem

OpenCV Error: SCN == 3 || SCN == 4) in CV :cvtColor, file C:\projects\ OpenCV \modules\imgproc\ SRC \color. CPP, line 11111

failed to recv data in handshakeReceive2Callback

‘failed to recv data in handshakeReceive2Callback “error

Well with the

has been * * * today suddenly found that can’t open web page, see the log that is “failed to recv data in handshakeReceive2Callback” mistake refresh, ok then to search to see what exactly is this problem. A search found that everyone is saying that this is thunderbolt dao ghost, suddenly think of today I have nothing to do to upgrade thunderbolt, so nine out of ten is thunderbolt dry.

without further ado, let’s go straight to the solution:

  1. disables the xlserviceplatform service.
  2. open C:\Program Files\Common Files\Thunder Network\ServicePlatform\ xlsp. DLL and empty the contents (64-bit system as C:\Program Files (x86)\Common Files\Thunder Network\ServicePlatform\ xlsp. DLL). </span b>)</ span b>
  3. problem solved.

Error in Git clone or pod install: smudge filter LFS failed clone succeeded, but checkout failed

encountered the following problem when git clone :

git-lfs smudge '第三方库某个文件': git-lfs: command not found
error: external filter 'git-lfs smudge %f' failed 127
error: external filter 'git-lfs smudge %f' failed
fatal: 第三方库某个文件: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

basically means that a file is too large to be checked out.

solve :
execute command :brew install git-lfs

reason :
git-lfs solves the problem that a single file is too big, specific can be below baidu.

MySQL failed to start prompt: job failed to start

Today, I modified the character set for the mysql database under Linux. In order to facilitate operation, I modified the permissions for the configuration file sudo Chmod 777 My.cnF

after modification, start: Job failed to start appears.
Nothing is printed in the
error log.

after the character set configuration is removed still prompt cannot start.

finally consider the possibility that only permissions have been modified due to permissions.

sudo chomd o-w my.cnf

sudo chmod g-w my.cnf

and then start MySQL.

Coredata: error: failed to call designed initializer on nsmanagedobject

first put a breakpoint (remember global breakpoints, so you can detect when something breaks) and then I know that my own class is writing

TTCourse *course=[[TTCourse alloc]init]; This is a problem, after is – [TTCourse setCourseID:] : unrecognized selector that sent to instance 0 x7fa392ecb080 this mistake, and then I looked at it inherited type is NSManagedObject, so initialization must use this type of initialization, namely insertNewObjectIntoContext this method.

TTCourse *course = [TTCourse insertNewObjectIntoContext:[TTImporter sharedInstance].context]; [TTImportersharedInstance].0 context. You can just write your own context.



Also, here’s a more recognized selector sent to instance

>

>