Category Archives: How to Fix

Windows10解决ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed

Windows solves ImportError: DLL load failed: A dynamic link library (DLL) initialization failed

was all used to play paddlepaddle, because recently I needed to collect data, and the program for data collection needed to install TensorFlow, so version 15.0.0 of TensorFlow was installed, but an error occurred when I was using it:

, which was caused by the computer CPU not supporting AVX instruction.

want to see if your computer supports avx can use CPU -z view, lu master line

there are two solutions:

  • drop TensorFlow, uninstall PIP uninstall TensorFlow , and then install version 1.5 tf PIP install TensorFlow ==1.5.0. If the PIP can’t find 1.5.0, then it is necessary to go to the official website to find 1.5.0 wheel
  • . If you are a person who doesn’t want to be healthy (such as me), enter tensorflow-windows-wheel, select sse2 instruction version wheel to download, and then PIP install < filename.whl> , at this point the installation is complete.

test:

import tensorflow as tf
sess = tf.Session()
a = tf.constant(1)
b = tf.constant(2)
print(sess.run(a+b))

I use the second method here, into that github, you can find the sse instruction version of TensorFlow, directly download and install it. I downloaded version 1.15 here, this one includes the GPU version, so the runtime may be wrong. If you are using only the CPU, you can ignore this error.

Git solves the problem of failed: http request failed

installation requirements:

> # yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc

> # yum Install GCC Perl-extutils-Makemaker

uninstall Centos built-in git1.7.1:

check the version with git – version, Cento6.5 should come with git version 1.7.1

> # yum remove git

download git2.2.1 and add git to your environment variable

> Wget # https://github.com/git/git/archive/v2.2.1.tar.gz

> # tar ZXVF v2.2.1. Tar. Gz

> # CD git – 2.2.1

> # make configure

> # ./configure –prefix=/usr/local/git –with-iconv=/usr/local/libiconv

> # make all doc

> # make install install-doc install-html

> # echo “export PATH=$PATH:/usr/local/git/bin” > > /etc/bashrc

> # source /etc/bashrc

installation problem:

/bin/sh: line 1: xmlto: command not found

make[1]: *** [git-add.1] Error 127

