Category Archives: Error

[Solved] A-LOAM Ceres Compile Error: error: ‘integer_sequence’ is not a member of ‘std‘

The reason may be that Ceres did not specify the C + + version, but a-loam did. So make a-loam consistent with Ceres

Add the following code to cmakelists of a-loam

# Set the C++ version (must be >= C++14) when compiling Ceres.
#
# Reflect a user-specified (via -D) CMAKE_CXX_STANDARD if present, otherwise
# default to C++14.
set(DEFAULT_CXX_STANDARD ${CMAKE_CXX_STANDARD})
if (NOT DEFAULT_CXX_STANDARD)
  set(DEFAULT_CXX_STANDARD 14)
endif()
set(CMAKE_CXX_STANDARD ${DEFAULT_CXX_STANDARD} CACHE STRING
  "C++ standard (minimum 14)" FORCE)
# Restrict CMAKE_CXX_STANDARD to the valid versions permitted and ensure that
# if one was forced via -D that it is in the valid set.
set(ALLOWED_CXX_STANDARDS 14 17 20)
set_property(CACHE CMAKE_CXX_STANDARD PROPERTY STRINGS ${ALLOWED_CXX_STANDARDS})
list(FIND ALLOWED_CXX_STANDARDS ${CMAKE_CXX_STANDARD} POSITION)
if (POSITION LESS 0)
  message(FATAL_ERROR "Invalid CMAKE_CXX_STANDARD: ${CMAKE_CXX_STANDARD}. "
    "Must be one of: ${ALLOWED_CXX_STANDARDS}")
endif()
# Specify the standard as a hard requirement, otherwise CMAKE_CXX_STANDARD is
# interpreted as a suggestion that can decay *back* to lower versions.
set(CMAKE_CXX_STANDARD_REQUIRED ON CACHE BOOL "")
mark_as_advanced(CMAKE_CXX_STANDARD_REQUIRED)

There are other methods as follows, but I didn’t try

Modifying cmake: set the C + + standard:

set(CMAKE_CXX_FLAGS "-std=c++11")

Change to

set(CMAKE_CXX_STANDARD 11)

SpringBoot IntegratenRedis Annotations and access error: EL1008E: Property or field ‘getListMember‘ cannot be found on object of type

Problem Description.
Springboot integration redis annotations, request access with the following error:

org.springframework.expression.spel.SpelEvaluationException: EL1008E:
Property or field ‘getListMember’ cannot be found on object of type
‘org.springframework.cache.interceptor.CacheExpressionRootObject’ –
maybe not public or not valid?



Reason: missing single quotes in redis tag

Solution:
Add single quotes to the redis tag

[Solved] kubeflow pipeline visualization component Error: WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager…

Problem description

time="2022-05-03T16:20:34.622Z" level=info msg="capturing logs" argo=true
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: 
https://pip.pypa.io/warnings/venv
[KFP Executor 2022-05-03 16:20:36,372 INFO]: Looking for component `markdown_vis` in --component_module_path `/tmp/tmp.b0lqT6V169/ephemeral_component.py`
[KFP Executor 2022-05-03 16:20:36,372 INFO]: Loading KFP component "markdown_vis" from /tmp/tmp.b0lqT6V169/ephemeral_component.py (directory "/tmp/tmp.b0lqT6V169" and module name "ephemeral_component")
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.8/site-packages/kfp/v2/components/executor_main.py", line 104, in <module>
    executor_main()
  File "/usr/local/lib/python3.8/site-packages/kfp/v2/components/executor_main.py", line 94, in executor_main
    executor_input = json.loads(args.executor_input)
  File "/usr/local/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.8/json/decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
time="2022-05-03T16:20:36.460Z" level=error msg="cannot save artifact /tmp/outputs/mlpipeline_ui_metadata_path/data" argo=true error="stat /tmp/outputs/mlpipeline_ui_metadata_path/data: no such file or directory"
Error: exit status 1

Solution:

The component in version of client V1 is incompatible with the version of client V2, so the mode parameter is added when the client submits the task

kfp.Client().create_run_from_pipeline_func(markdown_pipeline, mode=kfp.dsl.PipelineExecutionMode.V2_COMPATIBLE,arguments={})

DM backup database Error: [-7169]:bakres failed to communicate with DMAP message.

[error reporting]

SQL> backup database backupset 'dm3bak01';
backup database backupset 'dm3bak01';
[-7169]:bakres failed to communicate with DMAP message.
Used time: 00:00:10.033. execution number:0.

[log content]

