
Add before header file:

import sys
sys.path.append("../")
from pointnet.dataset import ShapeNetDataset
from pointnet.model import PointNetCls

Add before header file:

import sys
sys.path.append("../")
from pointnet.dataset import ShapeNetDataset
from pointnet.model import PointNetCls

Case 1 is also the case of more on-line): (graphics card) insufficient memory
At this time, we can adjust the memory in pycharm:
Press Shift + Ctrl + A to search for 

where:
XMS in xms128m refers to the memory required for program startup, 128M is the size
xmx1011m in Xmx, Xmx refers to the memory required for program running, 1011m is the size
increase it. Of course, your hardware should be able to withstand this setting
Phenomenon:
code
# content is a table data of byte type
sheet = pyexcel.get_sheet(file_type='xlsx', file_content=content)
report errors
xlrd.biffh.XLRDError: Excel xlsx file; not supported
reason
The installed pyexcel package version is too old
pyexcel-xls==0.5.8
pyexcel==0.5.9.1
pyexcel-xlsx==0.5.6
Solution:
Updated version (latest version)
pyexcel==0.6.7
pyexcel-io==0.6.4
pyexcel-xls==0.6.2
pyexcel-xlsx==0.6.0
Error:
21:55:14 update users set realname=‘Lisi2’ where username=‘ls’ Error
Code: 1175. You are using safe update mode and you tried to update a
table without a WHERE that uses a KEY column. To disable safe mode,
toggle the option in Preferences -> SQL Editor and reconnect. 0.000
sec
Solution:
Execution of this statement will result in: SET SQL_SAFE_UPDATES=0;
An error occurs when importing data using sqoop:
Exception in thread “main” java.lang.NoClassDefFoundError: jline/console/completer/ArgumentCompleter$ArgumentDelimiter
Caused by: java.lang.ClassNotFoundException: jline.console.completer.ArgumentCompleter$ArgumentDelimiter
Solution:
Hadoop cannot find the jline package. Go to the Lib directory of hive to find jline.jar, put it in/share/Hadoop/yarn/Lib in Hadoop, and then execute it.
Ploar is not introduced, an error will be reported in the title. At this time, just introduce this dependency:
require("echarts/lib/component/polar")
Mac OS 11.5.2, cmake default compiler appleclang 12.0.5
Make keeps reporting errors after compiling
fatal error: 'omp.h' file not found
#include<omp.h>
The reason is that a.cpp file introduces OpenMP, OMP.H
It can be compiled successfully through G + +, but the make default clang compilation in MAcc is not successful. In other words, it cannot be compiled through cmake on Mac
Try to resolve:
Adding before the project line of cmake has no effect
SET(CMAKE_C_COMPILER "/usr/bin/gcc")
SET(CMAKE_CXX_COMPILER "/usr/bin/g++")
On the command line, the export cxx = “usr/bin/G + +” variable also has no effect
Solution
Brew install libomp
brew install libomp
Change the path corresponding to OMP. H where. CPP introduces OMP. H
#include</usr/local/opt/libomp/include/omp.h>
explain
Gradle project + Scala 2.11 + java8 + Flink 1.12
Error code:
kafkaSource.assignTimestampsAndWatermarks(WatermarkStrategy
.forBoundedOutOfOrderness[JSONObject](Duration.ofSeconds(10)))
Error message: static methods in interface require – target: jvm-1.8
From the perspective of error reporting, it is an error reported by Scala trying to call a static method in the java interface. However, JDK1.8 is used for compiling and packaging in the idea configuration
Modifying the following idea configuration is not valid:

So think about another breakthrough and add the following configuration to the build.gradle file to solve the problem.
project.tasks.compileScala.scalaCompileOptions.additionalParameters = ["-target:jvm-1.8"]
project.tasks.compileTestScala.scalaCompileOptions.additionalParameters = ["-target:jvm-1.8"]
Existing problems:
after Django creates a new project, when running the service command “Python manage. Py runserver”, an error is reported: NameError: name ‘OS’ is not defined
Solution:
find the setting.py file in the new project path and add “import OS” to it
Note: the method to judge whether the project is successfully created is if something similar to“ http://127.0.0.1:8000/ ”The project address, and “the install worked successfully! Integrations!” is displayed in the browser.
This problem occurs when installing packages with PIP
The solution is to update setuptools and pip
pip3 install --upgrade setuptools

pip3 install --upgrade pip
Use
when MySQL inserts a large amount of data and needs to compare and duplicate Db($table)-> where($where)-> find();
In this case, an error will be reported: sqlstate [08004] [1040] too many connections
This is mainly due to too many database connections
resolvent:
Introduce DB class
use think\Db;
The query statement is changed to:
Db::table($table)-> where($where)-> find();
That’s it