39 importerror cannot import

vue3 - import js文件eslint报错-解决

在 shims.d.ts 文件中 ,添加 declare module '*.js'; 即可 如果让所有的文件都可导入,则写为 declare module '*'; ......
文件 import eslint vue3 vue

git push 出现fatal: unable to access 'http://xxx': The requested URL returned error: 403

问题: cch:requsetDatas leo$ git push origin master remote: Permission to bbb/requsetDatas.git denied to aaa. fatal: unable to access 'https://github.com ......
requested returned access unable fatal

nodejs连接mysql报错:throw err; // Rethrow non-MySQL errors TypeError: Cannot read property 'query' of undefined

该问题的解决方案如下: win+R 输入cmd mysql -u root -p 输入密码进入到mysql 3.执行sql语句,将密码改成123456(自己可以记住的密码即可) alter user 'root'@'localhost' identified with mysql_native_pa ......

error TS2339: Property '$route' does not exist on type

<template> <div id="app"> <router-view v-slot="{ Component }"> <keep-alive> <component :is="Component" :key="$route.name" v-if="$route.meta.keepAlive" ......
Property error route exist 2339

docker中的报错:Error: Failed to download metadata for repo ‘appstream‘: Cannot prepare internal mirrorlist

在学习使用 docker 技术过程中,基于 centos 镜像自定义新的镜像,其中基础镜像 centos 需要提前安装好 vim 和 net-tools,然而在刚开始通过 yum -y install vim 安装 vim 时,便出现了错误提示信息: Error: Failed to downloa ......

class java.time.LocalDateTime cannot be cast to class java.util.Date

报错前因 直接用 'List<Map>' 接取了 mysql 传回的数据,但是后期处理日期数据时,将 LocalDateTime 类型的数据强转为 Date 处理引发的报错 问题处理 使用 LocalDateTime 强转mysql传回的日期类型数据 对 LocalDateTime 类型数据做Str ......
class java LocalDateTime cannot Date

Oracle设置"export ORA_NCHAR_LITERAL_REPLACE=true"导致dbca报错ORA-24450: Cannot pre-process OCI statement

Oracle设置"export ORA_NCHAR_LITERAL_REPLACE=true"导致dbca报错ORA-24450: Cannot pre-process OCI statement 问题如题。 11.2.0.4.0。 关于环境变量ORA_NCHAR_LITERAL_REPLACE的作 ......

The entity cannot be constructed in a LINQ to Entities query 原因及修复方法

