Error when trying to authenticate in Rackspace - python-2.7

I have got Following code from Rackspace Documentation.
import pyrax
pyrax.set_setting("identity_type", "rackspace")
pyrax.set_default_region('ORD')
pyrax.set_credentials('ot7336', '2755cd822321335191c8cc3ab46bbcff')
but when i run the module I get following error message
Traceback (most recent call last):
File "C:/Python27/rackspaceFileDownload.py", line 1, in <module>
import pyrax
ImportError: No module named pyrax
I have downloaded pyrax from this link https://github.com/rackspace/pyrax/
Unzipped it and installed it in windows in CMD using "setup.py install"

Related

ImportError: no module named wrapper_util

I am trying to test an a web app using google cloud sdk with python 2.7.
However, I get the error:
"C:\Users\Public\My_Project>dev_appserver.py app.yaml
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\dev_appserver.py", line 31, in <module>
import wrapper_util
ImportError: No module named wrapper_util" when i run the 'dev_appserver.py app.yaml'
Your Google Cloud SDK components for Python may not be updated and does not yet include the module in the error. You can update them by running either of the following:
gcloud components update
updates all components for the SDK
gcloud components install app-engine-python app-engine-python-extras will install Python-specific components but will show All components are up to date. if you are using the latest version.

Trouble getting a Python script to execute

I am trying to experiment around with brute forcing Bitcoin Brain Wallets via a Python script I pulled from github. How ever I am unable to get the script to run properly. I cannot get the requirements to install properly and running the script without returns:
Traceback (most recent call last):
File "C:\Users\CCTrollz\Desktop\bruteforce-bitcoin-brainwallet-master\bbb.py", line 7, in <module>
from lib.blockchain import Abe, BlockchainInfo, Insight
File "C:\Users\CCTrollz\Desktop\bruteforce-bitcoin-brainwallet-master\lib\blockchain.py", line 2, in <module>
import requests
ImportError: No module named requests
Github Project

Why can I run command `scrapy` from mac terminal but not IDLE?

I've downloaded Scrapy via pip and am trying to confirm its successfully installed.
If type scrapy into the mac terminal it provides the version name, usage, and available commands, so it appears to have installed successfully,
But if type scrapy or import scrapy into IDLE shell, it returns an error.
Traceback (most recent call last): File "<pyshell#14>", line 1, in <module>
scrapy NameError: name 'scrapy' is not defined
And
Traceback (most recent call last):
File "<pyshell#18>", line 1, in <module>
import scrapy
ImportError: No module named scrapy
What I've tried:
import sys
sys.path
And there is no scrapy in the printout. So I thought it might be a PATH issue.
So per these docs (http://doc.scrapy.org/en/latest/intro/install.html),
I tried running running,
echo "export PATH=/usr/local/bin:/usr/local/sbin:$PATH" >> ~/.bashrc
But that results in an error.
SyntaxError: invalid syntax
I'm not really sure where to go with this from here and don't have much experience with python.
Could anyone share ideas that might troubleshoot this?

PyCharm IDE: boto is already installed but got a "No module named boto.cloudfront" importError

I have already got boto installed to my python virtual environment, as shown in the screenshot of my pycharm project.
However I got an ImportError of boto.cloudfront when I run my script from pycharm
ERROR 2015-04-20 00:17:39,590 wsgi.py:263]
Traceback (most recent call last):
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 85, in LoadObject
obj = __import__(path[0])
File "/Users/antkong/dev/test/testmain.py", line 7, in <module>
from boto.cloudfront import CloudFrontConnection
ImportError: No module named boto.cloudfront
In the python console, I can import the library just fine:
Any suggestion what can go wrong here?
My project is a Google App Engine project. So even though boto is installed locally, it is not visible to my code within my Google App Engine project
My solution is to copy the boto and all dependency into a lib subdirectory and then add it to the sys.path

Amazon Beanstalk CLI Error: lib.utility, no module found

I am trying to follow the directions given for getting a Django application up on Amazon Beanstalk, and when I run the eb init command, I receive the following error:
Traceback (most recent call last):
File "/usr/local/AWS-ElasticBeanstalk-CLI-2.4.0/eb/linux/python2.7/eb", line 17, in <module>
from scli import core
File "/usr/local/AWS-ElasticBeanstalk-CLI-2.4.0/eb/linux/python2.7/scli/core.py", line 24, in <module>
from scli import command, cli_parse, config_file, prompt
File "/usr/local/AWS-ElasticBeanstalk-CLI-2.4.0/eb/linux/python2.7/scli/command.py", line 16, in <module>
from lib.utility import misc
ImportError: No module named utility
I am really unsure as to what I am failing to do or missing...
So it turns out that somewhere along this very terrible journey I downloaded the AWS Beanstalk CLI version 2.4, when I needed 2.6, in case anyone else makes this same clumsy mistake.