Category Archives: Windows

Windows 10 Install Docker Error: “Hardware assisted virtualization and data execution protection must be enabled”

Environment version

System environment: Windows 10 education 64 bit

Docker version: 17.12.0-ce

Error information

The installation of docker for windows.exe is successful. When the docker is started again, the following error message will pop up:

Hardware assisted virtualization and data execution protection must be enabled in the BIOS.
See https://docs.docker.com/docker-for-windows/troubleshoot/#virtualization -must-be-enable

The following error is reported by using the docker login command:

Solutions

Docker in win10 is based on win10’s own virtual machine Hyper-V operation. Before installation, make sure that CPU virtualization has been turned on in BIOS, otherwise the above error will be reported at the initial startup after installation

Click “task manager” – & gt“ Performance “to see if virtualization is turned on. The following figure shows that native virtualization is disabled and needs to be enabled

Enter BIOS & gt> Intel Virtual Technology> Enabled, press F10 to save the settings. After entering the system, check again that virtualization is on

Docker started successfully

[Solved] Installation and error summary of ImageMagick windows 10

Generally the latest version is installed by default (currently 7.0.8), but through testing it is found that this version will report an error (ImportError: MagickWand shared library not found.) so it is recommended to install im6 version

Installation of im6

There is no need to pay attention to the first step, at this step you need to check the 5th box

After installation, you need to configure the system environment variables

Lastly you have to setMAGICK_HOMEenvironment variable to the path of ImageMagick (C:\ProgramFiles\ImageMagick-6.9.3-Q16).

Summary of errors that occur after installation and operation

error1: ImportError: MagickWand shared library not found.

the first is ImageMagick(32bit or 64bit) must be accord with the python(32bit or 64bit), even in the 64bit OS. If not, there will be a ImageMagick not installed mistake.
The second is that it need the Ghostscriptotherwise ImageMagick wouldn’t work properly.

