Skip to content

Conversation

@YuriNachos
Copy link

🎯 Summary

Fixes #1553

📝 Description

The codebase imports from playwright_stealth module (e.g., StealthConfig, stealth_async, stealth_sync with capital S) which is only available in the playwright-stealth package, not tf-playwright-stealth.

🔧 Changes

  • pyproject.toml: Changed tf-playwright-stealth>=1.1.0 to playwright-stealth>=2.0.0
  • requirements.txt: Changed tf-playwright-stealth>=1.1.0 to playwright-stealth>=2.0.0
  • tests/check_dependencies.py: Updated mapping from 'playwright_stealth': 'tf-playwright-stealth' to 'playwright_stealth': 'playwright-stealth'

✅ Why This Matters

  • tf-playwright-stealth only exports lowercase names: stealth, stealth_async, StealthConfig
  • playwright-stealth exports the correct names with capital S: Stealth, StealthConfig
  • The code imports from playwright_stealth import StealthConfig (capital S), which only exists in playwright-stealth

📚 Package Comparison

Package Exports crawl4ai needs crawl4ai declared
tf-playwright-stealth stealth (lowercase) ❌ Wrong ✅ This one (BUG!)
playwright-stealth Stealth (capital S) ✅ Correct ❌ Not declared

Co-Authored-By: Claude noreply@anthropic.com

Fixes unclecode#1553

The code imports from `playwright_stealth` module (e.g., StealthConfig,
stealth_async, stealth_sync with capital S) which is only available in
the `playwright-stealth` package, not `tf-playwright-stealth`.

Changed dependency from:
- tf-playwright-stealth>=1.1.0 (wrong package, exports lowercase names)
to:
- playwright-stealth>=2.0.0 (correct package, exports StealthConfig)

This fixes the mismatch between declared dependency and actual imports
in the codebase.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Wrong dependency declared: tf-playwright-stealth only exports lowercase stealth, stealth_async, StealthConfig

1 participant