mindgraph icon indicating copy to clipboard operation
mindgraph copied to clipboard

ModuleNotFoundError: No module named 'typeid'

Open wuzimi opened this issue 1 year ago • 7 comments

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'

wuzimi avatar Mar 17 '24 05:03 wuzimi

Try pip install typeid-python nexus_python, it works.

jerlinn avatar Mar 17 '24 16:03 jerlinn

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 

feraranas avatar Mar 18 '24 01:03 feraranas

Thanks guys! It works now.

wuzimi avatar Mar 18 '24 01:03 wuzimi

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

simpleusername96 avatar Mar 18 '24 02:03 simpleusername96

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>

feraranas avatar Mar 18 '24 02:03 feraranas

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

simpleusername96 avatar Mar 18 '24 03:03 simpleusername96

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:

solvaholic avatar Aug 12 '24 12:08 solvaholic