Author Archives: Robins

Error 580 error LNK1104: unable to open file ‘DLL’

Question

Error 580 error LNK1104: unable to open the file “… \ bin \ polishpack. DLL” D: \ VS2010 \ Polish \ Polish \ polishpack \ link

analysis

This problem occurs when I compile the dynamic link library. The DLL file should be the output file, but it cannot be opened

reason

This file is contained in the.. \ bin folder and the link library is being called by its registrar. This file is being called and the operating system cannot create a file with the same name

terms of settlement

Close the operation of other projects, delete the output DLL file, and recompile the output
during the deletion process, the registration service may be called and cannot be deleted. The shutdown method is very easy to use. Ha ha ha, chicken is a stupid way.

raise RuntimeError(RuntimeError: ‘cryptography‘ package is required for sha256_password or caching

The Django project in normal operation was written before. After a period of time, when the project is run again, an error occurs when Python manage.py runserver is started:

Reason: when connecting to the database, cryptography   The package is required.

Solution: PIP install   cryptography。

Run again to successfully resolve:

 

 

 

SyntaxError: (unicode error) ‘unicodeescape‘ codec can‘t decode bytes in position 2-3: truncated \UX

…2222312; and 20064; and to authenticauthenticauthenticauthenticauthenticauthenticauthenticauthenticauthenticauthenticauthenticauthenticauthenticauthenticauthenticauthenticauthenticauthenticauthenticauthenticauthentic2222222222222222222222222222222222222222222222220; and to your 20340; and to 382382382; and to 38203822222222222220; and to 3823820;.382222222222222220;.1997992;65292. usr/bin/python3
35;–coding: UTF-8
import os, sys

*25171;*24320;*20214

fd = os.open(“C:Users\ericDesktoppythonfoot.txt”, os.o.o. RDWR 124os.o. CREAT)

*22797;*21046;*20214;*2551;*36848;*31526;

d o u fd= os.dup(fd)

.20351; -29992; -22797; -21046; -30340; -20214; -2551; -36848; -31526; -20889; -20837;*

os.write(d.u fd, “This is test”.encode())

*20851;*38381;*20214

closerange(fd, d.u.fd)

print (“20851;”38381;”25152;”26377;”20214;”25104;”21151!!”

File, line 6.br> fd.open(“C:Users s\eric\Desktoppython\foot.txt”, as.O.R.WR124.o.o.CREAT
SyntaxErro: (unicoerror)’unicodeescapcan’codecan’t decodes in 2-3-3-position: trun244..23601;-26159;65306;SyntaxError:-652881;unicorn 38169;-3582365289; ‘Unico-Scape’int32534;’352991.30721;’222212080;’and.35861;’3072122222-30120013;’30340;* and 33410410;6530630130000;’260290290;UX br>382;’39064;’280-78530630620303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030663;.xx26159;65292;x24517;.21435;.25481;.36716;.20041;20.br>26041;.27861;.19968;6530630621152;r242437821046;’2121991;.e36716;.20016;.20041;and 20999999990;.26041;.26041;.222222222222209999999999999999999999996;;;;,1963063066306669666669999999999999999999996ericDesktoppythonfoot.txt”, os.o. RDWR 124s.o.o. CREAT
26041; 27861; 653062.
fd open(“C:Users\eric Desktoppythonfoot.txt o.O.R.R.124s.O.CREAT
26041;<27861;
19977;65306;27491;<26012;<464;<27861 br> fd.open(“C:/Users/eric/Desktop/python/foot.txt”), O.b.

error Expected indentation of 2 spaces but found 8

 

Originally, two spaces were needed, but there were actually eight. The appearance of eight spaces is generally caused by the tab key

Comment out this line:         ‘@ vue/standard’

It is important to note that after modifying the. Eslintrc.js file, it can take effect only after restarting
according to the startup command of your project: NPM run serve

[Solved] Fabric 2.x: error starting container: API error (404): network_test not found

Run fabric samples/test network example with fabric 2.2, and the network error is as follows:

Error: endorsement failure during invoke. 
response: status:500 message:"error in simulation: failed to execute transaction 18cf3086eb32e877a497fe3cb33a4d0d0dc892f221528bf0788a07d4ffb6bdcf: could not launch 
chaincode fabcar_1:762e0fe3dbeee0f7b08fb6200adeb4a3a20f649a00f168c0b3c2257e53b6e506: error starting container: error starting container:
API error (404): network _test not found" 

The possible reason is that the update of docker compose Version (+ after v1.28) causes problems in reading .Env files.

As shown in the figure below, network.Sh script will call docker compose to start the container. Originally, docker compose should read the .Env environment variable according to the compose in it_PROJECT_Name = net generates a net_Test , but reading .Env failed, which is equivalent to not reading the value of net , so the in the error message is generated_test not found

Solution:
first ./network.sh down drop the network down . Manually modify the network.Sh file, add -- env file./.Env at the command of docker compose , and explicitly specify to read the environment variable configuration file, as shown in the following figure


restart the network for experiment

Error: Comments are not permitted in JSON [How to Solve]

Error: Comments are not permitted in JSON

The error is as follows

In the package.json file, you want to remove the comments of this line of code and always display comments are not allowed in JSON

Solution:

Change the JSON configuration in the lower right corner to JSON with comments

I have solved it!!!

Error while loading shared libraries [How to Solve]

error while loading shared libraries: libpango_image.so: cannot open shared object file: No such file or directory

#cat /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf
#sudo sh -c "echo '/usr/local/lib' >> /etc/ld.so.conf"
#cat /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf

/usr/local/lib
#sudo sh -c ldconfig

In this case, the shared library file has been installed under the/usr/local/lib directory by default. Before executing the ldconfig command, add the new shared library directory to the shared library configuration file/etc/ld.so.conf.

Error 3 error C2065: ‘endl‘ : undeclared identifier-Error 2 error C2065: ‘cout‘ : undeclared identif

As you can see, I just want to print something, and iostream is added, but that means I cout can’t use it.

hold   If StdAfx. H is placed at the front of the whole file, no error will be reported

In fact, if other header files are mentioned to the front, an error will be reported – this may be the provision of VS2010,   StdAfx. H must be first.

 

Even if you comment it out   All include in StdAfx. H are commented out. Whether the compilation passes or not.

 

 

AttributeError:‘AxesSubplot’object has no attribute‘bar_label’

Question:

Using bar in Matplotlib_ An error was encountered in the label function:
attributeerror: 'axessubplot' object has no attribute 'bar_ label'

resolvent:

Because the version of Matplotlib is too low, you need to reinstall Matplotlib (enter the following command in the console)

① Uninstall Matplotlib

conda uninstall matplotlib

② Download again

pip install matplotlib