I want to create get client lib java and when i run this code
sudo python lib/endpoints/endpointscfg.py get_client_lib java -bs gradle src.service.moDbile_api.MobileApi
it gave me an error
valid SDK root.
Traceback (most recent call last):
File "lib/endpoints/endpointscfg.py", line 59, in <module>
import _endpointscfg_setup # pylint: disable=unused-import
File "/var/www/html/salesmanagement/SalesManagement/lib/endpoints/_endpointscfg_setup.py", line 107, in <module>
_SetupPaths()
File "/var/www/html/salesmanagement/SalesManagement/lib/endpoints/_endpointscfg_setup.py", line 103, in _SetupPaths
from google.appengine.ext import vendor
ImportError: No module named appengine.ext
The google.appengine.ext module only exists when running your script in the App Engine First Generation (Python 2.7) runtime.
Related
I have tried to run my python app on my website, but I get the error
"No module named jsonpickle"
even though I have jsonpickle installed. I even found the file path, and jsonpickle is there, but still my app says "no module named jsonpickle"
i logged into the SSH and typed
source /home/dsmproto/virtualenv/main.py/3.8/bin/activate && cd /home/dsmproto/main.py
then i installed all of the modules i needed, specifically
pip install jsonpickle
and then i go to run my app and i get the error:
stdin: is not a tty
Traceback (most recent call last):
File "/opt/cpanel/ea-ruby24/root/usr/share/passenger/helper-scripts/wsgi-loader.py", line 369, in <module>
app_module = load_app()
File "/opt/cpanel/ea-ruby24/root/usr/share/passenger/helper-scripts/wsgi-loader.py", line 76, in load_app
return imp.load_source('passenger_wsgi', startup_file)
File "/home/dsmproto/main.py/passenger_wsgi.py", line 1, in <module>
from main import main as application
File "/home/dsmproto/main.py/main.py", line 2, in <module>
from wallet import wallet
File "/home/dsmproto/main.py/wallet.py", line 3, in <module>
from blockchain_utils import blockchain_utils
File "/home/dsmproto/main.py/blockchain_utils.py", line 3, in <module>
import jsonpickle
ImportError: No module named jsonpickle
Is that enough info for you guys?
Please help, thanks!
I have the following code in appengine_config.py:
...
import six
print six.__version__
print six.moves
import six.moves
The output is as follows:
1.11.0
<module 'six.moves' (built-in)>
ERROR 2018-04-17 10:51:19,875 wsgi.py:263]
Traceback (most recent call last):
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/api/lib_config.py", line 351, in __get
attr__
self._update_configs()
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/api/lib_config.py", line 287, in _update_configs
self._registry.initialize()
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/api/lib_config.py", line 160, in initi
alize
import_func(self._modname)
File "/home/user/project/appengine_config.py", line 17, in <module>
from six.moves import http_client
ImportError: No module named moves
How is it possible that moves is a module when accessed through six, but can't be imported on its own?
To give some context about the environment:
I use a clean Debian GCE VM.
Install python 2.7, virtualenv, from within virtualenv install a short list of basic dependencies.
The script is run from within dev_appserver.py (Google App Engine standard environment local dev server)
six.moves imports fine from python shell
You've already imported six. That includes six.moves. So just use it as six.moves. To import just moves, use:
from six import moves
I'm trying to import quandl and have downloaded it from Github and unzipped it to C:\Python27\Lib\site-packages\quandl but whenever I run my file "quandltest.py", I get "ImportError: No module named inflection". I then downloaded inflection from Github and saved it to the site-packages folder but still get the following whenever I run the file. I'm using a Python 27 IDLE to import quandl (I get the same error using Pycharm). Anyone have any idea/the same issue?? Thanks! I also do not have access to my command window as it has been disabled by the admin so I cannot pip install.
Traceback (most recent call last):
File "C:/Python27/quandltest.py", line 1, in <module>
import quandl
File "C:\Python27\lib\site-packages\quandl\__init__.py", line 7, in <module>
from .model.database import Database
File "C:\Python27\lib\site-packages\quandl\model\database.py", line 11, in <module>
from quandl.connection import Connection
File "C:\Python27\lib\site-packages\quandl\connection.py", line 5, in <module>
from .util import Util
File "C:\Python27\lib\site-packages\quandl\util.py", line 1, in <module>
from inflection import parameterize
ImportError: No module named inflection
I recently set up Cuckoo environment on Arch Linux host with WXPSP3 guest.
When I try to upload file for analysis using submit.py I get the following error:
Traceback (most recent call last):
File "./utils/submit.py", line 23, in <module>
from lib.cuckoo.common.utils import to_unicode
File "/opt/cuckoo/utils/../lib/cuckoo/common/utils.py", line 11, in <module>
import xmlrpclib
ImportError: No module named 'xmlrpclib'
I run out of ideas. Could you help?
J
It works if I run python via python2.7 command so:
# python2.7 ./utils/submit.py <filepath>
First file i'm trying to install an external package - twitter 1.14.3 (on windows 7)
so i downloaded the package to c:\python33\twitter-1.14.3,
then i run:
python.exe c:\python33\twitter-1.14.3\setup.py install
Finished processing..
Now i'm trying to use that new module:
from twitter import *
and i get an error:
Traceback (most recent call last):
File "test1.py", line 1, in <module>
\ufefffrom twitter import *
ImportError: No module named 'twitter'
When i'm trying to run the twitter.exe, i get:
c:\Python33\Scripts>twitter.exe
Traceback (most recent call last):
File "c:\Python33\Scripts\twitter-script.py", line 9, in <module>
load_entry_point('twitter==1.14.3', 'console_scripts', 'twitter')()
File "c:\Python33\lib\site-packages\setuptools-5.4.1-py3.3.egg\pkg_resources.py", line 356, in load_entry_point
File "c:\Python33\lib\site-packages\setuptools-5.4.1-py3.3.egg\pkg_resources.py", line 2476, in load_entry_point
File "c:\Python33\lib\site-packages\setuptools-5.4.1-py3.3.egg\pkg_resources.py", line 2190, in load
ImportError: No module named 'twitter'
Any ideas?
Thanks/
Navigate to your friendly neighborhood Command Prompt and type in the following:
pip install twitter
It should say something along the lines of "Installing collected packages... Successfully installed twitter-1.18.0"
Then run from your IDE:
import twitter # work with Twitter APIs
And proceed with setting up your API keys