When I am running python gfxinfo2.py com.android.systemui from this link
I am getting the following message Traceback (most recent call last):
File "gfxinfo2.py", line 13, in from com.dtmilano.android.viewclient import ViewClient File "D:\Softwares\AndroidViewClient-master\AndroidViewClient-master\src\com\dtmilano\android\viewclient.py", line 25, in from culebratester_client import WindowHierarchyChild, WindowHierarchy File "D:\Softwares\AndroidViewClient-master\AndroidViewClient-master\src\com\dtmilano\android\culebratester_client__init__.py", line 18, in from culebratester_client.api.default_api import DefaultApi ImportError: No module named culebratester_client.api.default_api
I am a newbie and don't know much about android and how it works. I need to understand how this works. Kindly help me out. What am I doing wrong over here?
You have to install culebratester-client
pip install culebratester-client
Related
when I try to convert my python file into .exe using auto-py-to-exe an error occure:
Traceback (most recent call last):
File "Jumper.py", line 5,
in File "C:\Users\Clowny\output\Jumper\customtkinter_init_.py", line 10, in
from .appearance_mode_tracker import AppearanceModeTrackerù
File "C:\Users\Clowny\output\Jumper\customtkinter\appearance_mode_tracker.py", line 3, in
from distutils.version import StrictVersion as Version
ModuleNotFoundError: No module named 'distutils'
I already used the documentation steps but it still doesn't working.
can anyone help me?
I've accidentally deleted/removed the package urllib3 from my python and now when I open terminal, I get this error message.
Traceback (most recent call last):
File "/anaconda2/bin/conda", line 11, in <module>
sys.exit(main())
File "/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 109, in main
from ..exceptions import ExceptionHandler
File "/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 20, in <module>
from .common.url import maybe_unquote
File "/anaconda2/lib/python2.7/site-packages/conda/common/url.py", line 13, in <module>
from .._vendor.urllib3.exceptions import LocationParseError
ImportError: No module named urllib3.exceptions
How can I fix this? Any help would be appreciated.
Edit: I even reinstalled the OS and nothing has changed.!!
Thanks
have you tried pip installing it again:
pip install urllib3
Solved it after numerous trial and error. Taking a closer look, the problem was with anaconda2. So I deleted the entire folder anaconda2 and reinstalled anaconda python 2.7.
Issue is solved.
I recently rearranged some folders around and a python file I used to run is no longer working. When I try to run the file I get:
Traceback (most recent call last):
File "twitter_stream.py", line 9, in <module>
from tweepy import Stream
ImportError: No module named tweepy
I don't understand why I no longer have tweepy installed because I just had it When I do a simple 'pip3 install tweepy' I get:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/bin/pip3", line
7, in <module>
from pip import main
ImportError: cannot import name main
I'm not sure what happened here. Any help would be greatly appreciated
I'm using terminal on mac, and anytime I attempt to use pip, I get the following error message telling me that it cannot find a module named zlib:
$ pip --version
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/requests/packages/__init__.py", line 27, in <module>
from . import urllib3
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/__init__.py", line 8, in <module>
from .connectionpool import (
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 42, in <module>
from .response import HTTPResponse
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 3, in <module>
import zlib
ModuleNotFoundError: No module named 'zlib'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/bin/pip", line 7, in <module>
from pip import main
File "/usr/local/lib/python3.6/site-packages/pip/__init__.py", line 21, in <module>
from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/requests/__init__.py", line 62, in <module>
from .packages.urllib3.exceptions import DependencyWarning
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/requests/packages/__init__.py", line 29, in <module>
import urllib3
File "/usr/local/lib/python3.6/site-packages/urllib3/__init__.py", line 8, in <module>
from .connectionpool import (
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 36, in <module>
from .response import HTTPResponse
File "/usr/local/lib/python3.6/site-packages/urllib3/response.py", line 3, in <module>
import zlib
ModuleNotFoundError: No module named 'zlib'
I've read several SO posts with the same error message, and have tried their solutions, including attempting to install zlib using homebrew, which fails, and updating my Xcode developer tools. I also installed pip earlier using python get-pip.py, and it said it installed successfully.
The reason I need pip is to install a package for use on python 2.7, but doing $ pip install "package-name" produces the same error as above. I have both Python 2 and 3 installed on my machine, if that helps. I'm kind of new to pip and using the command line in general, and I'm super confused; if anyone could help me out I'd really appreciate it.
This is the OP. I was able to fix the issue, and wanted to post my solution here in case it would help others.
Essentially I believe it occurred because Python2 is default on my machine, but pip is by default pointing to resources pertaining to Python3, or something like that. Doing pip2 --version instead provided the expected response.
Hi, is there a solution for this error code ?
Traceback (most recent call last):
File "./weevely.py", line 2, in <module>
from core.terminal import Terminal
File "/Users/ismailtaibi/Desktop/isdo/scripts/weevely/core/terminal.py", line 6, in <module>
from core.module import Status
File "/Users/ismailtaibi/Desktop/isdo/scripts/weevely/core/module.py", line 14, in <module>
from core.vectorlist import VectorList
File "/Users/ismailtaibi/Desktop/isdo/scripts/weevely/core/vectorlist.py", line 15, in <module>
from core.vectors import Os
File "/Users/ismailtaibi/Desktop/isdo/scripts/weevely/core/vectors.py", line 11, in <module>
from mako.template import Template
ImportError: No module named mako.template
Thanks.
The answer is pretty self explainatory and with a google search you could have solved everything in seconds.
Here you have a how to install pip if you don`t have it: How do I install pip on macOS or OS X?
After this type in the terminal:
pip install Mako
as stated in the official website: http://www.makotemplates.org/download.html
If this doesn`t work you can manually download the Mako package here:
https://pypi.python.org/pypi/Mako/
Please, also read this carefully:
https://stackoverflow.com/help/how-to-ask