ImportError: cannot import name main - python

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

Related

can't run customtkinter with .exe

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?

Gives this error when importing utils.sql what could be the problem?

This error is displayed in the console
Traceback (most recent call last):
File "main.py", line 12, in <module>
from utils.sql import ManagerDB
ModuleNotFoundError: No module named 'utils.sql'
check your project if "utils" is your own python package, name "utils" is too generic,unlikely is a PYPI package which you install by pip

Culebra tester error: No module named culebratester_client.api.default_api

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

getting this error while loading a tensorflow project

getting a error while a installing a tensorflow python project from https://github.com/victordibia/skyfall
first i tried to install the requiremnt.txt file i got Could not detect requirement name for 'git+https://github.com/dpallot/simple-websocket-server.git', please specify one with #egg=your_package_name error,
then i removed the last line of txt file, then getting this
Traceback (most recent call last):
File "app.py", line 18, in
from utils import web_socket_server
File "C:\Users\anurag\Downloads\skyfall-master\utils\web_socket_server.py", line 4, in
from SimpleWebSocketServer import SimpleWebSocketServer, WebSocket
ModuleNotFoundError: No module named 'SimpleWebSocketServer'
after that i installed git , now getting this
Traceback (most recent call last):
File "app.py", line 19, in
from utils import web_socket_client
File "C:\Users\anurag\Downloads\skyfall-master\utils\web_socket_client.py", line 8, in
from websocket import WebSocketException, WebSocketConnectionClosedException
ImportError: cannot import name 'WebSocketException'
The error means that you have not installed this package: https://github.com/dpallot/simple-websocket-server
Try this to install it(you must have pip installed and also git) and then run the project again:
python -m pip install git+https://github.com/dpallot/simple-websocket-server.git

test_ssl.py and test_urllib2.py tests are failing in python2.7

test_ssl.py
root#yasir:/home/yasir/PYTHON/python2.7-2.7.6/Lib/test# python python test_ssl.py
Traceback (most recent call last):
File "test_ssl.py", line 7, in <module>
from test.script_helper import assert_python_ok
ImportError: No module named script_helper
test_urllib2.py
root#yasir:/home/yasir/PYTHON/python2.7-2.7.6/Lib/test# python test_urllib2.py
Traceback (most recent call last):
File "test_urllib2.py", line 3, in <module>
from test import test_urllib
ImportError: cannot import name test_urllib
I'm not able to understand which module is missing so facing this error
tests failed due to missing python module libpython2.7-testsuite

Categories

Resources