Category Archives: Python

Httprunner Run Error: while parsing a block mapping

When I first came into contact with httprunner, I was not familiar with the YML format. After running the use case, I reported an error while parsing a block mapping
an error is reported as shown in the figure:

after checking the data, it is said that there is no alignment. It is recommended to use space alignment. Then find my 9 lines, find that the number of spaces is different from the others, and then use spaces to keep consistent with the others.

For example, in my extract, I counted the four spaces before the request, counted the first four spaces before the extract, and found that they were not four. After changing them, I succeeded. PS: because the number of extracted spaces in the front is wrong, and the spaces of imagetoken below are also wrong. They will succeed after they are changed together

GDAL Error: ERROR 1: PROJ [How to Solve]

Using GDAL, an error occurs suddenly:

ERROR 1: PROJ: createGeodeticReferenceFrame: Cannot find proj.db
ERROR 1: PROJ: proj_as_wkt: Cannot find proj.db
ERROR 1: PROJ: proj_create_from_wkt: Cannot find proj.db
ERROR 1: PROJ: createGeodeticReferenceFrame: Cannot find proj.db
ERROR 1: PROJ: pj_obj_create: Cannot find proj.db
ERROR 1: PROJ: proj_as_wkt: Cannot find proj.db
ERROR 1: PROJ: proj_create_from_wkt: Cannot find proj.db
ERROR 1: PROJ: proj_create_from_wkt: Cannot find proj.db
ERROR 1: PROJ: pj_obj_create: Cannot find proj.db
ERROR 1: PROJ: proj_as_wkt: Cannot find proj.db
ERROR 1: PROJ: proj_as_wkt: Cannot find proj.db
ERROR 1: PROJ: proj_create_from_wkt: Cannot find proj.db
ERROR 1: PROJ: proj_create_from_database: Cannot find proj.db

Solution:

Add these codes below at the header of your codes.

import os
os.environ['PROJ_LIB'] = r'D:\Anaconda3\envs\tf14\Library\share\proj'

[Solved] Error when installing pycurl in MAC: Command ‘clang’ failed with exit status 1

Install pycurl using the command:

 python3 -m pip install pycurl

