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
- ImportError: cannot import name Mistral from mistralai after mixing conda and pip installs
Importing the client failed with `ImportError: cannot import name 'Mistral' from 'mistralai'` even though the package appeared installed. The reporter had installed `mistralai` with conda, which gave the old 0.x release, and then with pip,
- 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
- pip install chromadb fails building the hnswlib wheel on macOS (clang errors)
On macOS 13.x, `pip install chromadb` failed while building the hnswlib wheel with clang errors such as "unknown type name 'nullptr_t'" and "command '/usr/bin/clang' failed with exit code 1". Multiple users hit this across Python 3.9 throug
- Handling DisambiguationError in the python wikipedia library
wikipedia.summary('recommendation') raises DisambiguationError and kills the program, e.g.: DisambiguationError: "Recommendation" may refer to: norm (philosophy), Recommender systems, European Union recommendation, W3C recommendation, lette
- Fix Snowflake connector MemoryError for ffi.callback() on Apple Silicon
On conda-installed Python on M1 Macs, snowflake-connector-python crashes with `MemoryError: Cannot allocate write+execute memory for ffi.callback()`. The root cause was a cffi build-time flag in conda-forge builds: the cffi package needs bu
- modern-treasury python SDK broken on fresh install: httpx dependency not pinned (1.43.x)
A clean `pip install modern-treasury` in a fresh venv (python 3.13), then `modern_treasury.ModernTreasury([credential]: [redacted] organization_id='456')`, crashed on client init — the traceback ran through `_client.py` into httpx internals
- Logz.io CloudWatch shipper misparses NodeJS Lambda logs (no log level)
The Logz.io CloudWatch logs shipper parses AWS Lambda log lines assuming a 3-part format (timestamp, requestID, message), but NodeJS Lambda logs have a 4-part format that includes the log level. On NodeJS functions the shipper misparses the
- Langflow components panel is empty after install (blank sidebar and canvas)
I had just installed Langflow on a Windows 10 PC, but the components panel on the left was completely empty and the canvas area stayed blank even when I opened preinstalled flows. Other people on the thread hit the same thing. One user dug
- `google-cloud-documentai` imports fail in GCP notebooks: kernel Python does not match pip
After `pip install google-cloud-documentai==0.3.0` (successful install), I get: `ImportError: cannot import name 'documentai_v1beta3' from 'google.cloud' (unknown location)`. This happens in multiple environments, including a GCP notebook i
- mailgun-python AsyncClient: malformed attachment when adding multiple files under the same key
With `AsyncClient`, passing multiple attachments under the same key fails with a malformed attachment object error. The same payload works with the synchronous `Client`, so the async file-handling logic differs. Version 1.6.0, Linux, Python
- Google Speech 400 Inline audio exceeds duration limit on files over 60 seconds
I am running speech to text in Python on audio files longer than 60 seconds and I get: 400 Inline audio exceeds duration limit. Please use a GCS URI. How do I transcribe longer local audio files?