Posts tagged python
Optional Dependencies With Poetry
Some Python dependencies require build tools which can be problematic when running inside Docker or CI environment. Often these packages are also needed only in development or production so having them as optional dependencies can be really useful. I just learned that Poetry can do this. First, install your dependency with --optional flag:
· Read the full article →Fixing "Error loading MySQLdb module" on macOS 10.15 Catalina
MySql gets usually installed on MacOS by Brew, which installs a bunch of dylib libraries in /usr/local/opt/mysql/lib/. For some reason my Python installation is looking for wrong version of these files and I’ve yet to find a proper solution for matching up the dependencies. The error message looks like this:
· Read the full article →