Tag Archives: windows

ERROR: Failed building wheel for osgeo [How to Solve]

ERROR: Failed building wheel for osgeo

Problem: When Installing pip3 install osgeo report an error: ERROR: Failed building wheel for osgeo

Solution:

Method 1

conda install gdal

Method 2:

1. According to the python version, download the corresponding GDAL installation file

for example: Python 3.8 download GDAL‑3.4.3‑cp38‑cp38‑win_amd64.whl

Cp38 stands for python3.8 version and windows64 bit

2. install:

pip3 install gdal-3.4.3-cp38-cp38-win_amd64.whl

 

[Solved] CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage

1. Error report Description:

Error reporting when building C + + program with cmake:

$ cmake .
-- Building for: NMake Makefiles
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Error at CMakeLists.txt:2 (project):
  Running

   'nmake' '-?'

  failed with:

   The system cannot find the specified file.


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/eren.luo/Desktop/test/CMakeFiles/CMakeOutput.log".

2. Solution:

P. S. mingw64/bin and cmake have been added to the environment variable.

Modify

cmake .

to:

cmake -G "MinGW Makefiles" .

Use the following commands to run:

mingw32-make.exe all

3. the version of C++ and cmake:

  1. cmake-3.23.1-windows-x86_64.msi
  2. mingw-w64-install.exe

System: Windows 10

[Solved] Ubuntu 20.04.3 Fail to Start sshd Error: Failed to start OpenBSD Secure Shell server

Environmental Science:

Ubuntu 20.04.3-live-server
Hyper-V virtual environment

Problem Description:

Ubuntu 20.04.3 fails to start sshd with error: failed to start OpenBSD secure shell server
sshd – T
prompt sshd: no hostkeys available – exiting.

Solution:

1. Check whether the SSH service is enabled
PS - e | grep ssh

No response

2. Install ssh

 apt update
apt-get install openssh-server openssh-client

Prompt installed

3. Implementation

/etc/init.d/ssh start

fail to start

Continue to execute ssh-keygen -A
Restart successfully

[Solved] error c101008d: Failed to write the updated manifest to the resource of file

System: win10
compiler: vs08

Error c101008d: error c101008d: Failed to write the updated manifest to the resource of file “XXX.exe”

Solution: Microsoft menu bar in the lower left corner – Settings – update and security – Windows Security Center – virus and threat protection – virus and threat protection settings – the following management settings – implement protection – off – recompile the project

[Solved] winnt.h a large number of file errors (287): error c2059: syntax error: “;”

After including winnt.h, the compiler reports a lot of syntax errors, Error C2146, C4430, C2059, C2062, etc., which occur with various versions of visual studio, including vc6, 2010, 2017, 2019. But the compilation result has no other error location except winnt.h.

If you can’t try many methods, you can try the following:

Note the order of header files:

When importing files, it needs to be consistent with the running logic of the main program as follows:

Windows: How to Solve PCL C2065 Error

Solution of PCL running error under Windows

Configuration: vs2019 + pcl1 11.1+CMake3. twenty-two

The program has no problem, but there are a lot of error codes when running

Kdtree program

Solution:

Copy the program to a new txt file, save it, and then copy it to the vs2019 cpp document

Rerun results

reason

Maybe the program is downloaded from GitHub, and the coding method is wrong. It needs to be copied to TXT document for transcoding

Windows 7: How to Solve startup error: ERROR 0199

Windows 7 system startup error

ERROR 0199:System Security-IBM Security password retry count exceded。

Solution: Press F1 to enter Bois, then press F9 to load the default value, press F10 to save and exit, and the system will restart normally.

Note: please check the corresponding commands of the corresponding model for specific access to BIOS.

[Solved] kafka Error: java.net.UnknownHostException: kafkahost

 

Problem phenomenon:

Today, I wanted to debug the service on my computer. I found that when calling the interface through the gateway, an error related to Kafka was reported, as follows:

java.net.UnknownHostException: kafkahost


Problem analysis:

It can be seen from the error message that the host named kafkahost cannot be recognized.

By viewing the configuration of a service instance of Kafka cluster configuration on Linux server, you can find:

listeners=PLAINTEXT://kafkahost:0091

This configuration uses the {kafkahost} mentioned in the error message. You can see that this service instance listens to the IP port} kafkahost: 0091; By viewing the/etc/hosts file of the Linux server, you can see:

Kafkahost points to the Linux server IP.

Since I accessed the Kafka service on the Linux server in the native service, I naturally could not resolve to kafkahost. Therefore, you need to add the corresponding configuration in the hosts file of this machine!


Solution:

Find the hosts file path of this machine:

C:\Windows\System32\drivers\etc

Add the following configuration at the end of the file to identify kafkahost as the Linux server IP:

Restart the local service and call the interface again without any error:

[Solved] Win10 install Ubuntu error: wslregisterdistribution failed with error: 0x8007019e

This article is reproduced in \ Author: Buyan \ original text: win10 installs Ubuntu system and reports the error wslregisterdistribution failed with error: 0x8007019e – jova – blog Garden (cnblogs. Com)

When installing the Ubuntu system in the windows app store, the error wslregisterdistribution failed with error: 0x8007019e is reported

1. Error reporting:

Installing, this may take a few minutes... Installation Failed! Error: 0x8007019e Press any key to continue...

2. Cause: Windows subsystem support is not installed.

3. Solution:

1. Win + X, select windows PowerShell (administrator)

2. Input: enable windowsoptionalfeature – Online – featurename Microsoft Windows subsystem Linux

3. Enter, enter y, restart!

4. Reopen the installed subsystem, wait a few minutes, and enter the account and password.

**

 

[Solved] AnacondaShell Start Error: createfile()error: 5

Solution 1:

There is also a problem when you do not execute as an administrator:

CondaHTTPError: HTTP 000 CONNECTION FAILED for url

reason:

5 = access denied. See net helpmsg 5. You cannot write to the system32 folder unless you are an administrator.

Solution:

Run Anaconda shell with administrator privileges:

If you still haven’t solved the condahttpererror problem, please refer to:
CONDA create failed to create the environment httperror
the ultimate solution to the condahttpererror problem when Anaconda created the environment

Solution 2:

1. Open registry: regedit

2. Found: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System

3. Modify the key value under this path: enablelua is set from 1 to 0

[Solved] Pylink Windows Chinese path error: Specified file could not be opened

Solution:

Modify the jlink.py file under the pylink package path and find the flash_file method;

Find the self._dll.JLINK_DownloadFile line under this method, and modify the following parameter path.encode() to

path.encode(locale.getpreferredencoding()), Of course, you have to use the locale preamble package