language · inferred from evidence
Python
A programming language used for code examples with the streamlit package API.
- TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' when Recurly...
On recurly-client-python 3.x (3.4.2, python 3.8), hitting the API rate limit crashed the client instead of raising a proper rate-limit error. The traceback ended at `self.rate_limit = int(self.__headers.get("X-RateLimit-Limit"))` in respons
- pip install whylogs fails on Windows: No matching distribution for whylabs-datasketches
On Windows 10 with a conda Python 3.8 env, `pip install whylogs==0.4.8` fails with `ERROR: No matching distribution found for whylabs-datasketches==2.2.0b1`. The same install works on Linux. The protobuf import error was a red herring from
- ImportError: cannot import name 'Client' from 'twilio.rest' (unknown location)
On Windows, installing twilio-python 6.36.0 via pip and then running `from twilio.rest import Client` fails with `ImportError: cannot import name 'Client' from 'twilio.rest' (unknown location)`. The import path reports as unknown location e
- Semgrep setup.py install throws exception pip install semgrep 0.31.1
Installing semgrep via `python setup.py install` (e.g. as a dependency of Mobile-Security-Framework-MobSF) throws a traceback during the install: the setup.py unconditionally depends on the `wheel` package, which fails in environments where
- ValueError: Port could not be cast to integer value when connecting to Qovery Postgres from Python
Created a Postgres database in Qovery, copied the db_url from the dashboard, and used it with SQLAlchemy and the databases library in Python. Every connection attempt raised ValueError: Port could not be cast to integer value, pointing at p
- pip install splunk-sdk fails on Python 3.12: Getting requirements to build wheel did not run successfully
pip install splunk-sdk blows up on Python 3.12. The install fails while building the wheel for splunk-sdk 1.7.4, with "Getting requirements to build wheel did not run successfully" and a subprocess-exited-with-error traceback coming from in
- LangSmith Python SDK memory grows in long-running apps (RunTree kept in memory)
Long-running Python app using LangGraph/LangChain (asyncio.gather with create_task, one graph per task). Memory grows steadily over time, but only when LangSmith tracing is enabled. tracemalloc and objgraph show RunTree objects accumulating
- python wikipedia library: random()/page() throws JSONDecodeError (429 on default user-agent)
wikipedia.random() (and other calls) started throwing requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0), raised from wikipedia.py's _wiki_request at r.json(). The program made very few requests (sometimes one pe
- New Relic Python agent ignores HTTPS_PROXY (use NEW_RELIC_PROXY_HOST)
Two identical services: agent 6.0.0.154 never registers with New Relic in a network with no default route (proxy only), while 5.24.0.153 works with HTTPS_PROXY. Giving the v6 service a direct route makes it register, so the agent is ignorin
- modern-treasury python: Idempotency-Key passed via extra_headers gets overwritten
Setting a custom idempotency key via `extra_headers={'Idempotency-Key': 'mykey123'}` on e.g. `client.payment_orders.create(...)` didn't stick: framework code looked for `options.idempotency_key` and overwrote the header with its own generat