I built a python module, and tried to submit it to pypi with twine. But I get a confusing error ImportError: No module named pathlib
. pathlib is a standard lib in python as os.path that does not report error.
Following is the code
import pathlib
from setuptools import setup
def read(fname):
"""
define read method to read the long description.
It will be shown in PyPI"""
return pathlib.Path(fname).read_text()