brucepro / Memoir

Memoir+ a persona extension for Text Gen Web UI. That includes memory, emotions, command handling and more.
MIT License
174 stars 21 forks source link

ModuleNotFoundError: No module named 'python_on_whales' #18

Closed Murphy1227 closed 8 months ago

Murphy1227 commented 9 months ago

i'm having this error, can anyone help me?

i had this error: Traceback (most recent call last): File "E:\IA\Texto\Oobabooga\text-generation-webui\modules\extensions.py", line 37, in load_extensions extension = importlib.import_module(f"extensions.{name}.script") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\IA\Texto\Oobabooga\text-generation-webui\installer_files\env\Lib\importlibinit.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "E:\IA\Texto\Oobabooga\text-generation-webui\extensions\Memoir\script.py", line 23, in from python_on_whales import DockerClient ModuleNotFoundError: No module named 'python_on_whales'

Murphy1227 commented 9 months ago

i am running without the docker, how should i fix it?

brucepro commented 9 months ago

pip install python_on_whales Should of been installed when you cd to extensions/Memoir and did pip install -r requirements.txt

brucepro commented 9 months ago

Ahh, without docker you can just remove the import from the top of the script and make sure the code in setup() is removed except for the pass

Murphy1227 commented 9 months ago

Now i am having this error XD:

File "E:\IA\Texto\Oobabooga\text-generation-webui\modules\extensions.py", line 37, in load_extensions extension = importlib.import_module(f"extensions.{name}.script") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\IA\Texto\Oobabooga\text-generation-webui\installer_files\env\Lib\importlib__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "E:\IA\Texto\Oobabooga\text-generation-webui\extensions\Memoir\script.py", line 12, in from extensions.Memoir.commandhandler import CommandHandler File "E:\IA\Texto\Oobabooga\text-generation-webui\extensions\Memoir\commandhandler.py", line 6, in from extensions.Memoir.persona.persona import Persona File "E:\IA\Texto\Oobabooga\text-generation-webui\extensions\Memoir\persona\persona.py", line 4, in from textblob import TextBlob ModuleNotFoundError: No module named 'textblob'

Murphy1227 commented 9 months ago

This extension should have 2 different downloads, one configured for docker and the other without @_@

brucepro commented 9 months ago

It seems like you didnt cd over to the extension folder. ie textgen/extension/Memoir and run pip install -r requirements.txt

Murphy1227 commented 9 months ago

Bruh, its just error after error ;-;

Traceback (most recent call last): File "E:\IA\Texto\Oobabooga\text-generation-webui\modules\extensions.py", line 37, in load_extensions extension = importlib.import_module(f"extensions.{name}.script") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\IA\Texto\Oobabooga\text-generation-webui\installer_files\env\Lib\importlib__init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "E:\IA\Texto\Oobabooga\text-generation-webui\extensions\Memoir\script.py", line 20, in current_dir = os.path.dirname(os.path.abspath(file__)) ^^ NameError: name 'os' is not defined

brucepro commented 9 months ago

cd E:\IA\Texto\Oobabooga\text-generation-webui\extensions\Memoir pip install -r requirements.txt

Murphy1227 commented 9 months ago

i already did this @_@ 2 times

brucepro commented 9 months ago

And are you inside the textgenui conda environment?

Murphy1227 commented 9 months ago

YES

Murphy1227 commented 9 months ago

the cmd_windows.bat right?

brucepro commented 9 months ago

yes, or you can start_windows.bat and then just ctrl c and you will be in the conda environment. From there you can do pip install os Not sure why it isn't installing the requirements file. You can do it manually by pip install each of these: qdrant_client textblob validators sentence_transformers newspaper3k langchain==0.1.6 langchain-community==0.0.19 unstructured unstructured[pdf] pypdf pypandoc rapidocr-onnxruntime

Murphy1227 commented 9 months ago

Okay, i will try.

Murphy1227 commented 9 months ago

i still having the same problem, how do i pip install the OS? its not installing it...

pip install OS ERROR: Could not find a version that satisfies the requirement OS (from versions: none) ERROR: No matching distribution found for OS

and after that i installed the requiriments manually it still the same:

Traceback (most recent call last): File "E:\IA\Texto\Oobabooga\text-generation-webui\modules\extensions.py", line 37, in load_extensions extension = importlib.import_module(f"extensions.{name}.script") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\IA\Texto\Oobabooga\text-generation-webui\installer_files\env\Lib\importlib__init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "E:\IA\Texto\Oobabooga\text-generation-webui\extensions\Memoir\script.py", line 19, in current_dir = os.path.dirname(os.path.abspath(file__)) ^^ NameError: name 'os' is not defined

brucepro commented 9 months ago

Will see what I can find. I don't have a mac to test.

brucepro commented 9 months ago

Try pip install os-sys the strange thing is that os is usually part of the defaul python install.

wardensc2 commented 8 months ago

Hi I just do the fresh install of Textgen webui. Update everything, install Memoir+ requirement in venv, install every requirements in update wizard now Memoir+ require Docker have more privileges. What should I do, I already am admin user:

Please check this log

image