error2: Imagemagick Convert PDF to JPEG: FailedToExecuteCommand `“gswin32c.exe”/PDFDelegateFailed

You need to installGhostscriptin order to rasterize vector files (PDF, EPS, PS, etc.) with ImageMagick. IM will shell out to Ghostscript when doing these manipulations (you can see it if you use the-verbosetag in your IM invocation). You could also use Ghostscript by itself to rasterize vector files.

Windows Python Install: requires numpy+mkl & ImportError: cannot import name NUMPY_MKL

 

Recently, I wrote an article about “installation and use of Microsoft open source distributed high performance GB framework lightgbm”. Some partners encountered problems when installing Python environment. I personally tried to install it, and I really encountered a lot of problems“ After the problem of “installing the SciPy Library of Python under Windows 7” was solved, we encountered “importerror: cannot import name numpy”_ MKL. As follows:

[plain]

view plain

copy

D:\LightGBM\LightGBM\examples\python-guide> pythonsimple_ example.py

Traceback(mostrecentcalllast):

File”simple_ example.py”,line4,in< module>

importlightgbmaslgb

File”D:\Python27\lib\site-packages\lightgbm-0.1-py2.7.egg\lightgbm\__ init__. p

y”,line9,in< module>

from.basicimportDataset,Booster

File”D:\Python27\lib\site-packages\lightgbm-0.1-py2.7.egg\lightgbm\basic.py”,

line15,in< module>

importscipy.sparse

File”D:\Python27\lib\site-packages\scipy\__ init__. py”,line61,in< module>

fromnumpy._ distributor_ initimportNUMPY_ MKL#requiresnumpy+mkl

ImportE rror:cannotimportnameNUMPY_ MKL

Why is there such a problem

Reference“ http://stackoverflow.com/questions/37267399/importerror-cannot-import-name-numpy-mkl ”What I’m saying is

Because my “SciPy” is installed with “. WHL” file according to the method in “installation of Python’s SciPy Library under Windows 7”, and “numpy” is installed with “PIP install numpy” command

In fact, I used the “PIP install numpy” command to install. In fact, I downloaded a “. WHL” file, which is different from the download source of “SciPy”, but it doesn’t work

What to do?What to do

Unload numpy with the command “PIP install numpy” and MKL with the command “PIP install MKL”

Using the same source as “SciPy”, from“ http://www.lfd.uci.edu/~gohlke/pythonlibs/ ”Download the installation file of “numpy” (find the corresponding version)

Then use the command to install: PIP installnumpy {1.14.2 + MKL} cp35} cp35m} win_ AMD64. WHL

The problem is solved

How to Solve Windows setup encountered HResult: 0x80070422 Error

Today, the installation of smartrf flash programmer failed. I got the following error. I thought it was a problem with the installation package. I tried several versions but couldn’t solve it. After looking up the error code, I found that it was caused by the system installation service not being started. Just set it to be started manually or automatically, and then start the service.

HRESULT:0x80070422

Cause

Windows Modules Installer service was not started/does not exist

Resolution

Check Windows Modules Installer service:

Click Start button and type “services.msc” without quotes and hit enter

In the Services window locate Windows Modules Installer service.

Click right mouse button on Windows Modules Installer service and click Properties.

Check Service status string in window opened. It should be “Started”.

Startup type should be set to “Manual”.

 

Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

Using JProfiler to monitor JAVA program memory, the JVM reports an error.

A fatal error has been detected by the Java Runtime Environment:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000007718b81a, pid=8540, tid=0x0000000000000fa4

JRE version: Java(TM) SE Runtime Environment (8.0_162-b12) (build 1.8.0_162-b12)

Java VM: Java HotSpot(TM) 64-Bit Server VM (25.162-b12 mixed mode windows-amd64 compressed oops)

Problematic frame:

V [jvm.dll+0x13b81a]

Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

If you would like to submit a bug report, please visit:

http://bugreport.java.com/bugreport/crash.jsp

————— T H R E A D —————

Reason: Minidump is a small crash dump that can be written when a program crashes on Windows, which records summary information about the error that caused the crash so that developers can investigate the cause of the crash after the fact. hotSpot VM on non-server versions (also known as client versions) Windows chooses not to write out the minidump by default.

Solution: To make HotSpot VM write minidump on the client version of Windows, specify -XX:+CreateMinidumpOnCrash so that HotSpot VM will call the Windows MiniDumpWriteDump() function to write minidump.

Microsoft Visual C++ 14.0 is required [Two Method to Solve]

Microsoft Visual C++ 14.0 is required

solutions:

method 1:
install the third-party library corresponding to your own windows and python versions

Go to this website http://www.lfd.uci.edu/~gohlke/pythonlibs Find the package of the system corresponding to the installation library you need, download it and use pip to install it.

method 2:
install Microsoft Visual C + + build tools.
many articles have mentioned this address of Microsoft,
http://landinghub.visualstudio.com/visual-cpp-build-tools
But I can’t find a place to download here.

Samba windows 10 share: mount error(112): Host is down [How to Solve]

Windows 10 Share File://10.108.xx.xx/lnxvda-rf/ROBOT

[root@rhels73 robot]# mount -t cifs -o username=administrator,password=xxxxxx //10.108.xx.xx/lnxvda-rf/ROBOT /opt/robot
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

View the smb of the machine on which the share file is mounted

powershell execute

Get-SmbServerConfiguration | Select EnableSMB1Protocol, EnableSMB2Protocol

Set-SmbServerConfiguration -EnableSMB1Protocol $true

If an error is reported, execute Enable-WindowsOptionalFeature -Online -FeatureName smb1protocol

Refer to: https://support.microsoft.com/en-sg/help/2696547/how-to-detect-enable-and-disable-smbv1-smbv2-and-smbv3-in-windows-and

[root@rhels73 robot]#mount -t cifs -o username=administrator,password=xxxxxx//10.108.xx.xx/lnxvda-rf/ROBOT /opt/robot

[root@rhels73 robot]# mount -t cifs -o username=administrator,password=xxxxxx,vers=3.0 //10.108.xx.xx/lnxvda-rf/ROBOT /opt/robot
[root@rhels73 robot]# df -h
Filesystem Size Used Avail Use% Mounted on
127.0.0.1:/ 2.0G 1000M 1000M 50% /ctxmnt
tmpfs 184M 0 184M 0% /run/user/0
//10.61.xx.xx/builds 43T 41T 2.6T 95% /opt/build
//10.108.xx.xx/lnxvda-rf/ROBOT 100G 18G 83G 18% /opt/robot

Windows: SQL lab error “module object has no attribute sigalrm”

Change the utils.py file

It works after doing the following change (sorry for the massed up alignment, problems with github formatting):

def __enter__(self):

    try:

        #signal.signal(signal.SIGALRM, self.handle_timeout)

        #signal.alarm(self.seconds)

        pass

    except ValueError as e:

        logging.warning("timeout can't be used in the current context")

        logging.exception(e)
def __exit__(self, type, value, traceback):
    try:

        #signal.alarm(0)

    pass
        except ValueError as e:
            logging.warning("timeout can't be used in the current context")
            logging.exception(e)`

