CrossMap icon indicating copy to clipboard operation
CrossMap copied to clipboard

Installing v0.7.0 makes python 3.11 coredump when help('modules') is called

Open t-kreitler opened this issue 5 months ago • 2 comments

Hi,

After installing CrossMap with pip, running python -c 'help("modules")' yields:

Please wait a moment while I gather a list of all available modules...
Segmentation fault (core dumped)

I suspect that src/__init__.py is misplaced. It gets installed directly in site_packages and may cause some trouble when python tries to find all modules via pkgutil.walk_packages().

Removing the file and a pip install . from the repo did solve the issue in my case.

Best, Thomas

t-kreitler avatar Jan 30 '24 10:01 t-kreitler

Thanks, Thomas. What is the appropriate place to put the src/__init__.py?

liguowang avatar Jan 30 '24 15:01 liguowang

I would say the __init__.py in src/cmmodule should be sufficient, and the empty one in src can just go.

t-kreitler avatar Jan 30 '24 15:01 t-kreitler