草庐IT

解决error: failed to push some refs to ‘https://gitee.com/xxx.git‘

在git执行命令gitpushoriginmaster时候报错error:failedtopushsome refs to"https://gitee.com/xxx.git"根本原因是远程仓库和本地仓库内容不同,将远程仓库中不同的内容pull到本地,就好了。解决方法:gitpull--rebaseoriginmaster将初始化文件同步到本地,然后再次执行gitpushoriginmaster

git-fatal: No url found for submodule path ‘packages/libary‘ in .gitmodules

文章目录前言一、gitsubmodule功能使用二、错误信息:三、解决方法:四、.gitmodules配置文件:总结前言最近在做vue项目,因为项目比较复杂,把功能拆分成很多子模块,我们使用Git的submodule功能。遇到错误如下:一、gitsubmodule功能使用GitSubModule使用二、错误信息:fatal:Nourlfoundforsubmodulepath'packages/libary'in.gitmodules三、解决方法:1、检查你是否拥有该子模块的权限,可以到你的gitLab账号上面去看。2、使用gitsubmoduleupdate--init--recursive

爬虫selenium:unexpected keyword argument ‘options‘ & use options instead of chrome_options

在学习Python超强爬虫8天速成(完整版)爬取各种网站数据实战案例Day7-06.无头浏览器+规避检测时候老师演示的代码,遇到一些问题及解决过程,供分享和指点fromseleniumimportwebdriverfromtimeimportsleepfromselenium.webdriver.chrome.optionsimportOptionsfromselenium.webdriverimportChromeOptions#nonvisualinterfacechrome_options=Options()chrome_options.add_argument('--headless'

【已解决】ubuntu出现Can‘t find MMDB, start download错误

#clash在linux系统中配置时发生错误根据clash官网的“linux使用教程”进行到第3步启动clash./clash-d报以下错误INFO[0000]Can'tfindMMDB,startdownloadFATA[0000]Initialconfigurationdirectoryerror:can'tinitialMMDB:can'tdownloadMMDB:Get"https://cdn.jsdelivr.net/gh/Dreamacro/maxmind-geoip@release/Country.mmdb":proxyconnecttcp:dialtcp127.0.0.1:78

conda激活环境报错:IMPORTANT: You may need to close and restart your shell after running ‘conda init‘.

conda激活环境报错 :CommandNotFoundError:Yourshellhasnotbeenproperlyconfiguredtouse'condaactivate'.Ifusing'condaactivate'fromabatchscript,changeyourinvocationto'CALLconda.batactivate'.Toinitializeyourshell,run$condainitCurrentlysupportedshellsare:-bash-cmd.exe-fish-tcsh-xonsh-zsh-powershellSee'condainit--h

[Unity]unity hub内安装失败/falied/operation not permitted, mkdir ‘......‘

字面意思为:操作不被允许。权限问题。解决方法:1.找到Unity所在文件夹。2.右键该文件夹,选择属性;选择安全;点击TrustedInstaller,注意TrustedInstaller的权限需要全部允许。3.TrustedInstaller的权限如果不是全部允许,请点击编辑,并选中TrustedInstaller,将其权限全部勾选上。并点击确定。确定之后,大概等待1分钟时间等待权限的修改完成。 4.权限被更改完毕后,进入unityhub即可正常安装unity。(当时是凌晨了所以没有详细记录截图,只记录了过程)  

IDEA Kafka:The configuration ‘xxx‘ was supplied but isn‘t a known config

报错信息//提供了配置,但不是已知的配置。[]-Theconfiguration'kafka.input.topics'wassuppliedbutisn'taknownconfig.[]-Theconfiguration'checkpoint.interval'wassuppliedbutisn'taknownconfig.[]-Theconfiguration'checkpoint.path'wassuppliedbutisn'taknownconfig.处理思路:提供思路有可能是消费的数据过大,资源不足,建议重启Kafka清空缓存释放资源再重跑,或者加资源如果有相关思路可以评论区分享一些

CondaValueError: Malformed version string ‘~‘: invalid character(s)

创建python3.6环境condacreate-npy36python=3.6anaconda和升级conda环境condaupdateconda和condaupgrade-nbase-cdefaults--override-channelsconda都没用都报这个错:Solvingenvironment:failedCondaValueError:Malformedversionstring‘~’:invalidcharacter(s).解决方法:删除自己设置过的国内源condaconfig--remove-keychannels设置为可通过notepad配置文件condaconfig-s

ERROR: Can‘t find a suitable configuration file in this directory or anyparent. Are you in the right

 解决:方法一:检查当前目录:确保你在配置文件所在的正确目录中。你可以使用命令"pwd"来检查当前目录。检查父目录:如果配置文件不在当前目录中,可以使用命令"cd.."一级一级地向上移动,直到找到包含配置文件的目录。搜索配置文件:如果你仍然找不到配置文件,可以使用命令"find/-name "来搜索配置文件。将  替换为实际的配置文件名。创建新的配置文件:如果配置文件丢失,可以从头开始创建一个新的配置文件,或者使用一个示例配置文件作为模板。检查权限:确保你有访问配置文件所需的权限。可以使用命令"ls-l"来检查文件权限。方法二:可以先在对应路径中执行find.-name“docker-comp

【跨域问题】Access to XMLHttpRequest at‘http://localhost:解决跨域问题

当一个请求url的协议、域名、端口三者之间任意一个与当前页面url不同即为跨域!!!