ERROR: Command errored out with exit status 1:
command: /Library/Developer/CommandLineTools/usr/bin/python3 -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘/private/var/folders/3s/kz36vylx0td922n3264rkpwr0000gn/T/pip-install-5p561uh8/pycurl_3b8958baee0a45d8b545ecabadd39816/setup.py'”‘”‘; __file__='”‘”‘/private/var/folders/3s/kz36vylx0td922n3264rkpwr0000gn/T/pip-install-5p561uh8/pycurl_3b8958baee0a45d8b545ecabadd39816/setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ install –record /private/var/folders/3s/kz36vylx0td922n3264rkpwr0000gn/T/pip-record-4m5f06ct/install-record.txt –single-version-externally-managed –user –prefix= –compile –install-headers /Users/yaqin/Library/Python/3.8/include/python3.8/pycurl
cwd: /private/var/folders/3s/kz36vylx0td922n3264rkpwr0000gn/T/pip-install-5p561uh8/pycurl_3b8958baee0a45d8b545ecabadd39816/
Complete output (119 lines):
Using curl-config (libcurl 7.64.1)
Warning: libcurl is configured to use SSL, but we have not been able to determine which SSL backend it is using. If your Curl is built against OpenSSL, LibreSSL, BoringSSL, GnuTLS, NSS or mbedTLS please specify the SSL backend manually. For other SSL backends please ignore this message.Not using an SSL library
running install
running build
running build_py
creating build
creating build/lib.macosx-10.14.6-x86_64-3.8
creating build/lib.macosx-10.14.6-x86_64-3.8/curl
copying python/curl/__init__.py -> build/lib.macosx-10.14.6-x86_64-3.8/curl
running build_ext
building ‘pycurl’ extension
creating build/temp.macosx-10.14.6-x86_64-3.8
creating build/temp.macosx-10.14.6-x86_64-3.8/src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -DPYCURL_VERSION=”7.44.1″ -DHAVE_CURL_SSL=1 -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c src/docstrings.c -o build/temp.macosx-10.14.6-x86_64-3.8/src/docstrings.o
In file included from src/docstrings.c:4:
In file included from src/pycurl.h:5:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/limits.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/limits.h:63:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from src/docstrings.c:4:
In file included from src/pycurl.h:5:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/limits.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/limits.h:64:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/limits.h:8:2: error: architecture not supported
#error architecture not supported
^
In file included from src/docstrings.c:4:
In file included from src/pycurl.h:5:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:33:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from src/docstrings.c:4:
In file included from src/pycurl.h:5:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:55:9: error: unknown type name ‘__int64_t’
typedef __int64_t       __darwin_blkcnt_t;      /* total blocks */
^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:56:9: error: unknown type name ‘__int32_t’; did you mean ‘__int128_t’?
typedef __int32_t       __darwin_blksize_t;     /* preferred block size */
^
note: ‘__int128_t’ declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:57:9: error: unknown type name ‘__int32_t’; did you mean ‘__int128_t’?
typedef __int32_t       __darwin_dev_t;         /* dev_t */
^
note: ‘__int128_t’ declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:60:9: error: unknown type name ‘__uint32_t’; did you mean ‘__uint128_t’?
typedef __uint32_t      __darwin_gid_t;         /* [???] process and group IDs */
^
note: ‘__uint128_t’ declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:61:9: error: unknown type name ‘__uint32_t’; did you mean ‘__uint128_t’?
typedef __uint32_t      __darwin_id_t;          /* [XSI] pid_t, uid_t, or gid_t*/
^
note: ‘__uint128_t’ declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:62:9: error: unknown type name ‘__uint64_t’
typedef __uint64_t      __darwin_ino64_t;       /* [???] Used for 64 bit inodes */
^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:68:9: error: unknown type name ‘__darwin_natural_t’
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:70:9: error: unknown type name ‘__uint16_t’; did you mean ‘__uint128_t’?
typedef __uint16_t      __darwin_mode_t;        /* [???] Some file attributes */
^
note: ‘__uint128_t’ declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:71:9: error: unknown type name ‘__int64_t’
typedef __int64_t       __darwin_off_t;         /* [???] Used for file sizes */
^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:72:9: error: unknown type name ‘__int32_t’; did you mean ‘__int128_t’?
typedef __int32_t       __darwin_pid_t;         /* [???] process and group IDs */
^
note: ‘__int128_t’ declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:73:9: error: unknown type name ‘__uint32_t’; did you mean ‘__uint128_t’?
typedef __uint32_t      __darwin_sigset_t;      /* [???] signal set */
^
note: ‘__uint128_t’ declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:74:9: error: unknown type name ‘__int32_t’; did you mean ‘__int128_t’?
typedef __int32_t       __darwin_suseconds_t;   /* [???] microseconds */
^
note: ‘__int128_t’ declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:75:9: error: unknown type name ‘__uint32_t’; did you mean ‘__uint128_t’?
typedef __uint32_t      __darwin_uid_t;         /* [???] user IDs */
^
note: ‘__uint128_t’ declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:76:9: error: unknown type name ‘__uint32_t’; did you mean ‘__uint128_t’?
typedef __uint32_t      __darwin_useconds_t;    /* [???] microseconds */
^
note: ‘__uint128_t’ declared here
In file included from src/docstrings.c:4:
In file included from src/pycurl.h:5:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_types.h:43:9: error: unknown type name ‘__uint32_t’; did you mean ‘__uint128_t’?
typedef __uint32_t      __darwin_wctype_t;
^
note: ‘__uint128_t’ declared here
In file included from src/docstrings.c:4:
In file included from src/pycurl.h:5:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Ve

export ARCHFLAGS="-arch x86_64"

