Skip to content

Updating to Pydantic >3.11.9 causes TypeError on import #1464

@Mycsina

Description

@Mycsina

After updating to Pydantic 3.12.0, when importing the AdaptivePlaywrightCrawler I get the following exception:

TypeError: cannot specify both default and default_factory

After inspecting more closely, the exception is triggered when these BaseModels are created:

Removing the three assignments stops the exception from being raised, albeit it causes these warnings to appear when they previously didn't, seems to be related to my configuration:

[crawlee._service_locator] WARN  No configuration set, implicitly creating and using default Configuration.
[crawlee._service_locator] WARN  No storage client set, implicitly creating and using default FileSystemStorageClient. 
[crawlee._service_locator] WARN  No event manager set, implicitly creating and using default LocalEventManager.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions