InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: Instalation problem

Open lucasthomasbecher opened this issue 2 years ago • 16 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS

Windows

GPU

cpu

VRAM

12

What happened?

during the installation of invoke AI 2.2.5p1 I got this error message (could you help me, please? I have no coding knowledge):

AttributeError: module 'dns.rdtypes' has no attribute 'ANY'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "D:\IA\invokeai.venv\Scripts\configure_invokeai.py", line 24, in from transformers import CLIPTokenizer, CLIPTextModel File "", line 1075, in _handle_fromlist File "D:\IA\invokeai.venv\lib\site-packages\transformers\utils\import_utils.py", line 1084, in getattr value = getattr(module, name) File "D:\IA\invokeai.venv\lib\site-packages\transformers\utils\import_utils.py", line 1083, in getattr module = self._get_module(self._class_to_module[name]) File "D:\IA\invokeai.venv\lib\site-packages\transformers\utils\import_utils.py", line 1095, in _get_module raise RuntimeError( RuntimeError: Failed to import transformers.models.clip.modeling_clip because of the following error (look up to see its traceback): module 'dns.rdtypes' has no attribute 'ANY'

Screenshots

No response

Additional context

No response

Contact Details

[email protected]

lucasthomasbecher avatar Jan 15 '23 22:01 lucasthomasbecher

#2323

divn avatar Jan 15 '23 23:01 divn

I'm having the same issue as lucasthomasbecher, only I'm installing on a Mac OS.

Any help would be much appreciated. I have no coding knowledge either, sadly.

Thanks in advance.


File "/Users/ME/invokeai/.venv/lib/python3.10/site-packages/dns/zone.py", line 757, in Zone ) -> dns.rdtypes.ANY.SOA.SOA: AttributeError: module 'dns.rdtypes' has no attribute 'ANY'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/Users/ME/invokeai/./.venv/bin/configure_invokeai.py", line 23, in from transformers import CLIPTokenizer, CLIPTextModel File "", line 1075, in _handle_fromlist File "/Users/ME/invokeai/.venv/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1084, in getattr value = getattr(module, name) File "/Users/ME/invokeai/.venv/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1083, in getattr module = self._get_module(self._class_to_module[name]) File "/Users/ME/invokeai/.venv/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1095, in _get_module raise RuntimeError( RuntimeError: Failed to import transformers.models.clip.modeling_clip because of the following error (look up to see its traceback): module 'dns.rdtypes' has no attribute 'ANY'**


EuroCluddy avatar Jan 16 '23 00:01 EuroCluddy

Same on Windows, both with install.bat script and with manual conda install (when calling configure_invokeai.py)

MSDNAndi avatar Jan 16 '23 00:01 MSDNAndi

#2323

Thank you divn! now i have other problem, do you know how to solve it?

Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed.

We have compiled some common reasons and troubleshooting tips at:

https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  • The Python version is: Python3.11 from "D:\IA\invokeai.venv\Scripts\python.exe"
  • The NumPy version is: "1.23.5"

and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help.

Original error was: No module named 'numpy.core._multiarray_umath'

lucasthomasbecher avatar Jan 16 '23 00:01 lucasthomasbecher

Same problem.

This solution by blastewe actually worked for me : https://github.com/invoke-ai/InvokeAI/issues/2323#issuecomment-1383345030

fogostudio avatar Jan 16 '23 01:01 fogostudio

I'm having the same problem. This solution did not work.

VerifiedStoic avatar Jan 16 '23 01:01 VerifiedStoic

I'm having the same problem. This solution did not work.

don't forget to use -t option pip3 install dnspython==2.2.1 --upgrade -t c:\invokeai.venv\lib\site-packages

kvsft avatar Jan 16 '23 10:01 kvsft

ERROR on PC Installation

I try to install it already 4 times but can't and gives an error I don't understand seen lots of youtube videos trying to learn to install invoke ai, but really can't find to manage the installation ...

The above exception was the direct cause of the following exception:

"Traceback (most recent call last): File "C:\Users.....\invokeai.venv\Scripts\configure_invokeai.py", line 24, in from transformers import CLIPTokenizer, CLIPTextModel File "", line 1075, in _handle_fromlist File "C:\Users.....\invokeai.venv\lib\site-packages\transformers\utils\import_utils.py", line 1084, in getattr value = getattr(module, name) File "C:\Users.....\invokeai.venv\lib\site-packages\transformers\utils\import_utils.py", line 1083, in getattr module = self._get_module(self._class_to_module[name]) File "C:\Users.....-\invokeai.venv\lib\site-packages\transformers\utils\import_utils.py", line 1095, in _get_module raise RuntimeError( RuntimeError: Failed to import transformers.models.clip.modeling_clip because of the following error (look up to see its traceback): module 'dns.rdtypes' has no attribute 'ANY' Configuration failed. See above for error messages and check https://invoke-ai.github.io/InvokeAI/installation/INSTALL_AUTOMATED/#troubleshooting for potential solutions. The installer will exit now. Press any key to continue . . ."

The ..... is my name pc location I erased (name) erase but the message is this above, really can't go forward with the installation and I have a nice pc

Gonna Cry I am a total noob with codes I have the python-3.10.9-amd64 installed on my pc

pedrovenancio72 avatar Jan 16 '23 12:01 pedrovenancio72

Writing from my phone from an airport. You need to edit the file with a file name similar to "base req" and add a line saying dnspython==2.2.1 there if you use the install bat on windows ä. Sorry I can't look up the exact name right now.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Pedro Venancio @.> Sent: Monday, January 16, 2023 7:26:14 AM To: invoke-ai/InvokeAI @.> Cc: Andreas Erben @.>; Comment @.> Subject: Re: [invoke-ai/InvokeAI] [bug]: Instalation problem (Issue #2334)

ERROR on PC Installation

I try to install it already 4 times but can't and gives an error I don't understand seen lots of youtube videos trying to learn to install invoke ai, but really can't find to manage the installation ...

The above exception was the direct cause of the following exception:

"Traceback (most recent call last): File "C:\Users.....\invokeai.venv\Scripts\configure_invokeai.py", line 24, in from transformers import CLIPTokenizer, CLIPTextModel File "", line 1075, in _handle_fromlist File "C:\Users.....\invokeai.venv\lib\site-packages\transformers\utils\import_utils.py", line 1084, in getattr value = getattr(module, name) File "C:\Users.....\invokeai.venv\lib\site-packages\transformers\utils\import_utils.py", line 1083, in getattr module = self._get_module(self._class_to_module[name]) File "C:\Users.....-\invokeai.venv\lib\site-packages\transformers\utils\import_utils.py", line 1095, in _get_module raise RuntimeError( RuntimeError: Failed to import transformers.models.clip.modeling_clip because of the following error (look up to see its traceback): module 'dns.rdtypes' has no attribute 'ANY' Configuration failed. See above for error messages and check https://invoke-ai.github.io/InvokeAI/installation/INSTALL_AUTOMATED/#troubleshootinghttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Finvoke-ai.github.io%2FInvokeAI%2Finstallation%2FINSTALL_AUTOMATED%2F%23troubleshooting&data=05%7C01%7C%7C0cfbcc67e3204091835d08daf7bcdcee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638094687785455732%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=0O1lzGj6BjtMpqEUXpWBUddiSIfXgzbb9cPCDjc1ceQ%3D&reserved=0 for potential solutions. The installer will exit now. Press any key to continue . . ."

The ..... is my name pc location I erased (name) erase but the message is this above, really can't go forward with the installation and I have a nice pc

Gonna Cry I am a total noob with codes I have the python-3.10.9-amd64 installed on my pc

— Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Finvoke-ai%2FInvokeAI%2Fissues%2F2334%23issuecomment-1383980745&data=05%7C01%7C%7C0cfbcc67e3204091835d08daf7bcdcee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638094687785612064%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=e%2FaG9Zsy3u5WXeO3BkL%2Bi3OfTqoSvKlQuqre5a0X5VY%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABTOSD44E2V264GDJSL6MU3WSU46NANCNFSM6AAAAAAT4DSWGA&data=05%7C01%7C%7C0cfbcc67e3204091835d08daf7bcdcee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638094687785612064%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=D3OUJTPVUJEVRgbiKhAQR39fMa%2FUxNVJH1eCn7aD%2FH8%3D&reserved=0. You are receiving this because you commented.Message ID: @.***>

MSDNAndi avatar Jan 16 '23 13:01 MSDNAndi

same issue

and also missing invoke.bat file

despite

" Successfully built InvokeAI Installing collected packages: InvokeAI Successfully installed InvokeAI-2.2.5 Installation successful. "

haejoochang avatar Jan 16 '23 15:01 haejoochang

Did you get it via git clone or did you download the release zip? Use the release zip unless you want to contribute to development

Get Outlook for iOShttps://aka.ms/o0ukef


From: haejoochang @.> Sent: Monday, January 16, 2023 9:53:28 AM To: invoke-ai/InvokeAI @.> Cc: Andreas Erben @.>; Comment @.> Subject: Re: [invoke-ai/InvokeAI] [bug]: Instalation problem (Issue #2334)

same issue

and also missing invoke.bat file

despite

" Successfully built InvokeAI Installing collected packages: InvokeAI Successfully installed InvokeAI-2.2.5 Installation successful. "

— Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Finvoke-ai%2FInvokeAI%2Fissues%2F2334%23issuecomment-1384242530&data=05%7C01%7C%7C0b389547157d4daace3f08daf7d9cf7f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638094812102228626%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=wQ0dN7M6Q7rpGgFfGwIakoGgfAj4PAiojWC5zoVxgGQ%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABTOSD3NGLFC4BTSQ3FGF33WSVVHRANCNFSM6AAAAAAT4DSWGA&data=05%7C01%7C%7C0b389547157d4daace3f08daf7d9cf7f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638094812102228626%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=oD1WZQZrVXRIhEHj3gabOdyAkkJO2b%2BIyH0JbR0cTMc%3D&reserved=0. You are receiving this because you commented.Message ID: @.***>

MSDNAndi avatar Jan 16 '23 15:01 MSDNAndi

I'm having the same problem. This solution did not work.

don't forget to use -t option pip3 install dnspython==2.2.1 --upgrade -t c:\invokeai.venv\lib\site-packages

I finally saw that. I had to delete the two dns folders and then ran pip3 install dnspython==2.2.1 while still in that directory. Problem solved and installed fine after that.

VerifiedStoic avatar Jan 16 '23 18:01 VerifiedStoic

Guys, I have metered connection with only 50Gb/month. I don't wanna screw up. The installation is failed exactly like that. My install directory is "E:\InvokeAI\invokeai".

I've did this:

E:\InvokeAI>pip3 install dnspython==2.2.1 --upgrade -t E:\InvokeAI\invokeai\.venv\Lib\site-packages
Collecting dnspython==2.2.1
  Downloading dnspython-2.2.1-py3-none-any.whl (269 kB)
     |████████████████████████████████| 269 kB 544 kB/s
Installing collected packages: dnspython
Successfully installed dnspython-2.2.1

Is this correct? Should I re-install from the same .bat file, and it will work? I really can't afford failed installs/downloads once again...

Njordy avatar Jan 16 '23 22:01 Njordy

Did you get it via git clone or did you download the release zip? Use the release zip unless you want to contribute to development Get Outlook for iOShttps://aka.ms/o0ukef ________________________________ From: haejoochang @.> Sent: Monday, January 16, 2023 9:53:28 AM To: invoke-ai/InvokeAI @.> Cc: Andreas Erben @.>; Comment @.> Subject: Re: [invoke-ai/InvokeAI] [bug]: Instalation problem (Issue #2334) same issue and also missing invoke.bat file despite " Successfully built InvokeAI Installing collected packages: InvokeAI Successfully installed InvokeAI-2.2.5 Installation successful. " — Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Finvoke-ai%2FInvokeAI%2Fissues%2F2334%23issuecomment-1384242530&data=05%7C01%7C%7C0b389547157d4daace3f08daf7d9cf7f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638094812102228626%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=wQ0dN7M6Q7rpGgFfGwIakoGgfAj4PAiojWC5zoVxgGQ%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABTOSD3NGLFC4BTSQ3FGF33WSVVHRANCNFSM6AAAAAAT4DSWGA&data=05%7C01%7C%7C0b389547157d4daace3f08daf7d9cf7f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638094812102228626%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=oD1WZQZrVXRIhEHj3gabOdyAkkJO2b%2BIyH0JbR0cTMc%3D&reserved=0. You are receiving this because you commented.Message ID: @.***>

i used the released zip :[

haejoochang avatar Jan 17 '23 00:01 haejoochang

.zip

Njordy avatar Jan 17 '23 00:01 Njordy

Im also getting this type of error! :( have been on this for hours. If anyone can help id realy love it!

Displaying command line help... OpenCV bindings requires "numpy" package. Install it via command: pip install numpy Traceback (most recent call last): File "C:\Users\PC3\invokeai.venv\Lib\site-packages\numpy\core_init_.py", line 23, in from . import multiarray File "C:\Users\PC3\invokeai.venv\Lib\site-packages\numpy\core\multiarray.py", line 10, in from . import overrides File "C:\Users\PC3\invokeai.venv\Lib\site-packages\numpy\core\overrides.py", line 6, in from numpy.core._multiarray_umath import ( ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 198, in run_module_as_main File "", line 88, in run_code File "C:\Users\PC3\invokeai.venv\Scripts\invokeai.exe_main.py", line 4, in File "C:\Users\PC3\invokeai.venv\Lib\site-packages\ldm\invoke\CLI.py", line 15, in from ldm.generate import Generate File "C:\Users\PC3\invokeai.venv\Lib\site-packages\ldm\generate.py", line 15, in import cv2 File "C:\Users\PC3\invokeai.venv\Lib\site-packages\cv2_init.py", line 11, in import numpy File "C:\Users\PC3\invokeai.venv\Lib\site-packages\numpy_init_.py", line 140, in from . import core File "C:\Users\PC3\invokeai.venv\Lib\site-packages\numpy\core_init_.py", line 49, in raise ImportError(msg) ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed.

We have compiled some common reasons and troubleshooting tips at:

https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  • The Python version is: Python3.11 from "C:\Users\PC3\invokeai.venv\Scripts\python.exe"
  • The NumPy version is: "1.23.5"

and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help.

Original error was: No module named 'numpy.core._multiarray_umath'

livecleo avatar Feb 10 '23 03:02 livecleo

There has been no activity in this issue for 14 days. If this issue is still being experienced, please reply with an updated confirmation that the issue is still being experienced with the latest release.

github-actions[bot] avatar Mar 12 '23 06:03 github-actions[bot]