Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I'm using python to scan a pdf file by online antivirus so I used
import postfile
but there is an error:
ImportError: No module named postfile
could any one help me?
You need to read the VirusTotal docs. It explicitly mentions needing to copy this code into a local file called postfile.py
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I have been trying to import modules on my python Coderbyte challenges, but to no avail. I noticed that the C++ challenges allow includes, so I've been relying on , for the C++ challenges.
My question is, is there a way to successfully use other modules for challenges written in Python on Coderbyte?
Coderbyte only has the standard 2.7.2 python. There is not a way to import a package they do not have setup for you to use in their environment.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am looking for an IDE similar to netbeans(for Java) which shows JAVA-DOCS as we type in the function name :
Is there a similar IDE for python that shows me the entire documentation: ?
I am not looking for something like ..help(str)
Obviously you can use following one
Pycharm
Aptana Studio
spyderlib
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
May someone please tell me how to set up code in Python that will allow me to open an .exe file?
The file location is:
C:\Users\Public\Videos\Sample Videos\New Folder\ksp-win-0-21-1\KSP_win cosmetic mods
and the file is called:
KSP.exe
Shorter code would be preferred, but it does not matter that much.
I don't know if it would make a difference, but I am using a Windows 7 computer.
import subprocess
subprocess.call(["C:\Users\Public\Videos\Sample Videos\New Folder\ksp-win-0-21-1\KSP_win cosmetic mods\KSP.exe"])
Another way to run an exe is through the os.system command:
import os
os.system("Path\\to\\file.exe")
The os.system command will allow you to run commands as if they were in your command prompt.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have tried to search for tutorials nothing exists is it even possible if yes how.
Use the Shell function to execute "python.exe yourscript.py". Note that this assumes python.exe is in your PATH. Otherwise, use the full path to python, usually c:\Python27
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I want to run 'arp or config' commands on apache using python
from mod_python import apache
I have tested codes but the output is empty or command not found.
I think that i need to give permission to apache to access this command.
Use absolute commands:
/sbin/arp