DataError : (1366, “Valeur incorrecte : ‘\xE5\\xA4\xAA\xE7\\xA9\xBA…'”) for column ‘title’ at row 1″), vérifiez l’état de l’exécution en arrière-plan, les données ont été extraites, déterminez donc le problème de ce type de rapport d’erreur, ce type de problème est généralement un problème de codage.
Returning to the database creation command interface, I found that utf8 was not added during creation. Returning to the database creation interface and adding charset = utf8 again, there is no problem
This error might have occurred since this system does not have Windows Long Path support enabled.
pip install rife_ncnn_vulkan_python
WARNING: Ignoring invalid distribution -ip (d:\python3.8\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\python3.8\lib\site-packages)
Using cached rife-ncnn-vulkan-python-1.1.2.post3.tar.gz (21.5 MB)
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: ‘C:\Users\Administrator\AppData\Local\Temp\pip-install-ti2fh5nq\rife-ncnn-vulkan-python_464f213e18974938aa0e4a998e825356\rife_ncnn_vulkan_python/rife-ncnn-vulkan/src/ncnn/glslang/Test/baseResults/spv.WorkgroupMemoryExplicitLayout.MixBlockNonBlock_Errors.comp.out’
HINT: This error might have occurred since this system does not have Windows Long Path support enabled. You can find information on how to enable this at https://pip.pypa.io/warnings/enable-long-paths
Today, I debugged the code and found this error. The complete contents are as follows:
RuntimeError: Cannot clone object < keras. wrappers. scikit_ learn. KerasClassifier object at 0x000003A783733F33>, as the constructor either does not set or modifies parameter layers
No error is reported when the code is found. It is normal
The code is then investigated:
from keras.wrappers.scikit_learn import KerasRegressor
from tensorflow.keras.wrappers.scikit_learn import KerasRegressor
Complete error oserror: [winerror 1455] the page file is too small to complete the operation. Error loading “C:\ProgramData\Anaconda3\lib\site-packages\torch\lib\shm.dll” or one of its dependencies.
Scenario: Running the reid-strong-baseline model
Reason: The model is too large, and the system allocated paging memory is too small to train
Environment: windows10, cuda version: 11.1, pytorch version: 1.11.0+cu113
(1) Query your CUDA version:
(2) Query your own version of pytorch
Solution: Right-click Properties->Advanced System Settings->Advanced->Settings->Advanced->Programs->Change->Uncheck “Automatically manage…” (Define initial size and maximum size) (set here according to the actual available space, as large as possible) -> click “Settings” -> OK -> reboot
If the error is still reported after reboot, the possible reasons are: (1) the custom size is still too small (for example, I set 10G at the beginning, but still reported an error, and subsequently modified to 100G (100000M) to run successfully) (2) the batch_size is too large, you can adjust the size appropriately (for example, reduce 64 to 16)
vpython : AttributeError: ‘box‘ object has no attribute ‘idx‘
1. Problem Description:
After importing the VPython library, the errors reported after using the sphere class or box class in the VPython library are as follows:
the main error statement is the underlined part:
attributeerror: 'box' object has no attribute 'IDX' (changing box to sphere is the same).
After debugging, it is found that the specific errors are as follows:
- Make sure vpython is installed
- Check the third-party libraries of the project environment for the packages autobahn and txaio, e.g. mine are autobahn version is 22.4.2, txaio version is 22.2.1.
- Lower the version of audobahn. If I lower the version to 22.3.2
Geopy library Error: Configuration Error
Using Nominatim with default or sample `user_agent` "geopy/2.2.0" is strongly discouraged, as it violates Nominatim's ToS https://operations.osmfoundation.org/policies/nominatim/ and may possibly cause 403 and 429 HTTP errors. Please specify a custom `user_agent` with `Nominatim(user_agent="my-application")` or by overriding the default `user_agent`: `geopy.geocoders.options.default_user_agent = "my-application"`.
This error is because the default value of UA is bad. Just specify user-agent as a unique string. For example
, when BuyiXiao initializes Nominatim, specify user-agent.
geolocator = Nominatim(user_agent='BuyiXiao')
RuntimeError: Error(s) in loading state_dict for BertForTokenClassification
RuntimeError: Error(s) in loading state_dict for BertForTokenClassification:size mismatch for bert.embeddings.word_embeddings.weight: copying a param with shape torch.Size([21128, 768]) from checkpoint, the shape in current model is torch.Size([119547, 768]).
The parameters of torch are not consistent with the mod
My original code was
model = AutoModelForTokenClassification.from_pretrained("bert-base-multilingual-cased", num_labels=len(label_names))
Just reinstall pytorch
conda install pytorch==1.7.1
Windows will report an error when installing pycrypto.
Here are some errors
Downloading http://mirrors.aliyun.com/pypi/packages/60/db/645aa9af249f059cc3a368b118de33889219e0362141e75d4eaf6f80f163/pycrypto-2.6.1.tar.gz (446 kB)
|████████████████████████████████| 446 kB 344 kB/s
Building wheels for collected packages: pycrypto
Building wheel for pycrypto (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'd:\ProgramData\Anaconda3\envs\d2t\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv = '"'"'C:\\Users\\zm\\AppData\\Local\\Temp\\pip-install-trmr6taw\\pycrypto_e1aaae9b5afb410691bac391ddb2c59f\\setup.py'"'"'; __file__='"'"'C:\\Users\\zm\\AppData\\Local\\Temp\\pip-install-trmr6taw\\pycrypto_e1aaae9b5afb410691bac391ddb2c59f\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\zm\AppData\Local\Temp\pip-wheel-egkss95d'
Complete output (183 lines):
The solution is:
1. Enter VC directory: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
2. Execute vcvarsall.bat
3. Execute set CL=-FI”%VCINSTALLDIR%\INCLUDE\stdint.h”
Install it (I install it in the env of anaconda, so I enter env first)
Error: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows
I’m on windows, and when running an image motion blur algorithm from the cv-python library, this error is suddenly reported.
Searching for similar problems has said that the path to read the image is wrong, and reinstalling a higher version of the cv library, but not all of them are useless.
All the functions under the cv2 class are not working.
pip uninstall opencv-python
pip install opencv-python
Just reinstall this package. I don’t know the cause. The problem occurred after I installed the evaluations package. It should be caused by the conflict between versions
Record – when Spyder is opened, “an error occurred while starting the kernel” appears
when using Spyder, "an error occurred while starting the kernel" appears. Spyder reported an error attributeerror: type object 'ioloop' has no attribute 'initialized'
Search the online methods as follows:
the command is Spyder — reset
“An error occurred while starting the kernel” still appears after trying.
enter CONDA update Spyder ipykernel tornado pyzmq
in the terminal. This is also tried, but still an error is reported
The following three methods are finally solved. It is said that the version of tornado is too high. After checking that my version is 6.0, I uninstalled the original version and reinstalled a lower version.
pip uninstall tornado
pip install tornado==4.5.3：
PyCharm pytest-html Install Error: Try to run this command from the system terminal. Make sure that you use
try to run this command from the system terminal Make sure that you use the correct version of ‘pip’ installed for your Python interpreter located at ‘E:\python\Program\Scripts\python.exe’.
Switch the pycharm interpreter and reconfigure it again.