Trouble getting a Python script to execute - python-2.7

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

Related

Flask db migrate stops working on a new ec2 machine

So this is a bit weird. I took an image of my dev server (ec2), spooled it up onto a new machine, and all of a sudden "flask db migrate" stopped working for me. It now returns this error:
Traceback (most recent call last):
File "/usr/local/bin/flask", line 7, in <module>
from flask.cli import main
ImportError: No module named cli
I'm not particularly sure how to go about debugging this. A little guidance would be deeply appreciated.

How do I fix packaging issue when generating OpenAPI configuration file?

I am working through the Python Quickstart for Cloud Endpoints Frameworks on App Engine. I try to generate the OpenAPI configuration file by invoking the Endpoints Tool and get this error:
python lib/endpoints/endpointscfg.py get_swagger_spec main.EchoApi --hostname echo.endpoints.[YOUR-PROJECT-ID].cloud.goog
Traceback (most recent call last):
File "lib/endpoints/endpointscfg.py", line 59, in <module>
import _endpointscfg_setup # pylint: disable=unused-import
File "/Users/myName/lab/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_setup.py", line 98, in <module>
_SetupPaths()
File "/Users/myName/lab/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_setup.py", line 94, in _SetupPaths
from google.appengine.ext import vendor
ImportError: No module named appengine.ext
My understanding is that this is some kind of packaging issue? This is issue is discussed here but i am still stuck: Error running endpointscfg.py get_swagger_spec. Any help would be much appreciated.
It turned out to be an issue with my system variable path. Specifically I added:
ENDPOINTS_GAE_SDK="path to google_appengine"

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?

Virtual env Python packages with Google Cloud SDK

I'm in the Getting Started section of Google Cloud SDK from Dan Sanderson's book, sorry no link.
The thing is I created a clock application with the local installation of Python.
Then I created a virtual environment, and ran the same application with the corresponding installation.
I installed the packages that I needed, but I get a strange error about -what I think- is one of the base Python packages.
(myenv) diego#host:gae-clock$ dev_appserver.py .
Traceback (most recent call last):
File ".../google-cloud-sdk/bin/dev_appserver.py", line 11, in <module>
import bootstrapping.bootstrapping as bootstrapping
File ".../google-cloud-sdk/bin/bootstrapping/bootstrapping.py",
line 9, in <module>
import setup
ImportError: No module named 'setup'
thank you for pointing in the right direction. Please let me know if I can show more to track this down.

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.