issues python3

Just for record python3

pip install timeout

pip3 install lxml

raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple lxml

‘int’ object does not support indexing

pgsql = """
SELECT id, employee_count FROM company
WHERE id = %s
"""
pg_cursor.execute(pgsql, (row["member_id"]))

pg_cursor.execute(pgsql, (row[“member_id”],))

not all arguments converted during string formatting

Incorrect number of arguments

most likely due to a circular import

python3 marisa_trie.py
Traceback (most recent call last):
File “/Users/sai/Documents/user-sai/ignore/marisa_trie.py”, line 1, in
import marisa_trie
File “/Users/sai/Documents/user-sai/ignore/marisa_trie.py”, line 3, in
trie = marisa_trie.Trie([u’key1’, u’key2’, u’key12’])
AttributeError: partially initialized module ‘marisa_trie’ has no attribute ‘Trie’ (most likely due to a circular import)

rename filename to another name


issues python3
https://blog.puresai.com/2023/12/01/501/
作者
puresai
许可协议