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.
Related
I have tried using import pygame_textinput to call the pygame_textinput module. It doesn't work though. I got it from here.
Which was provided by another Stack Overflow page to get information about the pygame_textinput module as such:
How to create a text input box with pygame?
Just in case, I have tried getting it from the net as it is stated to be a third-party module but to no avail. I wrote the code in python shell as such:
import pygame_textinput
And got error message as such:
Traceback (most recent call last):
File "<pyshell#15>", line 1, in module
import pygame_textinput
ImportError: No module named pygame_textinput
Help? (PS. The word module in the error message second line is actually covered in < >. I deleted it as couldn't show.
Did you install it ? https://pypi.org/project/textinput/
pip install pygame_textinput
guide how to install pip: https://pip.pypa.io/en/stable/installing/
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
i'm currently into learning a bit of python and i want to import the paperclip third party module into my python file.
Yes, i already installed the pyperclip module with
pip install pyperclip.
if i create a file on my desktop, i get an error which says
Traceback (most recent call last):
File "test.py", line 1, in <module>
import pyperclip
ImportError: No module named pyperclip
However if i put the test.py in my python folder, it runs.
The question now is, is there a way to make all my installed modules available on a global scope ? I just want to have my file e.g. on my Desktop and run it without having import issues.
Thank you.
Greetings
Edit: I'm working on a Mac, maybe this leads to the problem
Found the problem.
The pip installautomatically used pip3.5 install
whereas python test.pydidn't use python3.5 test.py
Thank you #Bakurìu
Is there a way i can define python3.5as python?
You can do this :
pip3.5 install paperclip
pyperclip is install but not paperclip
Recently, (I have no idea when), I installed this package called pymol. Today when I was trying to copy a list of all my install modules, I encountered this error.
~/Projects$ python -c "help('modules')"
Please wait a moment while I gather a list of all available modules...
Error: unable to initalize the pymol.cmd module
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pymol/cmd.py", line 117, in <module>
from chempy import io
ImportError: cannot import name io
I've tried
sudo pip uninstall pymol
This definitely worked... but it also definitely did not work. It removed the .egg, and pip list tells me it's not installed, but the tool is still there. I open a python prompt and import it with no problem. Now my question is, if I just delete the package, is there anything that could go wrong, (WCS I'm thinking kafkaesque broken dependency fixing for the rest of my natural life.) and is there a standardized, best practice to remove this, or any other package manually.
I am trying to configure svn hook for email notification using mailer.py script from apache, but it always crash on import of svn libs. I try two ways of installing svn and python. I try to install everything manually using command line and use CollableNet installer that have preinstalled Python and all libs I need but result is the same.
Now I try to import one library from hole package that I need using python in command line and I have such response:
>>> import svn.core
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named svn.core
I try to fix it using:
1) import sys; sys.path.append("C:\csvn\lib\svn-python\svn")
and
2) C:\csvn\lib\svn-python\svn>python "\__init__.py" install
But it didn't help.
For now I have no package with setup.py to install it.
I spend a lot of time on this task, and going crazy a little). Please give me any suggestion how to fix it.