Open davidn opened 2 weeks ago
Thanks for raising this issue! @davidn
I've pushed some changes to address them. Please let me know if this resolves it for you!!
Install works perfectly now! When I run I get the following error:
Traceback (most recent call last):
File "/home/david/Projects/ReadMe-Generator/.venv/bin/readme-generator", line 5, in <module>
from readme_generator.__main__ import main
File "/home/david/Projects/ReadMe-Generator/.venv/lib/python3.11/site-packages/readme_generator/__main__.py", line 3, in <module>
from .cli import main
File "/home/david/Projects/ReadMe-Generator/.venv/lib/python3.11/site-packages/readme_generator/cli.py", line 8, in <module>
from .generator import ReadmeGenerator
File "/home/david/Projects/ReadMe-Generator/.venv/lib/python3.11/site-packages/readme_generator/generator.py", line 11, in <module>
from . import logger
File "/home/david/Projects/ReadMe-Generator/.venv/lib/python3.11/site-packages/readme_generator/logger/__init__.py", line 1, in <module>
from .logger import error, success, warning, get_progress, console
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'console' from 'readme_generator.logger.logger' (/home/david/Projects/ReadMe-Generator/.venv/lib/python3.11/site-packages/readme_generator/logger/logger.py)
(Edit: delete a suggested fix which is not sufficient)
@davidn I've added some changes to reduce the install friction and updated the install instructions. Let me know if that resolves the issue here!
I am attempting to install ReadMe-Generator and encountered the following issues while following the README:
On install step 2, running
npm install -g repopack
I get the following error:I suggest updating the step to either indicate running as sudo or only require a non-global install (the latter being my personal preference, but a bit more work)
On usage step 2, running
readme-generator
fails with the following error:It looks like we're missing an install step
pip install .
After installing readme-generator, running it fails with the following error:
It looks like you are missing the
__init__.py
file in thesrc/logger
directory needed to make pip install pick up that package. When I add an init file withfrom .logger import *
it works. (You could also move logger/logger.py to logger/init.py)