
Q&A
遇到的问题及处理方法
挑灯、看剑
这个作者很懒,什么都没留下…
展开
-
mac brew install mysql 然后which mysql_config 提示mysql_config not found
brew install mysqlUpdating Homebrew...Warning: mysql 8.0.22 is already installed, it's just not linkedYou can use `brew link mysql` to link this version.➜ work_code brew link mysqlLinking /usr/local/Cellar/mysql/8.0.22... 92 symlinks created➜ work_..原创 2020-11-14 14:46:12 · 344 阅读 · 0 评论 -
VIM:YouCompleteMe unavailable: requires Vim compiled with Python (3.5.1+) support
vim版本:8.1使用Homebrew在Vim 8上安装Python 3支持在具有+python3支持的Mac OS上安装Vim时,出现以下错误:% brew install vim --with-python3Usage: brew install [options] formula...Error: invalid option: --with-python3这是因为homebrew早已不支持–with-python3这类命令自2019年起,默认情况下已通过Homebrew在Vim原创 2020-06-22 13:57:01 · 9021 阅读 · 0 评论 -
mac:command not found: brew
执行即可。ruby -e"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"原创 2020-06-22 10:53:31 · 6233 阅读 · 0 评论 -
VIM:如何还原vimrc文件
Q:大家都知道vim的配置文件是vimrc, 如何还原vimrc默认的配置呢A:以下三步即可~/.vim 目录改名或删掉;.vimrc 改名或删掉;set all& 命令重置所有选项为缺省值原创 2020-06-19 15:26:22 · 2715 阅读 · 3 评论 -
Git:gnutls_handshake() failed: A TLS packet with unexpected length was received
Q:git 克隆代码时报错,gnutls_handshake() failed: A TLS packet with unexpected length wasreceivedA:链接:https://askubuntu.com/questions/186847/error-gnutls-handshake-failed-when-connecting-to-https-servers/187199#187199解决步骤如下1.重新编译,注意修改为你下载的对应版本号sudo apt-ge原创 2020-06-19 15:23:20 · 5494 阅读 · 1 评论 -
could not access file "timescaledb": No such file or directory
Q:在mac本地安装完timescaledb后用命令重启pgbrew services restart postgresql查看pg日志如下:could not access file "timescaledb": No such file or directoryA:原因是timescale插件未安装到pg对应的extension目录下,如果忘记了这个目录,在pg中创建这个扩展会...原创 2019-12-20 15:13:47 · 4020 阅读 · 0 评论 -
WebSocketError: Socket is dead
Q: WebSocketError: Socket is dead File "/usr/local/lib/python2.7/dist-packages/geventwebsocket/websocket.py", line 347, in send raise WebSocketError(MSG_SOCKET_DEAD)WebSocketError: Socket is ...原创 2019-12-17 17:38:57 · 1468 阅读 · 0 评论 -
odoo:NumericValueOutOfRange: integer out of range
Q:当定义一个整型的字段时,填入100000000000000000000会报NumericValueOutOfRange: integer out of range错误,因为这个整数已经超过了这个整型的范围,想要限制的话需要在字段定义里加上size字段A:字段定义里加上size=9即可,最多只能输9位...原创 2019-12-10 15:29:15 · 1980 阅读 · 0 评论 -
mac vmware 黑屏解决方法
系统:mac版本 :catalinaQ:挂起时,可以看到虚拟机界面打开时,黑屏A:需要给vmware屏幕录制的权限钩上就可以了原创 2019-12-05 10:56:03 · 16088 阅读 · 5 评论 -
psycopg2.OperationalError: SSL SYSCALL error: EOF detected
Q:psycopg2.OperationalError: SSL SYSCALL error: EOF detectedA:exception psycopg2.OperationalErrorException raised for errors that are related to the database’soperation and not necessarily under...原创 2019-11-18 10:48:20 · 5281 阅读 · 0 评论 -
Postgres:DETAIL: There are no running transactions Segmentation fault
Q:PG安装decoderbufs插件后,一旦有数据进来时数据库日志遇到如下错误2019-10-26 13:20:26.353 CST [26178] LOG: logical decoding found consistent point at 1A/6AAF9FB02019-10-26 13:20:26.353 CST [26178] DETAIL: There are no run...原创 2019-10-29 10:54:57 · 512 阅读 · 0 评论 -
Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements
Q:Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements指的是事务BEGIN/COMMIT不匹配A:原因是普通、简单的查询用了事务,导致没有提交。S:解决方法:在链接数据库的时候设置autocommit=True即可...原创 2019-10-24 17:04:49 · 1860 阅读 · 0 评论 -
pip 下载指定国内源,提升下载速度
pip -i 国内源如豆瓣:http://pypi.douban.com/simple/清华:https://pypi.tuna.tsinghua.edu.cn/simple原创 2019-10-21 15:38:07 · 441 阅读 · 0 评论 -
No module named 'Crypto'
using AES in pythonpip install pycryptodome原创 2019-10-20 16:24:11 · 202 阅读 · 0 评论 -
mac catalina版本修改文件权限: Read-only file system
sudo mount -uw /原创 2019-10-20 15:29:12 · 4589 阅读 · 0 评论 -
python3 mac os安装M2Crypto
$ brew install openssl && brew install swig$ brew --prefix openssl/usr/local/opt/openssl$ LDFLAGS="-L$(brew --prefix openssl)/lib" \CFLAGS="-I$(brew --prefix openssl)/include" \SWIG_FEA...原创 2019-10-20 14:50:14 · 1395 阅读 · 2 评论 -
assert isinstance(data, bytes), 'applications must write bytes'
Q:2019-10-20 14:19:50,241 28109 INFO ? werkzeug: 127.0.0.1 - - [20/Oct/2019 14:19:50] "GET /?db=dataforce_v7 HTTP/1.1" 404 -2019-10-20 14:19:50,242 28109 ERROR ? werkzeug: Error on request:Tra...原创 2019-10-20 14:28:51 · 2464 阅读 · 0 评论 -
mac 升级到Catalina版本后,打开pycharm,git无法使用
报错:xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)解决方法:执行xcode-select --install或者xcode-select --reset执行完毕后一定要重启pycharm...原创 2019-10-11 15:28:05 · 551 阅读 · 0 评论 -
mac 下sudo 操作提示无权限
重启、command + r、teminal、csrutil disabled原创 2019-10-10 17:12:35 · 3535 阅读 · 0 评论 -
推荐一个json转yaml的网站,特别好用
百度的话,会有好几个,测试了下,https://www.json2yaml.com/这个比较好用https://www.bejson.com/json/json2yaml/这个复杂点的json会转失败原创 2019-10-10 10:20:19 · 354 阅读 · 0 评论 -
mac mojave10.14.6 安装pip install psycopg2报错ld: library not found for -lssl和error: command 'gcc' faile
Q:mac mojave10.14.6 安装pip install psycopg2报错 ld: library not found for -lssl clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command 'gcc' failed...原创 2019-09-27 11:02:03 · 731 阅读 · 0 评论 -
mac停留在某个版本无法更新
Q:从某个时间开始mac一直是Mojave10.14.1这个版本,点击软件更新却提示已经是最新版本,但是最新版本已经到10.14.6了但由于xcode已经更新,会出现下面的问题,导致xcode不可用python用pip下载包也会遇到问题A:在appstore中去搜索macos,然后点击获取,就可以下载最新的mac os版本了这样就好了...原创 2019-12-23 11:52:11 · 6626 阅读 · 0 评论