public IQueryable<Product> GetProducts(int categoryID) { return from p in db.Products where p.CategoryID== categoryID select new Product { Name = p.Na ......
constructed Entities 原因 方法 entity

Whats's New In Seata 1.6.x

Seata 是一款开源的分布式事务解决方案,star 高达 23000+,社区活跃度极高,致力于在微服务架构下提供高性能和简单易用的分布式事务服务,本文将剖析 Seata 1.6.x 版本的核心特性,让用户对 Seata 有更深入的认识。 ......
Whats Seata New 39 In

vue3 报错 Uncaught TypeError: Cannot read properties of undefined (reading ‘deep‘)

报错信息 Uncaught TypeError: Cannot read properties of undefined (reading 'deep') at withDirectives (runtime-core.esm-bundler.js:2774:17) at Proxy._sfc_re ......

error while loading shared libraries: libxxx.so: cannot open shared object file: No such file or directory

发生这种问题就在于编译程序链接的库在运行时找不到,或者不存在,或者版本不正确等。使用ldd 你的应用程序|grep -i "libxxx"来查看程序中具体链接的库的位置和版本号,然后查看对应位置下是否有该共享库,如果没有,需要确定编译的时候指定的位置是否正确,如果仅仅是别名的问题,可以用ln创建一个 ......
shared file directory libraries loading

TypeError: Cannot read property 'resetUpScroll' of null

在onshow中使用mescroll-body组件this.mescroll.resetUpScroll()方法会报错,延迟50秒会正常 这个报错通常是由于在onShow生命周期中访问某些组件的属性或方法时,这些组件尚未完全初始化所导致的。 延迟50毫秒后调用resetUpScroll方法可能是因为 ......
resetUpScroll TypeError property Cannot 39

execjs UnicodeEncodeError: 'gbk' codec can't encode character '\xff' in position 23995: illegal multibyte sequence

import subprocess # 创建一个新的 Popen 类,并继承自 subprocess.Popen class MySubprocessPopen(subprocess.Popen): def __init__(self, *args, **kwargs): # 在调用父类(即 sub ......

cannot create temp file for here-document: No space left on device(内存爆满)

《磁盘满了导致不能创建临时文件》 首先说明一般内存占满的情况: /tmp目录满了(/tmp/tmp/这个目录下一般存着coredump文件;一般重启会删除;或者3天后会自动清除;但是如果短时间内太多临时文件占满内存时,就需要手动删除/tmp/tmp) /var/log目录满了(存放日志文件,当日志太 ......
here-document document 内存 cannot create

NameError: name 'tf' is not defined

NameError: name 'tf' is not defined 报错如下: /opt/conda/lib/python3.6/site-packages/tensorflow/python/keras/layers/core.py in <lambda>(x) 307 It defaults ......
NameError defined 39 name not

python 特定位置新建文件报错:PermissionError: [Errno 13] Permission denied: '1.txt'

先将指定位置设定为当前目录 import os os.chdir('E:\qi') with open("1.txt", "w") as f: f.write(jsonCookies) ......

Linux系列---【The authenticity of host 'node01 (192.168.1.200)' can't be established.】

#报错信息 我在设置免密登录的时候报了下面的错 /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub" The authenticity of host 'node01 (192.16 ......
authenticity established 39 Linux host

使用flask中flask_script时,报错:ModuleNotFoundError: No module named 'flask._compat'的解决方法

方法1:降级版本 pip install "Flask==1.1.4"pip install "werkzeug==1.0.1" 方法2:不降级版本: 可以尝试修改一下flask_script/__init__.py中from ._compat import text_type 改成 from fl ......

Brian Kernighan's 算法

##介绍 Brian Kernighan's 算法是一种用于计算一个整数的二进制表示中有多少个1的高效算法。该算法的基本思想是每次将该整数的最右边的一个1置为0,直到该整数变为0为止。每次将1置为0的操作都会使得该整数的二进制表示中的1的个数减少1。 int count_set_bits(int n ......
算法 Kernighan Brian 39

How to 'apt-get install python-opengl' on Ubuntu22.04

ImportError: Error occurred while running `from pyglet.gl import *` HINT: make sure you have OpenGL install. On Ubuntu, you can run 'apt-get install p ......
python-opengl apt-get install Ubuntu python

Fatal error in launcher: Unable to create process using '"d:\software\python\python.exe"

Fatal error in launcher: Unable to create process using '"d:\software\python\python.exe" 问题发生: 是由于python 切换环境导致的。 本来python 放在D盘software 的python 中直接放置了 ......
python quot launcher software process

Coinc1dens's lessons for cryptography beginner

Coinc1dens's lessons for cryptography beginner 10分题懒得写,赛后浅写一下(有些还真写不出来)太屑了 古典懒得写,相信都写的出来 1.child exgcd i 即为m在模p情况下的乘法逆元,反着求i在模p下的乘法逆元即可。 2.child_quadr ......

[FastAPI-39]项目代码结构

代码结构 ── sql_app ├── main.py # 程序入口 ├── crud.py # 增删查改的方法 ├── database.py # 数据库相关 ├── models.py # ORM模型类相关 └── schemas.py # Pydantic的BaseModel,校验相关 ......
FastAPI 结构 代码 项目 39

mac os上python报错 fatal error: 'Python.h' file not found

1. 安装python (可安装任意版本) brew install python@3.9 2. 创建虚拟环境 cd ~ /opt/homebrew/bin/python3.9 -m venv ai3.9 3. 激活虚拟环境 source ~/ai3.9/bin/activate 4. 安装 pip ......
Python python fatal error found

Chrome扩展插件:Console Importer(控制台导入器)

安装插件 进入谷歌商店 https://chrome.google.com/webstore/search/Console%20Importer?hl=zh-CN 安装插件 Console Importer 使用 打开浏览器console控制台,通过$("包名")安装插件。如:CryptoJS 加密 ......
控制台 插件 Importer Console Chrome

elementui重置表单 this.$refs['form'].resetFields()

this.$refs['form'].resetFields()这个做法其实是重置表单到初始值,不是清空表单,当表单第一次在页面中渲染时所用的数据就是初始数据。 dialog嵌套表单时,如果先选择编辑,填充了数据,那么每次resetFields()都是填充第一次选择编辑的值。 this.$refs[ ......
表单 resetFields elementui 39 this

=Required reguest parameter 'min' for method parameter type Integer is not present

出现这个错具体原因就是你前端的数据没有传到后端 后端只要就看你的注解有没有写对 controller层的get请求是@QequestParam 绝大部分就是前端的原因 前端没有把数据传过了 或者传过来的数据等于null 都会报这个错 ......
parameter Required Integer reguest present

Kubernetes集群(五)——Cert-manager与Let'sencrypt证书自动管理

1. Cert-manager安装 1.1. 安装自定义crd资源 kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.crds.yaml 1.2. ......

cannot configure a CMake target with CLion (Nothing to run on)?

ERROR:打开之前的stm32项目 Clion 无法识别 CMakeLists.txt,编译按钮变成灰色,点击run按钮会产生 cannot build xxx.elf 或者 Nothing to run on,在run配置target和executable不到elf文件。 解决方法:抽风了大概, ......
configure Nothing cannot target CMake

解决vscode由于sys.path.insert(0, './utils/')导致无法转定义问题

由于代码用到了当前utils文件夹下的文件里面函数。 from xml_utils import load_xml_and_parse_new 这里xml_utils是utils文件夹下的xml_utils.py。 然后无法转定义很是麻烦,搞了半天没找到方法,然后当我把鼠标放在波浪号上面的时候会显示 ......
vscode insert 问题 utils path