Author Archives: Robins

The imported project “c:\Microsoft.Cpp.Default.props” was not found

npm is installed in this situation.

Theme:

Detection Method:

1, download Visual C++ 2015 Build Tools

Downloaded 38142142;: http://go.microsoft.com/fwlink/?LinkId=691126&_hstc=268264337.464d867a453cb3e0785b9f7f82b81bb9.1517626516073.1519263951770.1519269195452.4&_hssc=268264337.1.1519269195452&_hsfp=3527706607&fixForIE=.exe

2.download GTK, because you need to load some of it, download complete to C:\GTK immediately; download 3814214;(64 seconds): http://ftp.gnome.org/pub/GNOME/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip

3. This is a very dependent step, inspiring cmd command, input set VCTargetsPath=C:\Program Files (x86)\MSBuild\ Microsoft.Cpp \v4.0\v140;

net.sf.json .JSONObject maven20381;- 36182;

The last time you need to keep it, there are only two versions of jdk: json-lib-2.1-jdk13.jarand json-lib-2.1-jdk15.jar

: <   <dependency&>

: <� � � � � → <groupId&> net.sf.json -lib</groupId&>

: <     <artifactId&>json-lib</artifactId&>

: <     <version&>2.4</version&>

: <    <classifier&>jdk15</classifier&>

: <  </dependency&>

[Solved] Command “python setup.py egg_info” failed with error code 1

Solve the problem of Command “python setup.py egg_info” failed with error code 1

In the execution pip install -r requirements.txtencountered an error when:

Command "python setup.py egg_info" failed with error code 1

The solution is to update setuptools and pip:

pip install --upgrade setuptools
python -m pip install --upgrade pip

MAC OS install python3 Error: Permission denied @ dir_s_mkdir-/usr/local/Frameworks

The python version that comes with mac os is 2.7, because it needs to be upgraded to python3. The process is as follows:
execute:

brew install python3

In theory, the installation can be successful by executing this command, but the following error is reported:


The reason is that /usr/local/Frameworks does not exist, the solution:

sudo mkdir /usr/local/Frameworks
sudo chown $USER /usr/local/Frameworks

Then re-run `brew install python3` to install successfully.

Rendering Problems The following classes could not be instantiated: xml layout file could not be loaded

Rendering Problems The following classes could not be instantiated:
- android.support.v7.app.WindowDecorActionBar (Open Class, Show Exception, Clear Cache)
 Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE.  If this is an unexpected error you can also try to build the project, then manually refresh the layout.
 
java.lang.NullPointerException
	at android.support.v7.app.WindowDecorActionBar.getDecorToolbar(WindowDecorActionBar.java:241)
	at android.support.v7.app.WindowDecorActionBar.init(WindowDecorActionBar.java:197)
	at android.support.v7.app.WindowDecorActionBar.(WindowDecorActionBar.java:189)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:465)
	at org.jetbrains.android.uipreview.ViewLoader.loadClass(ViewLoader.java:172)
	at org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:105)
	at com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadView(LayoutlibCallbackImpl.java:186)
	at com.android.layoutlib.bridge.bars.AppCompatActionBar.(AppCompatActionBar.java:89)
	at com.android.layoutlib.bridge.impl.Layout.createActionBar(Layout.java:238)
	at com.android.layoutlib.bridge.impl.Layout.(Layout.java:150)
	at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:301)
	at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:429)
	at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:389)
	at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:548)
	at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:533)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:966)
	at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:533)
	at com.android.tools.idea.rendering.RenderTask.lambda$inflate$72(RenderTask.java:659)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Modify the res/values/styles.xml directory:

style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">

for:

<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">

How to Fix Word Opening Error: the resource dll cannot be loaded

“The resource dll can not be loaded” always pops up when opening word

 

How to Fix:

  • Windows Key + R.
  • Type “winword /safe”.
  • Press Enter.
  • Check and make sure no error dialog appears.
  • Go to File > Options > Add-In.
  • At the very bottom of the settings page, there’s a dropdown menu. Select “COM Add-ins”.
  • Press “Go… “button.
  • Find any Add-ins that were enabled, and unclick the checkmarks next to them.
  • Press OK.
  • Close Word 2016.
  • Reopen Word 2016 normally.
  • That’s all

[Solved] Warning: using directive refers to implicitly-defined namespace ‘std’

Error: main.cpp: warning: using directive refers to implicitly-defined namespace ‘std’

If you see the following error when trying to compile a C++ application:

 

main.cpp: : : warning: using directive refers to implicitly-defined namespace 'std'

then that means you do not have any header file inclusion that uses std namespace.

You can fix this warning by including a C++ header file that uses a std namespace otherwise the compile will not know about std namespace.

How to Solve this Error:

Very simple, just include a c++ header file, as follows:

#include <iostream>

ERROR: JDWP Unable to get JNI 1.2 environment, jvm

How to solve this problem has been for a long time ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/ share/back/util.c:820]

How to Solve This Error:

This problem is caused by the debug timeout, if you debug running fast, it seems that this problem will not occur, if the time process is caused by too many single step jumps, this problem will occur. Anyway, you can add

System.exit(0);

at the end of the main method to solve this problem.

[Solved]AttributeError: module ‘urllib’ has no attribute ‘quote’

AttributeError: module’urllib’ has no attribute’quote’ solution.
In crawling Google pictures, the program reported an error. Due to the different versions of python, the problem of AttributeError: module’urllib’ has no attribute’quote’ appeared
as long as the quote Just add parse before

url_init = url_init_first + urllib.quote(keyword, safe='/')
url_init = url_init_first + urllib.parse.quote(keyword, safe='/')

[How to Solve]AttributeError: module ‘scipy’ has no attribute ‘io’

The problem of io loading .mat data and imread reading pictures under Scipy

When we need to load MATLAB’s .mat file, if we use:

import scipy.misc 
import scipy.io
import os
cwd  = os.getcwd()
data = scipy.io.loadmat(cwd + "/data/imagenet-vgg-verydeep-19.mat")

Will report an error:
AttributeError: module’scipy’ has no attribute’io’

 

The reason for this may be that the submodules under scipy cannot be imported directly.

from scipy import io

Finally changed to:

import scipy.misc 
from scipy import io
import os
cwd  = os.getcwd()
data = io.loadmat(cwd + "/data/imagenet-vgg-verydeep-19.mat")

problem solved.

Also use the imread function under Scipy.misc,

import scipy.misc 
cwd  = os.getcwd()
VGG_PATH = cwd + "/data/imagenet-vgg-verydeep-19.mat"
IMG_PATH = cwd + "/data/cat.jpg"
input_image = imread(IMG_PATH)

appear:
AttributeError : ‘module’ object has no attribute’imread ‘

This is sometimes because you do not have pillow dependency packages

pip install pillow

This is how I solved it.