This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.
Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.
- You are using Python on macOS M1 (or M2, etc) and are trying to install a Python library which uses a native library.
- You install the Python library (e.g. using
pip) and the native library (using Homebrew). - You get an error saying that the native library cannot be located even though it's installed using Homebrew.
Example: You are trying to use e.g. pyfluidsynth. You've installed pyfluidsynth with pip, and also ran brew install fluidsynth. However, import fluidsynth still gives an error:
ImportError: Couldn't find the FluidSynth library.
Moved here.
| import sys | |
| import time | |
| import asyncio | |
| import threading | |
| import traceback | |
| import concurrent.futures | |
| import discord | |
| from discord.ext import commands |
| import xml.etree.ElementTree as ET | |
| import json | |
| import sys | |
| import re | |
| def load(name): | |
| root = ET.parse(name) | |
| return json.loads(root.findtext('./string')) | |
| def normalize(record): |
| # Requires pyyaml | |
| import os | |
| import yaml | |
| run = os.system | |
| new_window = lambda cmd: run('tmux new-window -n "logs" "{}"'.format(cmd)) | |
| split_vertical = lambda cmd: run('tmux split-window "{}"'.format(cmd)) | |
| split_horizontal = lambda cmd: run('tmux split-window -h "{}"'.format(cmd)) | |
| even_vertical = lambda: run('tmux select-layout even-vertical') |
| # basic dependencies | |
| import discord | |
| from discord.ext import commands | |
| # aiohttp should be installed if discord.py is | |
| import aiohttp | |
| # PIL can be installed through | |
| # `pip install -U Pillow` | |
| from PIL import Image, ImageDraw |
[ Update 2025-03-24: Commenting is disabled permanently. Previous comments are archived at web.archive.org. ]
Most of the terminal emulators auto-detect when a URL appears onscreen and allow to conveniently open them (e.g. via Ctrl+click or Cmd+click, or the right click menu).
It was, however, not possible until now for arbitrary text to point to URLs, just as on webpages.
