-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'documentation_helpers' #373
Comments
The module you are looking for is here, but is not distributed with Ragna as it is only needed for the documentation. Could you tell us how you are interacting with the tutorial? In the REST API tutorial there are two blocks that require the
|
One option for us could be to just move the documentation helpers into
I guess we could also ship the |
Hi there, I had also been trying to run this tutorial locally while setting up ragna. Hence I tried to debug the issue and noticed that To fix this I replaced - sys.path.insert(0, str(Path.cwd().parent))
import documentation_helpers with - cwd = Path(__file__).resolve().parent
while cwd:
if (cwd / 'docs').is_dir():
docs_path = cwd / 'docs'
break
cwd = cwd.parent
# If 'docs' directory is found, add it to the Python path
if docs_path:
sys.path.insert(0, str(docs_path))
import documentation_helpers But as @pmeier suggested moving the documentation helpers to |
Hi @arjxn-py 👋 We would love to have your contribution here. If you send a PR, tag me there so I can review it. |
@arjxn-py do you have a timeline for your contribution? I want to push a small bug fix release soon and this should be included. |
Apologies for the delay in response, I plan to fix this asap. I'm creating a branch & opening a PR to track progress in the meantime. |
Co-authored-by: Philip Meier <[email protected]>
commit 04168ab Author: Arjun Verma <[email protected]> Date: Wed May 1 12:35:41 2024 +0530 #373 Include documentation_helpers in module (#395) Co-authored-by: Philip Meier <[email protected]> commit f947f2d Author: Philip Meier <[email protected]> Date: Mon Apr 29 17:08:40 2024 +0200 bump mypy to 1.10 (#398) commit e0fe014 Author: Kevin Klein <[email protected]> Date: Mon Apr 29 12:52:49 2024 +0200 Add instructions to install from conda-forge. (#396) Co-authored-by: Philip Meier <[email protected]> commit 7963453 Author: Philip Meier <[email protected]> Date: Thu Apr 25 20:38:50 2024 +0200 use custom JSON type for database for more generic support (#389) commit 3a5b82d Author: William Black <[email protected]> Date: Wed Apr 24 01:37:48 2024 -0700 Remove Mosaic Assistant (#387)
Co-authored-by: Philip Meier <[email protected]>
Co-authored-by: Philip Meier <[email protected]>
Bug description
Following the tutorial, I'm stuck at the first code block at the line
I pip installed ragna successfully
How to reproduce the bug?
If I run this in python 3.10.12 on Ubuntu
I get
Versions and dependencies used
Python 2.10.12
Ragna ragna 0.2.0
Ubuntu 22.04.2 LTS
Anything else?
No response
The text was updated successfully, but these errors were encountered: