misp-modules icon indicating copy to clipboard operation
misp-modules copied to clipboard

uwhois module not installed.

Open giray opened this issue 9 years ago • 13 comments

I'm getting an error

uwhois module not installed.

I've installed uwhoisd, but I cannot find a uwhois module ...

pip3 list | grep -i whois
cymruwhois (1.0)
uwhoisd (0.0.7)
whois (0.7)

giray avatar Sep 02 '16 13:09 giray

What is the output of:

pip install -U git+https://github.com/Rafiot/uwhoisd.git@testing#egg=uwhois&subdirectory=client

We had a problem is you use an old version of pip, so maybe you want to try the following before reinstalling uwhoisd client:

pip install -U pip

Rafiot avatar Sep 06 '16 18:09 Rafiot

So I removed the OS installed pip, and have

pip 8.1.2 from /usr/local/lib/python3.4/dist-packages (python 3.4)

however, I get the following error now when I query uwhoisd

2016-09-07 10:28:07,115 INFO:uwhoisd    Querying whois.verisign-grs.com about google.com
2016-09-07 10:28:07,116 ERROR:uwhoisd   Unknown exception when querying 'domain  google.com'
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/uwhoisd-0.0.7-py3.4.egg/uwhoisd/net.py", line 65, in whois
    self.sock.sendall('{0}\r\n'.format(query).encode())
AttributeError: 'WhoisClient' object has no attribute 'sock'
2016-09-07 10:28:07,116 ERROR:uwhoisd   Empty response for google.com

any ideas?

giray avatar Sep 07 '16 08:09 giray

(for the records, uwhoisd is a bit messy right now, because I did many changes and I'm currently working on getting everything cleanly merged upstream)

Did you install and run uwhosd from https://github.com/Rafiot/uwhoisd.git in the branch testing?

Rafiot avatar Sep 07 '16 12:09 Rafiot

Hi,

I got it from https://github.com/Rafiot/uwhoisd.git and it seems to be the testing branch indeed.

gd

giray avatar Sep 07 '16 13:09 giray

... yeah, that makes sense, this branch if broken, I didn't try again after the last changes, sorry for that.

I'll try to fix it later today, but I'm not sure I'll have time...

EDIT: never mind, I just did a very fast & untested dirty fix(https://github.com/Rafiot/uwhoisd/commit/3f16d4261f3cd6ffe8876b4a68d3733e270dc4e2), that should do the trick. If it doesn't, I'll need more time and will hopefully be able to do it by the end of the week.

Rafiot avatar Sep 07 '16 16:09 Rafiot

Hi,

Any news related to this ? I receive the same error when trying to install misp-module:

sudo pip3 install -I -r REQUIREMENTS
(git+https://github.com/Rafiot/uwhoisd.git@testing#egg=uwhois&subdirectory=client)

and then:

misp-modules - INFO - MISP modules dns imported
uwhois module not installed.

deloittem avatar Mar 23 '17 12:03 deloittem

Any news to it?

8ear avatar Jul 30 '19 15:07 8ear

Not really, I need to look at it.

Rafiot avatar Jul 30 '19 17:07 Rafiot

hi i am installing MISP on CentOS 7 and passing the misp modules, i also have the same problem. How can I solve that?

${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/pip install -U git+https://github.com/Rafiot/uwhoisd.git@testing#egg=uwhois
ERROR: Package 'uwhoisd' requires a different Python: 3.6.8 not in '<4.0,>=3.8'

The error was:

misp-modules]# ${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/misp-modules -l 127.0.0.1 -s &
misp-modules]# uwhois module not installed.
*** Error in `/var/www/MISP/venv/bin/python3.6': free(): invalid pointer: 0x00007f7746c5ac80 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x81329)[0x7f7764108329]
/lib64/libstdc++.so.6(_ZNSt6locale5_Impl16_M_install_facetEPKNS_2idEPKNS_5facetE+0x142)[0x7f77469c4192]
/lib64/libstdc++.so.6(_ZNSt6locale5_ImplC1Em+0x1e3)[0x7f77469c45e3]
/lib64/libstdc++.so.6(+0x71555)[0x7f77469c5555]
/lib64/libpthread.so.0(+0x620b)[0x7f7764b6420b]
/lib64/libstdc++.so.6(+0x715a1)[0x7f77469c55a1]
/lib64/libstdc++.so.6(_ZNSt6localeC2Ev+0x13)[0x7f77469c55e3]
/lib64/libstdc++.so.6(_ZNSt8ios_base4InitC2Ev+0xbc)[0x7f77469c243c]
/var/www/MISP/venv/lib64/python3.6/site-packages/cv2/cv2.cpython-36m-x86_64-linux-gnu.so(+0x2f4b20)[0x7f774a821b20]

Regards

jarandas avatar Oct 22 '21 07:10 jarandas

You can skip the installation of uwhois. All modules are optional and this is only for the whois module.

adulau avatar Oct 23 '21 09:10 adulau

Ok thanks. But when I execute the test of install i get this error python3.6': free(): invalid pointer: 0x00007f7746c5ac80:

misp-modules]# ${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/misp-modules -l 127.0.0.1 -s &
misp-modules]# uwhois module not installed.
*** Error in `/var/www/MISP/venv/bin/python3.6': free(): invalid pointer: 0x00007f7746c5ac80 ***

Fresh install CentOS 7 (update) Remi or SCL version of python 3.6 Install guide: https://misp.github.io/MISP/INSTALL.rhel7/

Regards.

jarandas avatar Oct 25 '21 07:10 jarandas

Hey jarandas, I ran into the same error today and ran across this issue in my search for a fix, but it turns out uwhois is not actually the culprit. That error is printed when that particular module gracefully fails to load, but some of the other modules are not so graceful in their failure.

It was the 'qrcode', 'ocr_enrich', and 'pdf_enrich' modules causing the invalid pointer and preventing the service from starting in my case. I essentially worked my way to that conclusion by process of elimination loading a few modules at a time until I identified the failing ones. I simply skipped loading those 3 and everything is working fine now. Hopefully that might help you and whoever comes along looking for this issue next.

logan-micklewright avatar Oct 26 '21 22:10 logan-micklewright

Thank you logan-micklewright for the information. I will apply the changes you tell me. Regards!!

jarandas avatar Nov 04 '21 10:11 jarandas