Then re-execute the installation command to succeed!

[Solved] error: ROIAlign_cuda.cu(275): error: no instance of function template “THCCeilDiv“ matches

Resolve roialign_ Cuda.cu and roipool_ Cuda.cu compilation error (two problems encountered)

Error 1:

D:/python/frankmocap-master/frankmocap-master/detectors/hand_object_detector/lib/model/csrc/cuda/ROIAlign_cuda.cu(275): error: no instance of function template "THCCeilDiv" matches the argument list
            argument types are: (long long, long)

D:/python/frankmocap-master/frankmocap-master/detectors/hand_object_detector/lib/model/csrc/cuda/ROIAlign_cuda.cu(275): error: no instance of overloaded function "std::min" matches the argument list
            argument types are: (<error-type>, long)

D:/python/frankmocap-master/frankmocap-master/detectors/hand_object_detector/lib/model/csrc/cuda/ROIAlign_cuda.cu(320): error: no instance of function template "THCCeilDiv" matches the argument list
            argument types are: (int64_t, long)

D:/python/frankmocap-master/frankmocap-master/detectors/hand_object_detector/lib/model/csrc/cuda/ROIAlign_cuda.cu(320): error: no instance of overloaded function "std::min" matches the argument list
            argument types are: (<error-type>, long)

4 errors detected in the compilation of "C:/Users/18295/AppData/Local/Temp/tmpxft_00003514_00000000-10_ROIAlign_cuda.cpp1.ii"

Solution:

Modify maskscoring_ rcnn/maskrcnn_ benchmark/csrc/cuda/ROIAlign_ Cuda.culine 275:

//Original code: dim3 grid(std::min(THCCeilDiv(output_size, 512L), 4096L));
dim3 grid(std::min(((int)output_size + 512 -1)/512, 4096));

Mask scoring/maskrcnn benchmark/csrc/cuda/ROIAlign cuda.cu3203

//Original code: dim3 grid(std::min(THCCeilDiv(grad.numel(), 512L), 4096L));
dim3 grid(std::min(((int)(grad.numel()) + 512 -1)/512, 4096));

Modify maskscoring_rcnn/maskrcnn_benchmark/csrc/cuda/ROIPool_cuda.cu Line129:

// dim3 grid(std::min(THCCeilDiv(output_size, 512L), 4096L));
dim3 grid(std::min(((int)output_size + 512 -1)/512, 4096));

Modify maskscoring_rcnn/maskrcnn_benchmark/csrc/cuda/ROIPool_cuda.cu line 176:

//dim3 grid(std::min(THCCeilDiv(grad.numel(), 512L), 4096L));
dim3 grid(std::min(((int)(grad.numel()) + 512 -1)/512, 4096));

After modification, execute Python setup.py build development

Error 2:

error: ROIAlign_ Cuda.cu and roipool_ “In cuda.cu file”__ Floorf “and”__ Ceilf “error

error: calling a __host__ function("__floorf") from a __device__ 
function("get_coordinate_weight<float> ") is not allowed
error: identifier "__floorf" is undefined in device code

error: calling a __host__ function("__ceilf") from a __global__ 
function("detectron2::RoIAlignRotatedForward<float> ") is not allowed
error: identifier "__ceilf" is undefined in device code

Solution:

Find roialign_ Cuda.cu and roipool_ Cuda.cu file, add F after ceil and floor , that is, ceil is changed to ceilf , floor is changed to floor
the successful implementation is as follows:

[Solved] RuntimeError: run loop already started raise RuntimeError(‘run loop already started‘)

RuntimeError: run loop already started raise RuntimeError(‘run loop already started’)
Error Codes:

self.engine.say(content)
self.engine.runAndWait()
self.engine.stop()

Error message

raise RuntimeError('run loop already started')
RuntimeError: run loop already started

Solution:

self.engine.say(content)
self.engine.runAndWait()
self.engine.endLoop()   # add this line
self.engine.stop()

[Solved] error: unrecognized arguments: –multiprocessing-fork

Problem description

Using pyinstaller to package the project into an executable file, we encountered the above problems after solving various problems. The project we wrote needs to use multiple processes, but this problem will occur if the process is not successfully created.

Solution 1

I think others’ solutions are as follows:

if __name__ == '__main__':
	# The following sentence must be added below the if
	multiprocessing.freeze_support()

Solution 2

The general search answer is scheme 1, but this does not apply to me. As a result, the problem bothered me for two days. Just realized that if you use argparse in your code, package it into an executable file, and use multiple processes, you are likely to report this error. After I modified argparse and packaged it into an executable file, multiple processes can be started normally.

[Solved] Run sudo python setup.py install Error: error: error in setup.cfg: command ‘build‘ has no such option ‘i18

1. Problem description

Error: error in setup.cfg: Command ‘build’ has no such option ‘I18N’ when running sudo Python setup.py install in the installation package of Ubuntu system

2. Solutions

Other dependent environments need to be installed:

Python distutils extra needs to be installed

sudo apt-get update -y
sudo apt-get install -y python-distutils-extra

Then run it again

sudo python setup.py install

[Solved] cv2.error: OpenCV(4.5.3) :-1: error: (-5:Bad argument) in function “pointPolygonTest“

python   Running error: CV2. Error: opencv (4.5.3): – 1: error: (- 5: bad argument) in function “pointpolygontest”

The solution is simple because the CV2 version is not compatible

Step 1: uninstall the installed version

Step 2: install the old version

Step 3:   Confirm successful installation

The above error will not be reported during operation.

[Solved] Pytorch-transformers Error: AttributeError: ‘str‘ object has no attribute ‘shape‘

Error Message:
AttributeError: ‘str’ object has no attribute ‘shape’

"""Encoding Chinese text using bert-chinese pre-training model """
# Introduce torch model
import torch
# Introduce the neural network model in the torch model
import torch.nn as nn

# 1. get Google's already trained bert-base-chinese model related to Chinese information via torch.hub (a migration-focused tool in pytorch)
# The parameters are fixed
model = torch.hub.load('huggingface/pytorch-transformers', 'model', 'bert-base-chinese')

# 2. import the corresponding character mapper, which will map each Chinese character to a number
tokenizer = torch.hub.load('huggingface/pytorch-transformers', 'tokenizer', 'bert-base-chinese')


# 3. Map Chinese text into a bert encoded text tensor representation
def get_bert_encode_for_single(text):
    """
    description: encode Chinese text using bert-chinese pre-training model [map Chinese text to bert-encoded text tensor representation
    :param text: the text to be encoded
    :return: use the bert-encoded text tensor representation
    """
    # 3.1 First, each Chinese character is mapped using the character mapper, and the parameter is the text of the incoming Chinese message. This converts the Chinese message into an encoded message
    # The reason for [1:-1]: Note here that bert's tokenizer mapping will add start and end tokens before and after the result, i.e. 101 and 102
    # This makes sense for encoding multiple pieces of text, but not in our case, so use [1:-1] to slice the head and tail
    indexed_tokens = tokenizer.encode(text)[1:-1]
    # After 3.2 transform the list structure into a tensor tensor [put the encoded information in torch.tensor
    tokens_tensor = torch.tensor([indexed_tokens])
    print(tokens_tensor)
    # 3.3 Run the values directly from the model without automatically computing the gradient [the prediction part needs to make the model not auto-derive].
    with torch.no_grad():
        # 3.4 Call the model to get the hidden output
        encoded_layers, _ = model(tokens_tensor)
    print(f"encoded_layers.shape={encoded_layers.shape}")

reason:

The problem is that the return type has changed since the 3.xx version of transformers. Therefore, we explicitly require the tuple tuple of tensors tensor.

Therefore, we can pass an additional parameter return when calling model ()_ Dict = false to obtain the actual tensor corresponding to the last hidden state.

