Category: Python
Here's an overview of the blog article translated into English: The article discusses how to avoid the `httpx.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Basic Constraints of CA cert not marked critical (_ssl.c:1020)` error when making requests to a server using a self-signed certificate in Python 3.13. The error occurs because the certificate verification process fails due to the basic constraints of the CA certificate not being marked as critical. The article likely provides a step-by-step guide or workaround to bypass or resolve this SSL verification issue, ensuring successful communication with the server using the `httpx` library.
This blog post covers the steps to build a Python 3.12 environment and discusses how to create a new virtual environment using Pipenv. It focuses on a specific issue that might arise when running the `pipenv install` command, which results in the error: AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'? The post provides a detailed checklist and solutions to address this error.
Here is an English translation of the summary for a blog post on how to address the error "symbol not found in flat namespace '_mysql_affected_rows'" when attempting to use MySQLdb in Python: --- **How to Address the "symbol not found in flat namespace '_mysql_affected_rows'" Error When Using MySQLdb in Python** In this blog post, we will discuss the steps to resolve the error "symbol not found in flat namespace '_mysql_affected_rows'" that may occur when attempting to use the MySQLdb library in Python. This error typically arises due to issues with the MySQLdb installation or compatibility problems between the library and your system. We will explore various troubleshooting methods and provide detailed instructions to help you get MySQLdb running smoothly.
Here's the English translation of the summary of the Japanese blog article: "When trying to install 'npm install fibers (node-fibers)' and encountering the error 'ValueError: invalid mode: 'rU' while trying to load binding.gyp', you can resolve this issue by editing the 'node-gyp/gyp/pylib/gyp/input.py' file and removing the 'U' from the mode."
When attempting to create a Python 3.10 environment using `pipenv install` and encountering the error "RuntimeError: location not created nor specified," it may be due to using the pipenv installed in a Python 3.9 environment. To resolve this issue, you should install pipenv in the Python 3.10 environment.
When using version locking systems like Pipenv to set up a Python environment with an Alpine Linux Docker image, installations often encounter difficulties. If installing `cryptography` via Rust is unsuccessful (or too slow and thus undesirable), it is more effective to install `cryptography` via `apk` rather than through Pipenv.
Although creating a lock file with `pipenv lock` on an Intel Mac works without issues, attempting the same on an M1 (Apple Silicon) (ARM) Mac results in an error and the lock file cannot be created. However, by running `arch -x86_64 zsh` to emulate an x86_64 environment using Rosetta, `pipenv lock` executes successfully.
How to Avoid the #include <crc32c/crc32c.h> Error When Trying to Install google-crc32c==1.1.3 on Alpine Linux. If you encounter the error "ERROR: Failed building wheel for google-crc32c" or "error: command 'gcc' failed with exit status 1," setting the environment variable CRC32C_PURE_PYTHON=1 can help resolve the issue.
Up until now, I had been writing custom thread pools using threading.Thread, but I thought there must be something provided by Python already. So, I did some searching and found that multiprosessing.pool.Pool was exactly what I was looking for. Creating a process pool is super easy with it. What was I doing all this time?
Traceback (most recent call last): File "/Applications/Develop/PyCharm.app/helpers/pycharm/django_test_manage.py", line 51, in <module> django.setup() ... File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/importlib/__init__.py", line 109, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 2254, in _gcd_import File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed ... File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/ssl.py", line 97, in <module> import _ssl # if we can't import it, let the error propagate ImportError: dlopen(/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/lib-dynload/_ssl.so, 2): Symbol not found: _SSLv2_method Referenced from: /usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/lib-dynload/_ssl.so Expected in: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib in /usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/lib-dynload/_ssl.so I started getting this error.
Recent Posts
- Skill + CLI over MCP: Replacing Sentry MCP with a multi-profile CLI wrapper
- Turning Raspberry Pi into a Signage Display with Playwright and Chromium Kiosk Mode
- Docker 29 breaks docker push to ECR with 403 Forbidden on GitHub Actions
- How to Add "Copy Full File Path to Clipboard" to Finder's Services Menu
- How to turn Orange Pi Zero 2W into a Web Signage Display
Recent Deliverables
Categories
- Django (66)
- Python (49)
- mac (22)
- Linux (17)
- kubernetes (15)
- iOS (11)
- MySQL (10)
- Raspberry-Pi (8)
- AWS (7)
- PHP (6)
- Javascript (5)
- PC/Etc (5)
- Docker (5)
- Android (4)
- Bicycle (4)
- (4)
- nuxt (3)
- css (3)
- nginx (3)
- Bootstrap (3)
- Flutter (3)
- Shellscript(Bash/Zsh) (3)
- Making (2)
- Windows (2)
- HTML (2)
- (1)
- Ebook (1)
- Rails (1)
- Microcontrollers (1)
- less (1)
- Ansible (1)
- (1)
- (1)