How to install easyeda2kicad on Linux
sudo pip install easyeda2kicad pydantic==1.10.7
mkdir -p ~/Documents/Kicad/easyeda2kicad
This will fix both this pydantic
error:
Traceback (most recent call last):
File "/usr/local/bin/easyeda2kicad", line 5, in <module>
from easyeda2kicad.__main__ import main
File "/usr/local/lib/python3.10/dist-packages/easyeda2kicad/__main__.py", line 12, in <module>
from easyeda2kicad.easyeda.easyeda_importer import (
File "/usr/local/lib/python3.10/dist-packages/easyeda2kicad/easyeda/easyeda_importer.py", line 6, in <module>
from easyeda2kicad.easyeda.parameters_easyeda import *
File "/usr/local/lib/python3.10/dist-packages/easyeda2kicad/easyeda/parameters_easyeda.py", line 26, in <module>
class EeSymbolPinSettings(BaseModel):
File "/usr/local/lib/python3.10/dist-packages/pydantic/_internal/_model_construction.py", line 131, in __new__
cls.__pydantic_decorators__ = DecoratorInfos.build(cls)
File "/usr/local/lib/python3.10/dist-packages/pydantic/_internal/_decorators.py", line 414, in build
res.validators[var_name] = Decorator.build(
File "/usr/local/lib/python3.10/dist-packages/pydantic/_internal/_decorators.py", line 249, in build
func = shim(func)
File "/usr/local/lib/python3.10/dist-packages/pydantic/_internal/_decorators_v1.py", line 77, in make_generic_v1_field_validator
raise PydanticUserError(
pydantic.errors.PydanticUserError: The `field` and `config` parameters are not available in Pydantic V2, please use the `info` parameter instead.
For further information visit https://errors.pydantic.dev/2.0.2/u/validator-field-config-info
and this error related to the missing directory:
-- easyeda2kicad.py v0.6.3 --
Traceback (most recent call last):
File "/usr/local/bin/easyeda2kicad", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/easyeda2kicad/__main__.py", line 239, in main
if not valid_arguments(arguments=arguments):
File "/usr/local/lib/python3.10/dist-packages/easyeda2kicad/__main__.py", line 161, in valid_arguments
os.mkdir(default_folder)
FileNotFoundError: [Errno 2] No such file or directory: '/home/uli/Documents/Kicad/easyeda2kicad'