0cc4m / KoboldAI

GNU Affero General Public License v3.0
150 stars 31 forks source link

NameError: name 'os' is not defined after last commit #26

Closed OValete closed 1 year ago

OValete commented 1 year ago

Traceback (most recent call last): File "aiserver.py", line 598, in koboldai_vars = koboldai_settings.koboldai_vars(socketio) File "/kaggle/tmp/KoboldAI/koboldai_settings.py", line 99, in init self._system_settings = system_settings(socketio, self) File "/kaggle/tmp/KoboldAI/koboldai_settings.py", line 1309, in init import gptq File "/kaggle/tmp/KoboldAI/runtime/envs/koboldai/lib/python3.8/site-packages/gptq/init.py", line 1, in from . import gptj, gptneox, llama, opt, offload File "/kaggle/tmp/KoboldAI/runtime/envs/koboldai/lib/python3.8/site-packages/gptq/gptj.py", line 9, in from .gptq import GPTQ File "/kaggle/tmp/KoboldAI/runtime/envs/koboldai/lib/python3.8/site-packages/gptq/gptq.py", line 8, in from .modelutils import GPTQVERSION File "/kaggle/tmp/KoboldAI/runtime/envs/koboldai/lib/python3.8/site-packages/gptq/modelutils.py", line 9, in GPTQVERSION = int(os.environ.get("GPTQVERSION", 1)) NameError: name 'os' is not defined

0cc4m commented 1 year ago

Thank you for the report, there was indeed a problem with the Linux wheel. I forgot to recompile, I think. I uploaded a new version, can you check if it fixes the problem? Rerunning install_requirements.sh should pull it.

OValete commented 1 year ago

It worked, thanksss ;D