2022-04-27 09:08:01 [CMD] database P0000048762 PPID4294967295  backup database backupset 'dm3bak01';


2022-04-27 09:08:01 [CMD] database P0000048762 PPID4294967295  BACKUP DATABASE [dm03]
2022-04-27 09:08:01 [INFO] database P0000048762  PPID4294967295  CMD START....
2022-04-27 09:08:01 [INFO] database P0000048762  PPID4294967295  BACKUP DATABASE [dm03],execute......
2022-04-27 09:08:01 [INFO] database P0000048762  PPID4294967295  check limits of huge data
2022-04-27 09:08:01 [INFO] database P0000048762  PPID4294967295  CMD CHECK LSN ......
2022-04-27 09:08:01 [INFO] database P0000048762  PPID4294967295  adjust checkpoint lsn to maximal apply lsn 0
2022-04-27 09:08:11 [INFO] database P0000048762  PPID4294967295  connect to dmap with portnum[4236], tsk_num: [4], code: [-7169].
2022-04-27 09:08:11 [WARNING] database P0000048762  PPID4294967295  CMD END.CODE:[-7169], DESC:[bakres fails to communicate with DMAP messages], COST:[00:00:10]

[reason for error reporting]
because dmapservice is not started or there is a problem with dmapservice

[problem handling]

[pwd:/u01/dm8/dmdbms/bin]$ ./DmAPService start
DmAPService (pid 101899) is running.    # I find it is started

[pwd:/u01/dm8/dmdbms/bin]$ ./DmAPService restart    # try to restart
Stopping DmAPService:                                      [ OK ]
Starting DmAPService:                                      [ OK ]

[pwd:/u01/dm8/dmdbms/bin]$ !disql
SQL> backup database backupset 'dm3bak01';      # backup successfully
The operation has been executed
Time used: 00:00:03.660. Execution number: 55700.

R language Use setwd() function Error [How to Solve]

When using R language, an error may appear: unable to set the working directory

At this time, you can manually switch in rstudio:

Workspace window, files → three dots, click; The folder window will appear. At this time, manually switch to the working directory you want to go to:

Click the setting icon and select “set as working directory” to set the working directory:

At this time, the working directory is detected and the switching is successful

getwd()
[1] ".../Documents/R/Data"

[Solved] Elasticsearch Error: received plaintext http traffic on an https channel, closing connection…

Elasticsearch reports an error: received plaintext http traffic on an https channel, closing connection Netty4HttpChannel.

After elasticsearch is started, enter the address in the browser http://localhost:9200/

An error reporting:

received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200

As shown in the figure:

The reason is that Elasticsearch has started the security authentication under windows. Although it was started successfully, it can not be accessed http://localhost:9200/

Failed.

Solution:

Locate the elasticsearch.yml configuration file under the config/ directory, change the security authentication switch from true to false to achieve password-free access, after modifying both to false.

You can solve the problem and open it again http://localhost:9200/

The content is displayed normally:

[Solved] Jupyter Notebook Error: IOPub data rate exceeded

When writing code with jupyter notebook, there is no output result in print, as shown in the following figure

Don’t panic. This is not a code error, but the IOPub data rate is limited, that is, jupyter limits the output

resolvent

1. CMD open the command line window and enter: jupyter notebook –generate-config (there is a space after the notebook)

If this happens, enter jupyter notebook –generate-config in Anaconda Prompt instead

2. The configuration file path of jupyter appears. Don’t enter it. Just find jupyter_notebook_config.py file according to this path.

3. Open the file with Notepad or python, open the search window with Ctrl + F, and enter iopub_data_rate_limit.

Find a specific line, uncomment, and add many 0

4. Restart the Jupiter notebook and the display is normal

[Solved] emcc error: error: LLVM_ROOT is not defined

When using EMCC to compile code, an error is reported:

> emcc hello.c -s WASM=1 -o hello.html
emcc: error: LLVM_ROOT is not defined in /

The reason why I encountered this problem is that I did not execute the activation statement after installing emsdk:

> emsdk activate latest
> source "/root/code/emsdk/emsdk_env.sh"
# After activation, you will be prompted to configure the environment, this step is also very important, otherwise it will be activated for nothing

Also be careful not to forget to activate the other two components:

> emsdk activate binaryen-main-64bit emscripten-main-64bit
> source "/root/code/emsdk/emsdk_env.sh"

After activation, don’t forget to configure environment variables
if you encounter similar problems later, you can first:

  1. Check whether the module in emsdk is activated or not?
  2. Check whether the source environment is variable or not?

If you can’t confirm, you can redo the above two steps to see if the problem is still there.