I really feel dumb asking this. but when am running MS14-068.py (https://github.com/bidord/pykek/blob/master/ms14-068.py) module in my kali with python version 2.7.13 i get the following error.
Traceback (most recent call last):
File "ms14-068.py", line 17, in <module>
from kek.ccache import CCache, get_tgt_cred, kdc_rep2ccache
ImportError: No module named kek.ccache
How do i fix this? I dont know much about pythonh. I googled it for that module but couldn't find a way. Any pointers would be great!
I had the same problem.
You need to install pykek, which is where ccache resides.
You can't run it if you don't have it. :)
https://github.com/bidord/pykek
Related
So I was trying to install django. I have used pip3 install django, and this what happened:
Then i tried to look if my django was having no problem by typing import django on python. But this what happened to me:
Can anyone help me? Thanks, it helps me a lot!
You installed Django for python 3. When you type python in the terminal you opening python 2.7(you can see that in terminal), so try python3 instead.
I have PyAutoGUI-0.9.52 and there no file in the working directory named pyautogui. I have pillow installed, but still, it shows this error please can someone help me.
This is the full error:
Traceback (most recent call last):
File "C:\Users\Admin\Desktop\lolllll.py", line 4, in <module>
pyautogui.click(pyautogui.locateCentreOnScreen('launcher.png'))
AttributeError: module 'pyautogui' has no attribute 'locateCentreOnScreen'
If there is no solution please suggest a different module which can do this. But I would prefer to stick with this.
We can't help you without code. However, a simple google search results in the fact that you mistyped, and the function is pyautogui.locateCenterOnScreen(...), with a properly spelled center.
I am working with elffile python module/library. There is one line of code that is giving the following error
Traceback (most recent call last):
File "elffile.py", line 36, in <module>
import coding
ImportError: No module named coding
I could not find any python file or class named coding. Also, I didn't find anything on the internet regarding import coding.
Import is when you import modules to use in your coding.
If it cant find the module you probably have to install it. The easiest way to do this is to use pip.
Write: pip install coding (or pip3) and it will install the module.
I am a beginner with Python and using Python 3.6.0 on Mac OS X 10.12. I imported a module saved in my documents folder with all of my other modules that worked fine, yet it came back with this after the module ran:
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import futval.py
ModuleNotFoundError: No module named 'futval.py'; 'futval' is not a package
All of my other modules ran fine before this one and I can't figure out the issue. I've searched around the site for answers and can't seem to find anything. Any help is appreciated.
If you're trying to import a file named futval.py, you need to write just import futval; the name of the module does not include the .py.
I'm trying to use MySQLdb and when I try to import it I get the following error. Any thoughts? I'm currently using an ubuntu instance on aws.
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.6/MySQLdb/__init__.py", line 19, in <module>
import _mysql
ImportError: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
>>>
Is libmysqlclient-dev installed? Package might not be exact, but thats the general idea.
Is this comment thread of any help?
Try updating /etc/ld.so.conf so as to include the directory in which you've installed this.
After struggling with this same issue myself (on the AWS Linux I AMI), I found the answer
here:
While the comment thread already posted was helpful, Apache was clearing my environment variables, so setting LD_RUN_PATH and/or LD_LIBRARY_PATH was not effective.
What ended up working was adding a new include statement to /etc/ld.so.conf and running ldconfig.