make[1]: Leaving directory `/root/src/git/Documentation’

make: *** [doc] Error 2

xmlto 4.2 installation

yum install xmlto

view version no

> # git –version

> The git version 2.2.1

Solutions to ADB failed to start daemon

a lot of people have this problem

adb server is out of date. killing…
ADB server didn’t ACK
* failed to start daemon *

baidu, there are all kinds of perfect solutions, that is, 5037 port is occupied, according to the online steps to operate

netstat -ano | findstr “5037”

find the corresponding process number and stop the corresponding process in task manager.

but after using this method to start adb, the error is still reported as above, and then to find the port occupying 5037 is adb. Exe.

right-click in the process and open the location of the process, and find that the process of adb. Exe is the adb that I installed in Genymotion (D:\Program Files\Genymobile\Genymotion\tools
adb. Exe), and it is this process that preempts the port of 5037.

enter the Genymotion setting path interface, select ADB TAB, the first is to use the default Genymotion ADB, select the second, the second is to use ADB. It is ok to restart and start

reproduced in: https://www.cnblogs.com/Maggie2019/p/11120642.html

Failed to find target with hash string”android-21″ in:D:\AndroidVersionSdk

encountered this problem when I imported the project today. After a long time, I finally finished

find your previous project open, copy the contents of build.gradle into this project, if there is no project before, you can refer to my previous blog to solve

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.2'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}


Failed to get D-Bus connection: No such file or directory

when running centos7 image in docker, error
[root@2181bc14e47f /]# systemctl list-units
Failed to get d-bus connection: No such file or directory
d-bus allows the program to register on it to provide services to other programs. It also provides the possibility for the client program to query what services are available. Applications can also be registered to wait for kernel events, such as hardware hotplug. It is a three-tier inter-process communication (IPC) system, including:
function library libdbus, used for calling contacts and interacting messages between two applications. A message constructed based on libdbus, the bus daemon can connect to multiple applications simultaneously and can route messages from one application to 0 or more other programs. A series of Wrapper libraries based on specific application frameworks. D-bus is designed for two specific situations:
communication between two desktop applications within the same desktop session, allowing the desktop session to be integrated as a whole to solve problems related to the process lifecycle. Communication between a desktop session and an operating system, where the operating system generally includes the kernel and system daemons.
after the docker exit
$docker run — br> $docker run –privileged/ti-e “container=docker” centos7-base /usr/sbin/init
-privileged docker introduction, using this parameter, the root in the container has the real root privilege, otherwise, the root in the container is just an external ordinary user privilege. The container that the Privileged starts can see a lot of equipment on host and mount can be performed.
even allows you to start a docker container in a docker container. -e “container=docker” sets the environment variable that processes inside the container can get directly.
can now execute the systemctl command

/root @ bd5aa199dbc9 ~ # systemctl status SSHD
low SSHD. Service – the OpenSSH server daemon
the Loaded: the Loaded (/ usr/lib/systemd/system/SSHD. Service; enabled; Vendor pre: enabled)
Active: inactive (dead)
Docs: man: SSHD (8)
man:sshd_config(5)

Runtime Error 1004 Method ‘VBProject’ of object ‘_Workbook’ failed

症状

在Enterprise Performance Foundation Administrator中,当尝试使用位于“Configuration Rules”的“Create from Spreadsheet”按钮导入维度成员时;“维度”比;”成员”,以下错误发生时,您打开WebADI.xls

运行时错误’1004′:

方法’VBProject’的对象’_Workbook’失败

你在打开电子表格时选择了“启用宏”按钮。另外,在Excel 2003中,如果你打开“工具”>“宏”比;”安全…”,安全级别为”中等”.

解决方案

在Excel 2003中,转到“Tools”>“宏”比;“安全”,并选择“可信来源”选项卡。选中“信任访问Visual Basic项目”旁边的复选框。

(注意:还应选中“信任所有已安装的外接程序和模板”框。
在Excel 2007中,使用以下导航:

办公室李

    <>点击按钮在左上角李 <李>单击Excel选项按钮李 <>李在左边,点击信任中心李 <李>单击信任中心设置按钮李 <>李在左边,点击宏设置李 <李>单击“信任访问VBA项目对象模型”李

    转自:https://support.oracle.com/CSP/main/article?cmd=show&类型= NOT& id = 376013.1

Installation error: install_ FAILED_ VERSION_ DOWNGRADE

1. Problem tip

2. Solution

is because you have installed an application with the same package name on your phone or emulator, and the current versionCode you are running is less than the versionCode of the application you have installed, so you will be prompted that the installation fails!

solution:

1. Uninstall the Apk that has been installed before.

2. Raise the value of android:versionCode in the manifest profile!

resources: http://stackoverflow.com/questions/13808599/android-emulator-installation-error-install-failed-version-downgrade

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0

1。问题描述

利用maven导包,运行Mybatis案例的主要函数时报的错。

[ERROR] 执行目标org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (default-cli)项目mybatis_annotation:命令执行失败。:进程退出错误:1(退出值:1)->
[ERROR]
[ERROR]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。
[ERROR]使用-X开关重新运行Maven以启用完整的调试日志记录。
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

2。解决办法(三种可参考的方法)

方法一:<字体>在pom.xm中添加以下内容——<代码> exec-maven-plugin

 <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.6.0</version>
<!--                <executions>-->
<!--                    <execution>-->
<!--                        <goals>-->
<!--                            <goal>java</goal>-->
<!--                        </goals>-->
<!--                    </execution>-->
<!--                </executions>-->
                <configuration>
                    <classpathScope>test</classpathScope>
<!--                    <mainClass>com.itheima.test.MybatisTest</mainClass>-->
                </configuration>
            </plugin>
        </plugins>
    </build>

annotation section can not add

method 2: modify code

note: this error will sometimes occur after adding ** check the code section of the main function for errors. ** if the resource is closed before the method is called, etc.

method three: reference source inside the. Idea file to replace their own creation maven project. Idea file.

can also solve the problem of confused Chinese code, which can be seen as the reason for the initial configuration of idea. I haven’t found the specific configuration method yet, please inform me if there are specific configuration change steps or other reasons. Thanks for

here


. Analyze the reason

I replaced the main function with @test to run the Test method. The code can run normally, but it still won’t work if I replace it with the main function again. Two plugins need to be introduced here: maven-compiler-plugin and Exec-Maven-Plugin.
**maven-compiler-plugin: ** compiling Java code, you can specify the JDK version of the project source code, the compiled JDK version, and the code
exec-maven-plugin : to execute the class file, where the plug-in configuration should specify the path to execute the class. Only the exec-maven-plugin

is concerned here
4. Call database Chinese garbled code problem

1. The first type: in setting-> maven-> Runner-> VM Options
enter -dfile.encoding =gb2312
the first method is not bad, and the second method is not good, but I think it will be used in other places, code here first
2. The second type: po. XML type to add

<properties>
	<!-- 文件拷贝时的编码 -->
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
	<!-- 编译时的编码 -->
    <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
</properties>

5. Internal label analysis

1.< goal > The exec consists of two goals :exec :exec and exec: Java. How should you choose?First, you need to remember that exec:exec is always more powerful and flexible than ExEC: Java, except that the main difference between the two is in thread management: Exec: Exec always starts a new thread and exits (closes the application) from the VM when only daemon threads are left. For exec: Java, when all non-daemon threads terminate, the daemon thread is interrupted by Joine or interrupt and should not be closed. But for the average user, the difference doesn’t matter. For both options, in general, if your project is very easy to start without setting JVM parameters, system properties, or command-line arguments, use exec: Java,

2.< classpathScope >

compile
is compile by default, so we don’t configure anything, so we just mean compile. Compile means that the dependent project needs to participate in the compilation of the current project. Of course, subsequent tests, the run cycle also participate in the compilation, so it is a strong dependency. When packing, you usually need to include it.

test
scope for test indicates that the dependent project only participates in test-related work, including compiling and executing the test code. Typical examples are junit.

Runntime indicates that the dependent project does not need to participate in compiling the project, but it does need to participate in the later test and run cycles. Compared to compile, we skip compilation, which, frankly, isn’t very different from compile in terminal projects (non-open source, internal enterprise systems). Relatively common implementation such as JSR×××, the corresponding API JAR is compile, the specific implementation is runtime, compile only needs to know the interface is enough. A good example is the Oracle JDBC driver package, which generally has a scope of runntime. In addition, the dependency of runntime is usually used with optional, which is true. I can do it with A, or I can do it with B.

Provided provided means you can package it without having to package it, and other facilities (Web Container) provide it. In fact, this dependency can theoretically be involved in compiling, testing, running, and so on. So we compile, but we do exclude in the packaging phase.

In terms of engagement, it also provides the same. However, dependencies are not captured from maven repository, but from local file system, which must be used with the systemPath attribute.

Failed to execute ‘getComputedStyle’ on ‘Window’: parameter 1 is not of type ‘Element’.

using jquery. Datetimepicker. Full. Min. Js error

error operation procedure:

operation time control, switch to other pages, open the console, pull the console zoom size, this time will find that the error

The

error was caused because, while dragging the console, the root element of the control could not be retrieved and the control could not be located

view error message

window.getComputedStyle(e), prompt e is not an element, print null

in the source code to add the following code, solve the problem

if(!e) { 

    return false;

} 


Completely solve install_ FAILED_ UPDATE_ Incompatible installation error, the installation package is not consistent with the previous installation package signature on the device

thoroughly resolves the installation error of INSTALL_FAILED_UPDATE_INCOMPATIBLE installation packages signed with those on previous devices

ps: I finally changed the package name… Don’t offer such services such as nacionbolinblog/p/5402652.html

sometimes development problems: will encounter in the company work, the company’s IDE can run the program, copy the program home, run again, will appear the following error:

INSTALL_FAILED_UPDATE_INCOMPATIBLE

reason: your installation package is not signed with the previous installation package on the device. At Baidu, some people said: running too many times will also appear above problems, but I have not encountered.

simple processing:

if your program is just a running game, not a very important program, then you can just change the package name. I’ve done this before.

steps: as shown in figure:

but in actual work, we are not allowed to change the package name, such as associated with WeChat, alipay, baidu map, etc., our package name is submitted to their official website.

so what do we do?

provides a crappy way to compare: if you’re testing the phone, format the test phone.

the following is a more complete screening process:

problem: when debugging, it USES the default signature (that is, the debug signature), while when exporting, it USES its own debug signature, which cannot be installed on the same phone.

solution:

if your previous program USES the default signature (i.e., debug signature), once the new signature application will not be able to overwrite the installation, you must uninstall the original program to install.

– & gt; Everyone else uninstalls and installs, but my phone doesn’t.

– & gt; Me: Uninstall the old one, also root, and delete the data/data/ package name.

– & gt; Installation tip: Replace app, sales assistant 1.0 replace 1.0.. Prompt program not installed.

– & gt; Does the system hold the relevant package name and signature information?

– & gt; If be, also Baidu does not put where this information.

continue to baidu: find the package name information stored in the/data/system/packages. The XML, need root cell phone only can see the file from a mobile phone.

– & gt; Just delete the package name information that the application contains.

step:

  1. uninstall the previous installation package with “adb uninstall package name”, then try to install it, if not, proceed to the next step.

  2. in/data/system/packages. The XML file containing the application’s package name information

    my practice: 2.1 root mobile phone, is my meizu, directly to the root. After installing RE manager, enter/data/system/packages. The XML copy the file to the other place, share to the computer, computer modified, covered in the original file.

    reference practice: my mobile phone does not work. 2.2 use adb pull command to export the file, modify it, and import it with adb push.

    2.3 the above steps do not work, first adb remount (means to remount the system partition) and then adb pull command export the file, complete the modification, and import with adb push.

    2.4 the above steps do not work,

     ---> 执行  adb shell  命令  -- 执行的是Linux的命令
    
     ---> su (手机应该会弹出权限信息提示~~告诉你需要管理权限,并确认)  -- 获得超级权限
    
     ---> ls -l (查看当前目录下所有可见文件的详细属性)  drwxrwx--x   (d--文件夹)
    
    
    
           这边怎么跑出一个system?回答:没有听说过Android除了Root还有system权限  你说的是user权限吧
    
           参考:http://bbs.csdn.net/topics/360175988
    
     ---> mount -o remount,rw /data (重新将文件夹为可读可写。)  我的手机出现( Operation not permitted),没办法下一步
    
     ---> chmod 777 /data 
    
     或者参考别人的做法:http://blog.sina.com.cn/s/blog_4ba5b45e0102ek4k.html 
    

    2.5 does not work, using the 2.1 method.

  3. reinstall the new application can be

reference: http://blog.csdn.net/philofly/article/details/8090210

Samba error: session setup failed: NT_ STATUS_ LOGON_ FAILURE

On the command line, type the command:

~ $smbclient – L \ \ 127.0.0.1

session setup failed: NT_STATUS_LOGON_FAILURE

this is because the user ID executing the smbclient command is not a user of the samba service. The solution is as follows:

add the changed user ID to samba

~$smbpasswd -a user ID

set password as required

so that the user ID becomes a user of the samba service, enter the command

~ $smbclient – L \ \ 127.0.0.1

Domain = = [Example] the OS/Unix Server = [Samba 3.6.3]

Sharename Type the Comment

— — — — — — — — — — — — — — — — —

print $Disk Printer Drivers

cdrom Disk Samba server’s cd-rom

Music Disk Music files

IPC$IPC IPC Service (Samba File Server)

Domain = = [Example] the OS/Unix Server = [Samba 3.6.3]

Server Comment

— — — — — — — — — — — — — — — –

Test1 Samba File Server

Test2

Workgroup Master

— — — — — — — — — — — — — — — –

Example Test2

problem solved.



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



1. Session setup failed: NT_STATUS_LOGON_FAILURE
this error means that the user is wrong, it may be that the user does not exist, it may also be that the password is wrong, or the user exists in one of the users of samba and the system,
in a word is that the user and password have problems
. The NT_STATUS_BAD_NETWORK_NAME
error indicates that the Shared directory does not exist, or that the permissions are not right
, as in my case. I have a user named xiaowang. In the home directory of xiaowang, I created a new share directory,
, and added share to smb.conf to make it myshare. However, I have designated the valid user of this Shared directory as guest(also a user in the system). Now I have the share directory under home.

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

the solution in the latest centos is to run the following command to resolve the samba NT_STATUS_BAD_NETWORK_NAME problem:
setsebool -p samba_enable_home_dirs=1

viewing the logs caused by the samba process being blocked by SELinux from accessing the home directory:
Feb 26 22:56:22 igosvr setroubleshoot: SELinux is preventing the samba daemon from reading users’ home directories. For complete SELinux messages. run sealert -l 6e7522fa-f56c-400e-9e04-3722033573b5


confirm that the SMB service above REDHAT has started and IPTABLES has closed