yoheinakajima / mindgraph

proof of concept prototype for generating and querying against an ever-expanding knowledge graph with ai
839 stars 105 forks source link

ModuleNotFoundError: No module named 'typeid' #3

Open wuzimi opened 6 months ago

wuzimi commented 6 months ago

C:\Users\Administrator\Documents\GitHub\mindgraph>python main.py Traceback (most recent call last): File "C:\Users\Administrator\Documents\GitHub\mindgraph\main.py", line 1, in from app import create_app File "C:\Users\Administrator\Documents\GitHub\mindgraph\app__init.py", line 23, in from .integrations.database import CurrentDBIntegration File "C:\Users\Administrator\Documents\GitHub\mindgraph\app\integrations\database\init__.py", line 4, in from .nexus import NexusDBIntegration File "C:\Users\Administrator\Documents\GitHub\mindgraph\app\integrations\database\nexus.py", line 15, in from typeid import TypeID, get_prefix_and_suffix as typeid_prefix ModuleNotFoundError: No module named 'typeid'

jerlinn commented 6 months ago

Try pip install typeid-python nexus_python, it works.

feraranas commented 5 months ago

The project is using Poetry for dependency management, since it has a pyproject.toml file.

So, to install the missing typeid module using Poetry:

this will create a virtual environment for the project, so now run:

wuzimi commented 5 months ago

Thanks guys! It works now.

simpleusername96 commented 5 months ago

The project is using Poetry for dependency management, since it has a pyproject.toml file.

So, to install the missing typeid module using Poetry:

  • ensure you have poetry installed
  • run poetry install . This will install all the required packages

this will create a virtual environment for the project, so now run:

  • poetry run python main.py

i'm getting this message after this Current Python version (3.11.3) is not allowed by the project (>=3.10.0,<3.11).

guess i'd just have to use python3.10

feraranas commented 5 months ago

The project is using Poetry for dependency management, since it has a pyproject.toml file. So, to install the missing typeid module using Poetry:

  • ensure you have poetry installed
  • run poetry install . This will install all the required packages

this will create a virtual environment for the project, so now run:

  • poetry run python main.py

i'm getting this message after this Current Python version (3.11.3) is not allowed by the project (>=3.10.0,<3.11).

guess i'd just have to use python3.10

Also, if you run into other dependency errors run poetry add <name_of_dependency>

simpleusername96 commented 5 months ago

i had to do 'poetry add beautifulsoup4', eventhough beautifulsoup4 was in [tool.poetry.dependencies] under pyproject.toml

solvaholic commented 1 month ago

guess i'd just have to use python3.10

:+1: See also https://github.com/yoheinakajima/mindgraph/issues/12 about that requirement.

Thanks guys! It works now.

@wuzimi Since this is resolved, would you close the issue? :bow: