bug
liuzh(少昊)
机器学习工程师,python研发工程师
展开
-
ImportError: pycurl: libcurl link-time ssl backend (openssl) is different from compile-time ssl back
首先尝试重新安装解决pip uninstall pycurlexport PYCURL_SSL_LIBRARY=opensslpip install pycurl但是这里有一个坑:在高版本的mac系统环境变量里是找不到openssl的头文件的pip uninstall pycurl# 卸载库export PYCURL_SSL_LIBRARY=opensslexport LDFLAG...原创 2019-12-31 16:05:16 · 2863 阅读 · 0 评论 -
MySQL-python安装不成功 ERROR: Command errored out with exit status 1: python setup.py egg_info Check the
报错信息 ERROR: Command errored out with exit status 1: command: /Users/liuzh/Documents/tiger/auth_guardian/venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/p...原创 2019-12-17 20:22:34 · 9677 阅读 · 0 评论 -
1205 - Lock wait timeout exceeded; try restarting transaction, Time:
解决办法:– 查询被锁语句select * from information_schema.innodb_trx– 我们可以用下面三张表来查原因:-- innodb_trx 当前运行的所有事务-- innodb_locks 当前出现的锁-- innodb_lock_waits 锁等待的对应关系– 找到trx_mysql_thread_idkill 738178711– 查询...原创 2019-11-14 14:44:02 · 219 阅读 · 0 评论 -
pymysql.err.InternalError: (1205, 'Lock wait timeout exceeded; try restarting transaction')
问题:执行了一句sql没有commit,然后调用了别的函数,然后调用的这个函数也有同样的sql导致解决办法:执行完sql后先commit, 然后调用别的函数sql2 = "update gasp_master_info_2 set is_famous_college = 1 where project_name = '{}'".format( self.deal_name)cs1.e...原创 2019-03-06 12:09:32 · 8359 阅读 · 2 评论 -
selenium.common.exceptions.WebDriverException: Message: unknown error:
源码self.driver.find_element_by_xpath('//*[@id="tag"]/div/div[2]/div/div[5]/span').click()问题selenium.common.exceptions.WebDriverException: Message: unknown error: Element <span data-v-5e7cbfab=""...原创 2019-02-14 14:43:18 · 15139 阅读 · 1 评论 -
error: The following untracked working tree files would be overwritten by merge:
问题:运行git pull错误信息:error: The following untracked working tree files would be overwritten by merge:解决办法:git clean -d -fx然后再 git pull转载 2019-04-19 13:54:57 · 55969 阅读 · 3 评论 -
urllib.error.URLError: urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_s
解决方案:全局取消证书验证import sslssl._create_default_https_context = ssl._create_unverified_context原创 2019-04-24 14:39:43 · 2047 阅读 · 1 评论