Windows server 2016 .NET Runtime Optimization Service CPU High

windows server 2016 is too laggy CPU in the new installation environment, which causes the machine to be stuck. Mscorsvw.exe is the mscorsvw.exe

.

Go to the service and find out that there are two services NGEN, among which 2.0 is disabled, which is estimated to be the impact of 4.0

After shutting down NGEN 4.0, the CPU comes down

Microsoft .NET Framework NGEN v4.0.30319_ X86

.NET Runtime Optimization Service v2.0.50727_ X86

The specific analysis is as follows:

MSDN English description

http://blogs.msdn.com/davidnotario/archive/2005/04/27/412838.aspx

What is mscorsvw.exe and why does it occupy the CPU of my computer?What is “new CLR optimization service”?Mscorsvw.exe is a precompiled. Net assemblies in the background. Once it’s done, it stops. Generally speaking, when you install the. Net distributor, it will take 5 to 10 minutes to precompile those high priority assemblies, and then wait until your computer is idle to deal with those low priority assemblies. Once it’s all processed, it will terminate and you won’t see mscorsvw.exe again. The important point is that when you see that the CPU is 100% occupied, this happens when it is in a low priority process, so it tries not to let other processes you are running preempt the CPU. Once all assemblies have been compiled, assemblies will be able to share memory pages across processes. Generally speaking, the hot start will be much faster at this time, so we will not discard your other processes. If you really want to remove mscorsvw.exe from your task manager, you can do this:

1. Close by command:

Ngen.exe executequeueditems, which enables all subsequent queued processes to start working

2. You can close this program by closing the service

Microsoft. Net runtime optimization service is a process of. Net runtime optimization service. Just turn off this service

mscorsvw.exe

Process file: mscorsvw.exe

Process name,. Net runtime optimization service

This program is a non essential process, but should not be terminated unless prospected to be causing problems

Process analysis:

Microsoft virtulstdio 2005 framework precompile tool

Process location: unknown

Purpose: background precompile. Net assemblies

Author: Microsoft

Of: Microsoft. Net framework

Safety level (0-5): 0 (n/a no danger, 5 most dangerous)

Spyware: no

Advertising software: no

Virus: no

Trojan: no

System process: Yes

Application: no

Background program: Yes

Use access: no

Internet access: no

In addition, information about ngen.exe can be found on the official website:

. net framework tools

Native image generator (NGEN. Exe)

Update: November 2007

Native image generator (NGEN. Exe) is a tool to improve the performance of managed applications. Ngen.exe creates native images (files that contain compiled processor specific machine code) and installs them into the native image cache on the local computer. The runtime can use native images from the cache instead of compiling the original assembly with a just in time (JIT) compiler

In. Net Framework version 2.0, ngen.exe has changed a lot

When you install an assembly, its dependencies are also installed, simplifying the syntax of ngen.exe

You can now share native images between application domains

You can use the new operation update to recreate the invalid image

Operations can be deferred by services on the computer that use idle time to generate and install images

Some of the factors that cause invalid images are eliminated

For additional information about how to use ngen.exe and native image services, see native image services

this paragraph is reproduced from: https://blog.csdn.net/superhoy/article/details/6322210

Process file: mscorsvw. Exe
process name:. Net runtime optimization service

Information searched online

Net runtime optimization service uses mscorsvw.exe, which is a collection of. Net assemblies precompiled in the background. Once it’s done, it stops. Generally speaking, when you install the. Net distributor, it will take 5 to 10 minutes to precompile those high priority assemblies, and then wait until your computer is idle to deal with those low priority assemblies. Once it’s all processed, it will terminate and you won’t see mscorsvw.exe again
ngen.exe executequeueditems enables all processes waiting in the queue to start working
the reason why mscorsvw.exe takes up a lot of CPU
when you see that the process of mscorsvw.exe takes up 100% of CPU, it is in a low priority process, so it tries not to let other processes you are running preempt CPU. Once all assemblies have been compiled, assemblies will be able to share memory pages across processes. Generally speaking, the hot start will be much faster at this time, so we will not discard your other processes

Solution:

CMD command:

① cd C:\Windows\Microsoft.NET\Framework\v4.0.30319

②ngen.exe executequeueditems

③ Restart the computer after execution

When you finish and restart your computer/server, your CPU load should feel better