Category Archives: How to Fix

To solve the problem of “failed to load vmmr0. R0” (Verr) of VirtualBox under Mac OS X_ SUPLIB_ WORLD_ Writable) “error

on a MAC will prompt

when starting with VirtualBox

“Failed to load VMMR0. R0 (VERR_SUPLIB_WORLD_WRITABLE)” error

is also to see a foreigner’s post just know that the original can be modified by permission to solve

so it’s up here for a record

solution:

#sudo chmod 755 /Applications 
#sudo chmod 755 /Applications/Virtualbox.app


Vue report failed to mount component: template or render function not defined

before the project is no problem, the result suddenly appeared this error, after looking up baidu found that the existing big hands to reduce the version of the vue-loader to solve, but my version is

has no problems with any other path except for the newly created component

after reading this classmate’s article, I tried to test it, and sure enough, the problem appeared on the route filling, because my writing method was roughly the same as his

solution:

since I’m writing the router/index.js file lazily, the file suffix. Vue is just as good as

Wrong classification of Python — assertion cur_ Target is greater than or equal to 0 and cur_ Target is less than n_ classes failed

RuntimeError: Assertion `cur_target >= 0 && cur_target < n_classes' failed.  at c:\programdata\miniconda3\conda-bld\pytorch-cpu_1532498166916\work\aten\src\thnn\generic/ClassNLLCriterion.c:93

The

assertion function returns an error, requiring the target class to be greater than or equal to 0 and less than or equal to the input class, but not satisfying.
often encounter this problem in classification training. Generally speaking, this error will occur when the number of categories output in our network is different from the number of categories set by your label.

USES find to remove background class 0 in experimental classification on matlab, so all categories start from 1. There is no problem in classification on matlab, but Pytorch has a requirement that the label must start with 0 when CrossEntropyLoss is used for verification, so it will give an error

please

in

place

Richard

After the

back

scene

class

the

after

will

the

There are

the

class

Don’t

mark

sign

Reduction of

1

\ leftarRow Subtracting all category labels by 1 after processing the background class

please in at Daniel the back view class of by a class not tag sign reduction 1

flAbsPath on /var/lib/dpkg/status failed – realpath

error:

root@nanjing:/home/quantum6/nanjing/doubango# apt install libtool
正在读取软件包列表... 有错误!
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: 没有那个文件或目录)
E: 无法打开文件  - open (2: 没有那个文件或目录)
E: Problem opening 
E: 无法解析或打开软件包的列表或是状态文件。

solution:

mkdir -p /var/lib/dpkg/{alternatives,info,parts,triggers,updates}

cp /var/backups/dpkg.status.0 /var/lib/dpkg/status

apt update

reinstall, through.

Gunicorn reported error worker failed to boot

the following error no detailed information, don’t know what went wrong code

Traceback (most recent call last):
  File "/home/charleswu/.virtualenvs/process/lib/python3.6/site-packages/gunicorn/arbiter.py", line 203, in run
    self.manage_workers()
  File "/home/charleswu/.virtualenvs/process/lib/python3.6/site-packages/gunicorn/arbiter.py", line 545, in manage_workers
    self.spawn_workers()
  File "/home/charleswu/.virtualenvs/process/lib/python3.6/site-packages/gunicorn/arbiter.py", line 617, in spawn_workers
    time.sleep(0.1 * random.random())
  File "/home/charleswu/.virtualenvs/process/lib/python3.6/site-packages/gunicorn/arbiter.py", line 245, in handle_chld
    self.reap_workers()
  File "/home/charleswu/.virtualenvs/process/lib/python3.6/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
    raise HaltServer(reason, self.WORKER_BOOT_ERROR)
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>

Just add the parameter — preload to the gunicorn command to see the detailed error message
. Add the parameter and the error message is:

Traceback (most recent call last):
  File "/home/charleswu/.virtualenvs/process/bin/gunicorn", line 11, in <module>
    sys.exit(run())
  File "/home/charleswu/.virtualenvs/process/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 61, in run
    WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
  File "/home/charleswu/.virtualenvs/process/lib/python3.6/site-packages/gunicorn/app/base.py", line 223, in run
    super(Application, self).run()
  File "/home/charleswu/.virtualenvs/process/lib/python3.6/site-packages/gunicorn/app/base.py", line 72, in run
    Arbiter(self).run()
  File "/home/charleswu/.virtualenvs/process/lib/python3.6/site-packages/gunicorn/arbiter.py", line 60, in __init__
    self.setup(app)
  File "/home/charleswu/.virtualenvs/process/lib/python3.6/site-packages/gunicorn/arbiter.py", line 120, in setup
    self.app.wsgi()
  File "/home/charleswu/.virtualenvs/process/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
    self.callable = self.load()
  File "/home/charleswu/.virtualenvs/process/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
    return self.load_wsgiapp()
  File "/home/charleswu/.virtualenvs/process/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
    return util.import_app(self.app_uri)
  File "/home/charleswu/.virtualenvs/process/lib/python3.6/site-packages/gunicorn/util.py", line 350, in import_app
    __import__(module)
  File "/home/charleswu/AiDoctor/process_bchao/app.py", line 44, in <module>
    app = create_application()
  File "/home/charleswu/AiDoctor/process_bchao/app.py", line 31, in create_application
    from webapi import image_api
  File "/home/charleswu/AiDoctor/process_bchao/webapi/__init__.py", line 3, in <module>
    from .upload_image import image_api
  File "/home/charleswu/AiDoctor/process_bchao/webapi/upload_image.py", line 9, in <module>
    from interface import get_b_result
  File "/home/charleswu/AiDoctor/process_bchao/interface.py", line 6, in <module>
    from structuration import Struct
  File "/home/charleswu/AiDoctor/process_bchao/structuration.py", line 7, in <module>
    from split_word import desc_list, diag_list
ModuleNotFoundError: No module named 'split_word'

done!!!


“Failed to create interpreter” appears when pychar creates a new project

In creating the project, using the base(python=3.7) that comes with Anaconda can be created normally, but using my own environment (envs/python37/python=3.7), the following problem arises: D:\Program Files\JetBrains\Pycharm 2018.3.5\helper\packaging_tools.py list Error :Permission denied Command output

~ after nearly a week of torture, I also found some comments on Google, which is still a lot of resources on Google (portal). Generally speaking, it should be related to Anaconda’s own BUG, which is not compatible with Pycharm (maybe I have not found the relevant explanation yet)

here is my solution :

method 1 :

build environment by conda directly (not through Vartualenv to build virtual environment), managed by conda’s real environment as project environment, the disadvantages of doing so is that all use the same environment projects can see kit has no personalization is the same, and for any changes in the environment will have an effect on other projects, the safety factor is not high, but this method the effect is very good.

method 2 :

the environment is created in pythonw.exe, still using the virtual environment, but without Windows (the specific pythonw.exe difference is visible from the portal)

======================================2019-11-28_Edit_log=========================================

for the previous scheme can not solve the problem, I found a new method today, you can try

if you need

because the permission denial only occurs in python3’s Anaconda managed version so I’ll use this as an example of

is the same as before, the normal way of creating it, it will report an error

>

>

>

>

>

the steps are as follows :

1. Settings – & gt;

find project interpreter add location

2. Click to add the interpreter for python3, or if python3 does not have an interpreter, click show all to add the interpreter

3. Finally, click “apply ok”, and we can see the required version interpreter and virtual environment in the project

above is some of my experience summary, hope to be helpful to friends

Android installation failure: install_ FAILED_ NO_ MATCHING_ ABIS: Failed to extract native libraries, res=-113.

installation failed, message failed to complete session :INSTALL_FAILED_NO_MATCHING_ABIS: failed to extract native library, res=-113.

if an existing version of apk exists, it is possible to resolve this problem by uninstalling that version and then reinstalling it.

warning: uninstalling removes application data!

do you want to uninstall an existing application?

my reason is:

USES a hundred degree map:

forgot to add the corresponding CPU type library

solution: add the corresponding type library in build.gradle (app) and synchronize to

When

is added, you are ready to install and run. If you do not use a third-party shelf package, just add the following compilation configuration

under defaultConfig in build.gradle (app)

splits {
    abi {
        enable true
        reset()
        //缺少什么CPU类型就添加对应的类型即可
        include 'armeabi','x86', 'armeabi-v7a','x86_64','arm64-v8a', 'mips', 'mips64'
        universalApk true
    }
}


ISE simulator reported an error: ERROR:Simulator : 861 – failed to link the design solution

remember the problems you encountered using xilinx ISE for the first time

The system I use is win 10 Pro Version
. It seems that this problem occurs on Windows 8 or above

solution :

find the installation directory “\Xilinx\14.x\ISE_DS\ISE\gnu\MinGW\5.0.0\nt\ GCC \mingw32\3.4.2\” collect2.exe and delete it and rerun the emulator.

win10 to install ISE DS 14.4 to open the application, new project times wrong win32 error, need to modify the shortcut path, the path to the 32-bit application, win10 installation default is 64 path.

possible solutions reference:

Bat X:\ISE\14.4\ISE_DS\settings64. Bat X:\ISE\14.4\ISE_DS\settings64. Bat X:\ISE\14.4\ISE_DS\settings64. Exe
change to X:\ISE\14.4\ISE_DS\settings32.bat X: \ ISE \ \ ISE_DS \ ISE 14.4 \ bin \ nt \ ISE exe

iOS Failed to find matching arch for 64-bit Mach-O input file

from where to see a blog I forgot, there is no link here.

Takeshi – mato – iPhone itunesstored – & lt; Warning> : [ApplicationWorkspace]: Failed to install application: cn.ac.sec.HealthCareDoctor; /var/mobile/Media/Downloads/2686208517752305961/4992622475604659910; Error Domain=LaunchServicesError Code=0 “(null)” UserInfo={Error=IncorrectArchitecture, ErrorDescription=Failed to find matching arch for 64-bit Mach-O input file /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.K3my5D/extracted/Payload/HealthCareDoctor.app/HealthCareDoctor}

One less editor to pack in build Setting

Build Active Architecture Only sets Release to NO to contain all compilers

This property is set to YES for faster compilation on Debug, which only compiles the current architecture version.

and set to no, all versions are compiled.

this is the architecture corresponding to the device:

  
  1. ARMv8/ARM64: iPhone 6(Plus), iPhone 5s, iPad Air(2), Retina iPadMini(2,3)

    ARMv7s: iPhone 5, iPhone 5c, iPad 4 

    ARMv7: iPhone 3GS, iPhone 4, iPhone 4S, iPod 3G/4G/5G, iPad, iPad2, iPad 3, iPadMini   

    ARMv6: iPhone, iPhone 3G, iPod 1G/2G

The compiled version is backward compatible. For example, if you set this value to yes, the compiled version with iphone4 will run with armv7, and iphone5 will also run, but the device with armv6 will not.

therefore, debug can choose to set to yes, release to no, to adapt to different devices.

Edit the file to be edited by GEDIT. After saving, the warning set document metadata failed: setting attribute metadata:: GEDIT position no appears

Set document metadata failed: Setting attribute metadata::gedit-position no

my case is as follows:

about this situation can see: https://askubuntu.com/questions/798935/set-document-metadata-failed-when-i-run-sudo-gedit

the blog’s solution is that this is just a warning, just ignore it.