Closed EdwardTheLegend closed 2 years ago
Which version of Python is this?
3.9
Could you show me the output of ptg -v
?
❯ ptg -v
Traceback (most recent call last):
File "/home/[user]/.local/bin/ptg", line 33, in <module>
sys.exit(load_entry_point('pytermgui==0.4.1', 'console_scripts', 'ptg')())
File "/home/[user]/.local/bin/ptg", line 22, in importlib_load_entry_point
for entry_point in distribution(dist_name).entry_points
File "/usr/lib/python3.9/importlib/metadata.py", line 524, in distribution
return Distribution.from_name(distribution_name)
File "/usr/lib/python3.9/importlib/metadata.py", line 187, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: pytermgui
I didn't mean to close this yet. Could you try cloning the latest commit and installing using pip install .
? I think it should work now.
Odd that this problem never seemed to come up anywhere else. Thank you for the report!
Working now
Describe the bug A clear and concise description of what the bug is.
When I attempt to install pytermgui using pip the installation fails and throws an error
To Reproduce Steps to reproduce the behavior:
python3 -m pip install pytermgui
and hit enterExpected behavior A clear and concise description of what you expected to happen.
The installation to work successfully
Screenshots If applicable, add screenshots to help explain your problem.
System information
Alpine on WSL on Windows 10
Possible cause If you have a hunch on what might be causing this, please add it here.
Seems like something to do with the dataclass meaning that RegexHighlighter doesn't get an init ?
Possible solution If you know a way we could fix this, please add it here.
I don't know much about dataclasses but maybe this link is relevant