Solution:

 encoded_layers, _ = model(tokens_tensor, return_dict=False)

NameError: name ‘null’ is not defined [How to Solve]

NameError: name ‘null’ is not defined

When running the interface test script today, an error NameError was encountered: name ‘null’ is not defined. Cause: there is a null value when converting a string to a dictionary

ret = '{"createdAt":"","updatedAt":"", "dataSets":null}'
ret = eval(ret)
print(ret)

out:
ret = eval(ret)
  File "<string>", line 1, in <module>
NameError: name 'null' is not defined

The solution is to use the JSON. Loads() function: convert the JSON format data into a dictionary. When there is null, it is converted to none

import json

ret = '{"createdAt":"","updatedAt":"", "dataSets":null}'
ret = json.loads(ret)
print(ret)
print(type(ret))

out:
{'createdAt': '', 'updatedAt': '', 'dataSets': None}
<class 'dict'>

RuntimeError: Address already in use [How to Solve]

(cp3) zhangrui@test:~/project/cp3/CenterPoint$ python -m torch.distributed.launch --nproc_per_node=4 ./tools/train.py ~/project/cp3/CenterPoint/work_dirs/voxsc_centerpoint_voxelnet_0075voxel_fix_bn_z.py
*****************************************
Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable forformance in your application as needed.
*****************************************
No Tensorflow
No Tensorflow
Traceback (most recent call last):
  File "./tools/train.py", line 137, in <module>
    main()
  File "./tools/train.py", line 86, in main
    torch.distributed.init_process_group(backend="nccl", init_method="env://")
  File "/home/zhangrui/anaconda3/envs/cp3/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py", line 436, in init_process_group
    store, rank, world_size = next(rendezvous_iterator)
  File "/home/zhangrui/anaconda3/envs/cp3/lib/python3.7/site-packages/torch/distributed/rendezvous.py", line 179, in _env_rendezvous_handler
    store = TCPStore(master_addr, master_port, world_size, start_daemon, timeout)
RuntimeError: Address already in use

The TCP port is occupied. Start multiple jobs on one computer. You need to specify a different port for each job (29500 by default) to avoid communication conflict
the solution is to specify the port while running the program, and give the port number arbitrarily before the PY file to be executed:

python -m torch.distributed.launch --nproc_per_node=1 --master_port 66660  ./tools/train.py ~/project/cp3/CenterPoint/work_dirs/voxel_config/nusc_centerpoint_voxelnet_0075voxel_fix_bn_z.py

Another way is to find the occupied port number (insert print output in the program), then find the PID value corresponding to the port number: netstat – nltp, and then cancel the occupation of the port through kill – 9 PID.

[Solved] Pyinstaller Error: “RuntimeError: No metadata path found for distribution ‘greenlet‘

When using pyinstaller to package py file as exe, if the following problems occur

File "c:\xxx\anaconda3\lib\site-packages\PyInstaller\hooks\hook-gevent.py", line 25, in <module>
datas += copy_metadata('gevent', recursive=True)
File "c:\xxx\anaconda3\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 940, in copy_metadata
dest = _copy_metadata_dest(dist.egg_info, dist.project_name)
File "c:\xxx\anaconda3\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 975, in _copy_metadata_dest
f"No metadata path found for distribution '{project_name}'.")
RuntimeError: No metadata path found for distribution 'greenlet'.

The following methods can be used to solve the problem

pip  install --ignore-installed greenlet 

It is said that the following method (method 2) can also be used to solve the problem. The blogger has not tested this method and does not know whether it is available. It is mainly to have a chance to test it later.

When you encounter this problem, you can uninstall the original one and reinstall it, but this reinstallation will遇到这种问题直接卸载原来的重装但是这个重装会

ERROR: Cannot uninstall ‘greenlet’. It is a distutils installed
project and thus we cannot accurately determine which files belong to
it which would lead to only a partial uninstall.

Then you can just delete this file where you found it according to the address where you reinstalled it.