日常报错
CV_William
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
AttributeError: ‘tensorflow.python.framework.ops.EagerTensor‘ object has no attribute ‘reshape‘
AttributeError: 'tensorflow.python.framework.ops.EagerTensor' object has no attribute 'reshape'原创 2023-03-10 17:38:15 · 900 阅读 · 1 评论 -
TypeError: Value passed to parameter ‘input‘ has DataType uint8 not in list of allowed values: float
TypeError: Value passed to parameter 'input' has DataType uint8 not in list of allowed values: float16, bfloat16, float32, float64原创 2023-03-10 17:33:14 · 683 阅读 · 0 评论 -
ValueError: Tensor Tensor(“conv2d_18/Relu:0“, shape=(?, 512, 512, 3), dtype=float32)
解决django+keras ValueError: Tensor Tensor("conv2d_18/Relu:0", shape=(?, 512, 512, 3), dtype=float32) is not an element of this graph.原创 2022-08-04 18:13:25 · 851 阅读 · 0 评论 -
AttributeError: ‘RandomOverSampler‘ object has no attribute ‘fit_sample‘
AttributeError: ‘RandomOverSampler’ object has no attribute ‘fit_sample’报错代码resample_ratio = 0.3 # (anomalies / normal) after resamplingsample_normal = tn + fp # total number of true normal pointssample_anomaly = int(resample_ratio*sample_normal) # mus原创 2022-04-19 13:24:27 · 2409 阅读 · 0 评论 -
ModuleNotFoundError: No module named ‘fbprophet‘
报错代码from fbprophet import Prophet报错信息No module named 'fbprophet'解决办法pip install pystan==2.17.1.0pip install fbprophet==0.6依次下载以上两个包原创 2022-04-19 10:38:04 · 4530 阅读 · 1 评论 -
AttributeError: module ‘pydot‘ has no attribute ‘find_graphviz‘
windows AttributeError: module ‘pydot’ has no attribute ‘find_graphviz’报错信息AttributeError: module 'pydot' has no attribute 'find_graphviz'解决办法安装 windows_10_cmake_Release_graphviz-install-3.0.0-win64.exe安装graphviz官网https://www.graphviz.org/download/原创 2022-04-18 14:25:54 · 1298 阅读 · 0 评论 -
TypeError: Received unknown keyword arguments: {‘epochs‘: xx}
TypeError: Received unknown keyword arguments: {‘epochs’: 30}报错信息TypeError: Received unknown keyword arguments: {'epochs': 30}解决办法pip install keras==2.0keras 1.x 没有epochs参数原创 2022-04-14 11:16:39 · 1149 阅读 · 0 评论 -
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!报错信息@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@IT IS POSSIBLE THAT SO原创 2022-01-12 10:42:08 · 412 阅读 · 0 评论 -
AttributeError: ‘str‘ object has no attribute ‘decode‘
tensorflow AttributeError: ‘str’ object has no attribute ‘decode’报错信息model_config = json.loads(model_config.decode('utf-8'))AttributeError: 'str' object has no attribute 'decode'解决办法pip install h5py==2.10.0原创 2021-12-22 14:39:31 · 608 阅读 · 0 评论 -
HDF5 library version mismatched error
HDF5 library version mismatched error报错信息Warning! ***HDF5 library version mismatched error***The HDF5 header files used to compile this application do not matchthe version used by the HDF5 library to which this application is linked.Data corruption or原创 2021-12-15 17:48:40 · 922 阅读 · 0 评论 -
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with initial frozen solve. Retrying with flexible solve.anaconda切换Python版本conda install python=3.x报错信息Solving environment: failed with initial frozen solve. Retrying with flexible solve.解决办法conda update -n base condacon原创 2021-12-02 14:07:11 · 775 阅读 · 0 评论 -
AttributeError: ‘NoneType‘ object has no attribute ‘get‘
AttributeError: ‘NoneType’ object has no attribute ‘get’报错信息Traceback (most recent call last): File "/usr/lib/python2.7/encodings/__init__.py", line 74, in search_function entry = _cache.get(encoding, _unknown)AttributeError: 'NoneType' object has原创 2021-12-01 14:36:36 · 1595 阅读 · 0 评论 -
FileNotFoundError: [Errno 2] No such file or directory: ‘pretrained/gated-conv.pth‘
FileNotFoundError: [Errno 2] No such file or directory: ‘pretrained/gated-conv.pth’报错信息FileNotFoundError: [Errno 2] No such file or directory: 'pretrained/gated-conv.pth'下载地址https://github.com/nobody132/masr/releaseserror:pip install pyaudioconda i原创 2021-09-02 17:13:04 · 766 阅读 · 1 评论 -
ERROR: Failed building wheel for ctcdecode
ERROR: Failed building wheel for ctcdecode报错信息Processing /ctcdecodeBuilding wheels for collected packages: ctcdecode Building wheel for ctcdecode (setup.py) ... error ERROR: Command errored out with exit status 1: command: /root/anaconda3/envs/ma原创 2021-09-02 17:10:42 · 1951 阅读 · 3 评论 -
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
ubuntu ImportError: libGL.so.1: cannot open shared object file: No such file or directory报错信息ImportError: libGL.so.1: cannot open shared object file: No such file or directory解决办法apt-get update apt install libgl1-mesa-glx欢迎大家交流学习,任何问题都可以留言.原创 2021-08-26 17:49:06 · 771 阅读 · 0 评论 -
RuntimeError: run loop already started raise RuntimeError(‘run loop already started‘)
RuntimeError: run loop already started raise RuntimeError(‘run loop already started’)报错代码self.engine.say(content)self.engine.runAndWait()self.engine.stop()报错信息raise RuntimeError('run loop already started')RuntimeError: run loop already started解决办原创 2021-08-24 13:46:14 · 2689 阅读 · 6 评论 -
OSError: libespeak.so.1: cannot open shared object file: No such file or directory
OSError: libespeak.so.1: cannot open shared object file: No such file or directory报错信息OSError: libespeak.so.1: cannot open shared object file: No such file or directory解决办法sudo apt-get update sudo apt-get install espeak欢迎大家交流学习,任何问题都可以留言...原创 2021-08-03 16:24:01 · 2803 阅读 · 2 评论 -
AttributeError: ‘str‘ object has no attribute ‘decode‘
AttributeError: ‘str’ object has no attribute ‘decode’报错信息AttributeError: 'str' object has no attribute 'decode'解决办法pip install h5py==2.10.0欢迎大家交流学习,任何问题都可以留言原创 2021-08-03 16:02:45 · 255 阅读 · 0 评论 -
ubuntu sh: 1: aplay: not found
ubuntu sh: 1: aplay: not found报错信息sh: 1: aplay: not found解决办法apt-get install alsa-utils欢迎大家交流学习,任何问题都可以留言原创 2021-08-03 15:54:35 · 3679 阅读 · 0 评论 -
detected binary path: /root/anaconda3/envs/.../bin/uwsgi!!! no internal routing support, rebuild wit
detected binary path: /root/anaconda3/envs/…/bin/uwsgi!!! no internal routing support, rebuild with pcre support !!!报错信息detected binary path: /root/anaconda3/envs/.../bin/uwsgi!!! no internal routing support, rebuild with pcre support !!!解决办法安装uwsgi,不原创 2021-08-03 15:50:57 · 427 阅读 · 0 评论 -
error: lto-wrapper failed collect2: error: ld returned 1 exit status
error: lto-wrapper failed collect2: error: ld returned 1 exit status报错信息error: lto-wrapper failed collect2: error: ld returned 1 exit status解决办法查看当前系统安装所有版本的gccls /usr/bin/gcc* -l 下载gcc-4.8sudo apt-get install gcc-4.8修改系统gcc版本删除已有软连接原创 2021-08-03 15:38:44 · 2701 阅读 · 0 评论 -
ValueError: Tensor Tensor(“dense_1/Softmax:0“, shape=(?, 5552), dtype=float32) is not an element of
ValueError: Tensor Tensor(“dense_1/Softmax:0”, shape=(?, 5552), dtype=float32) is not an element of this graph.报错代码model = load_model(weight_file)解决办法model = load_model(weight_file)x_pred = np.zeros((1, 6, len(words)))在load之后随便加个空数据进行predict, 之后再调原创 2021-07-23 16:16:43 · 709 阅读 · 0 评论 -
docker containers新增端口映射
docker containers新增端口映射查看当前容器IDdocker ps -a关闭容器docker stop name/container id修改hostconfig.jsonvi /var/lib/docker/containers/[容器ID]/hostconfig.jsonvi /var/lib/docker/containers/9f0b445196fb04f2437706d368941c8064065375527b1e8ddddb04a11a985fa6/hostcon原创 2021-07-21 14:24:45 · 442 阅读 · 0 评论 -
解决TypeError: ‘module‘ object is not iterable
解决TypeError: ‘module’ object is not iterable检查项目中每一个涉及到路径的代码解决django.core.exceptions.ImproperlyConfigured: The included URLconf ‘chinese.urls’ does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably ca原创 2021-07-21 14:20:31 · 3544 阅读 · 0 评论 -
invalid request block size: 21573 (max 4096)...skip
invalid request block size: 21573 (max 4096)…skip报错信息invalid request block size: 21573 (max 4096)...skip解决办法buffer-size = 65535欢迎大家交流学习,任何问题都可以留言原创 2021-07-21 14:18:54 · 735 阅读 · 0 评论 -
ImportError: libSM.so.6: cannot open shared object file: No such file or directory
ubuntu ImportError: libSM.so.6: cannot open shared object file: No such file or directory报错信息ImportError: libSM.so.6: cannot open shared object file: No such file or directory解决办法apt-get install libsm6apt-get install libxrender1apt-get install libxe原创 2021-07-20 11:49:15 · 315 阅读 · 0 评论 -
Exception: you need a C compiler to build uWSGI
ubuntu安装uwsgi报错error linking uWSGI报错信息Exception: you need a C compiler to build uWSGI解决办法conda install -c conda-forge uwsgi欢迎大家交流学习,任何问题都可以留言原创 2021-07-20 11:47:24 · 1375 阅读 · 0 评论 -
UnavailableInvalidChannel: The channel is not accessible or is invalid. channel name: conda-forg ch
UnavailableInvalidChannel: The channel is not accessible or is invalid. channel name: conda-forg channel url: https://conda.anaconda.org/conda-forg error code: 404报错信息 Collecting package metadata (current_repodata.json): failedUnavailableInvalidChanne原创 2021-07-20 11:40:08 · 1230 阅读 · 1 评论 -
ubuntu yolov5中文标签显示 OSError: cannot open resource
ubuntu OSError: cannot open resource报错信息ubuntu OSError: cannot open resourcefontText = ImageFont.truetype("simsun.ttc", textSize, encoding="utf-8") File "/project/ai/yolov5_detection/utils/plots.py", line 70, in plot_one_box im = cv2ImgAddText原创 2021-07-20 11:39:10 · 1864 阅读 · 1 评论 -
ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
ubuntu ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory报错信息ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory解决办法apt-get updateapt-get install libglib2.0-dev欢迎大家原创 2021-07-20 11:24:19 · 1315 阅读 · 0 评论 -
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
ubantu ImportError: libGL.so.1: cannot open shared object file: No such file or directory报错信息ImportError: libGL.so.1: cannot open shared object file: No such file or directory、解决办法apt-get install sudosudo apt install libgl1-mesa-glx欢迎大家交流学习,任何问题原创 2021-07-20 11:22:44 · 233 阅读 · 0 评论 -
ERROR: Failed building wheel for dlib
ubuntu 安装dlib ERROR: Failed building wheel for dlib报错信息pip install -i https://pypi.douban.com/simple dlibLooking in indexes: https://pypi.douban.com/simpleCollecting dlib==18.17.100 Using cached https://pypi.doubanio.com/packages/2e/63/801499a0aa原创 2021-07-20 11:20:11 · 2868 阅读 · 2 评论 -
xlrd.biffh.XLRDError: Excel xlsx file; not supported
报错代码data = pd.read_excel(data_file)print(data)报错信息xlrd.biffh.XLRDError: Excel xlsx file; not supported解决办法pip install xlrd==1.2.0欢迎大家交流学习,任何问题都可以留言原创 2021-07-20 11:18:19 · 152 阅读 · 0 评论 -
UnicodeEncodeError: ‘ascii‘ codec can‘t encode characters in position 3-9: ordinal not in range(128)
linux django UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 36-45: ordinal not in range(128)报错信息UnicodeEncodeError: 'ascii' codec can't encode characters in position 36-45: ordinal not in range(128)解决办法vi ~/.bashrcexport LC_ALL原创 2021-06-28 13:33:23 · 355 阅读 · 0 评论 -
MemoryError: Unable to allocate 146. MiB for an array with shape (50000, 3, 32, 32) and data type ui
MemoryError: Unable to allocate 146. MiB for an array with shape (50000, 3, 32, 32) and data type uint8报错信息MemoryError: Unable to allocate 146. MiB for an array with shape (50000, 3, 32, 32) and data type uint8报错原因内存不足解决办法关闭几个耗内存的应用,例如jupyter note/原创 2021-06-23 10:11:46 · 2517 阅读 · 0 评论 -
RuntimeError: CUDA error: device-side assert triggered
RuntimeError: CUDA error: device-side assert triggered报错信息Traceback (most recent call last): File "train.py", line 402, in <module> train(hyp) File "train.py", line 300, in train results, maps, times = test.test(opt.data, File "/home/原创 2021-06-23 10:10:30 · 191 阅读 · 0 评论 -
AttributeError: module ‘tensorflow._api.v2.data‘ has no attribute ‘AUTOTUNE‘
tensorflow2 AttributeError: module ‘tensorflow._api.v2.data’ has no attribute ‘AUTOTUNE’报错信息AttributeError: module 'tensorflow._api.v2.data' has no attribute 'AUTOTUNE'解决办法pip install -i https://pypi.douban.com/simple tensorflow==2.5tensorflow版本问题原创 2021-06-23 10:09:16 · 1348 阅读 · 0 评论 -
django.core.exceptions.ImproperlyConfigured: WSGI application ‘yo_django.wsgi.application‘ could not
django.core.exceptions.ImproperlyConfigured: WSGI application ‘yo_django.wsgi.application’ could not be loaded; Error importing module.报错信息django.core.exceptions.ImproperlyConfigured: WSGI application 'yo_django.wsgi.application' could not be loaded; Err原创 2021-06-04 14:45:18 · 1299 阅读 · 0 评论 -
json.decoder.JSONDecodeError: Expecting ‘,‘ delimiter: line 3 column 1 (char 14)
json.decoder.JSONDecodeError: Expecting ‘,’ delimiter: line 3 column 1 (char 14)报错信息json.decoder.JSONDecodeError: Expecting ',' delimiter: line 3 column 1 (char 14)报错原因前端传来json字符串拼接错误{"uid":"1""data":[["数据1", 86, 81], ["曼联", 74, 66], ["利物浦", 69,原创 2021-06-04 14:43:24 · 7815 阅读 · 4 评论 -
django.core.exceptions.ImproperlyConfigured: ‘yo_django‘ must supply a name attribute.
django.core.exceptions.ImproperlyConfigured: ‘yo_django’ must supply a name attribute.报错信息django.core.exceptions.ImproperlyConfigured: 'yo_django' must supply a name attribute.解决办法apps.py 中加入name = 'yo_django'欢迎大家交流学习,任何问题都可以留言...原创 2021-06-03 17:04:33 · 383 阅读 · 0 评论
分享