thunlp / DeepTHULAC

A High-Performance Lexical Analyzer for Chinese
MIT License
19 stars 2 forks source link

Encounting Import Error #4

Closed xukp20 closed 10 months ago

xukp20 commented 10 months ago

Running the given demo code results in:

ImportError: cannot import name 'LacModel' from partially initialized module 'deepthulac' (most likely due to a circular import) (/root/miniconda3/envs/etune2/lib/python3.11/site-packages/deepthulac/init.py)

Rolling back the version of deepthulac doesn't seem to solve this problem. Is this relevant to my env or are there any other configurations?

xukp20 commented 10 months ago

Solved: It was because the existing function name inside the package is the same as some files in my project.