Skip to main content

83 posts tagged with "Python"

Python Programming Language

View All Tags

Fixed: SADeprecationWarning "The noload loader strategy is deprecated" When You Run pytest with MLflow

· 7 min read
Jagdish Kumawat
Founder @ Dewiride

pytest passed all 12 tests of a project that logs to MLflow, then printed a warnings summary: SADeprecationWarning: The ``noload`` loader strategy is deprecated. It comes from MLflow 3.18.0's SQL tracking store meeting SQLAlchemy 2.1, and MLflow fixed it the day after 3.18.0 shipped. Until a release includes the fix, one filterwarnings line hides exactly this warning in your tests.

Fixed: "Exception ignored on threading shutdown" KeyboardInterrupt When You Stop the MLflow Server

· 9 min read
Jagdish Kumawat
Founder @ Dewiride

Pressing Ctrl+C to stop MLflow 3.18.0's tracking server printed Exception ignored on threading shutdown: and a KeyboardInterrupt traceback from Python's own threading.py. Nothing crashed: the server stopped cleanly, and the message comes from its background job runner being interrupted at exit. If you don't use MLflow's server jobs, MLFLOW_SERVER_ENABLE_JOB_EXECUTION=false makes it go away.

Fixed: "StarletteDeprecationWarning: starlette.middleware.wsgi is deprecated" When You Start the MLflow Server

· 8 min read
Jagdish Kumawat
Founder @ Dewiride

Starting MLflow 3.18.0's tracking server printed StarletteDeprecationWarning: starlette.middleware.wsgi is deprecated four times. Nothing was wrong with my setup: the warning comes from MLflow's own code meeting Starlette 1.10.0, and the server works. One PYTHONWARNINGS filter hides this warning, and only this one, until MLflow changes its code.

Fixed: "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate" in Python on macOS

· 7 min read
Jagdish Kumawat
Founder @ Dewiride

A Python script on my Mac couldn't open an HTTPS address: ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate. curl opened the same address without a problem. Python from python.org brings its own OpenSSL, which doesn't use the Mac's certificates, and the fix is a script that comes with it: Install Certificates.

Build an AI Lead Qualification Agent with Claude and Python — Part 7: Test the Lead Qualifier with pytest

· 29 min read
Jagdish Kumawat
Founder @ Dewiride

The last part turns the Lead Qualifier into something you can change without fear. You test the whole API, every failure from Part 6 included, with a fake that stands in for Claude, so the tests run in a fraction of a second and never cost a cent. Then you add a quality gate and a README, release version 1.0.0, and look back at everything you built.

Build an AI Lead Qualification Agent with Claude and Python — Part 6: Handle Errors and Log Safely

· 29 min read
Jagdish Kumawat
Founder @ Dewiride

Every service that depends on another service will one day see it fail. In this part the Lead Qualifier learns to fail well. Every problem with Claude becomes a clear HTTP response the caller can act on, slow requests stop at a timeout, and every lead writes one log line with its cost. That line says nothing about the customer.

Build an AI Lead Qualification Agent with Claude and Python — Part 5: Score and Prioritize Leads You Can Explain

· 23 min read
Jagdish Kumawat
Founder @ Dewiride

Claude now reports the facts about every inquiry. In this part your own code turns those facts into a decision: a lead score from 0 to 100, a priority, and the reason behind every single point. The rules fit on one screen, a salesperson can read them, and a tricky sender cannot talk their way to the top of the list.

Build an AI Lead Qualification Agent with Claude and Python — Part 4: Qualify Your First Lead with Claude Structured Outputs

· 31 min read
Jagdish Kumawat
Founder @ Dewiride

This is the part where the Lead Qualifier starts thinking. You write the instructions Claude follows, send each inquiry to Claude with the official Python SDK, and get back a validated LeadAnalysis every time. By the end, a real sales inquiry goes in through your API and comes back as clean, structured JSON in about five seconds.

Build an AI Lead Qualification Agent with Claude and Python — Part 3: Design the Lead Data Model with Pydantic

· 29 min read
Jagdish Kumawat
Founder @ Dewiride

Before you ask Claude to qualify a lead, decide exactly what a qualified lead looks like. In this part you design that shape as Pydantic models. Claude will be forced to follow it, your code will rely on it and your CRM will receive it. Then you lock it in with tests that run in under a second and never cost a cent.