jgillick / LendingClubAutoInvestor

A simple command line tool that will automatically invest all cash that becomes available
MIT License
47 stars 21 forks source link

Cannot install/run on Synology with Python 2.7.3 #19

Open bensig opened 10 years ago

bensig commented 10 years ago

Install seems to go fine:

term> python setup.py install /usr/local/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires' warnings.warn(msg) running install running build running build_py creating build creating build/lib creating build/lib/lcinvestor copying lcinvestor/description_utils.py -> build/lib/lcinvestor copying lcinvestor/init.py -> build/lib/lcinvestor copying lcinvestor/util.py -> build/lib/lcinvestor creating build/lib/lcinvestor/tests copying lcinvestor/tests/portfolio_picker_test.py -> build/lib/lcinvestor/tests copying lcinvestor/tests/autoinvestor_test.py -> build/lib/lcinvestor/tests copying lcinvestor/tests/login_test.py -> build/lib/lcinvestor/tests copying lcinvestor/tests/init.py -> build/lib/lcinvestor/tests creating build/lib/lcinvestor/settings copying lcinvestor/settings/init.py -> build/lib/lcinvestor/settings copying lcinvestor/VERSION -> build/lib/lcinvestor copying lcinvestor/settings/settings.yaml -> build/lib/lcinvestor/settings running build_scripts creating build/scripts-2.7 copying and adjusting bin/lcinvestor -> build/scripts-2.7 copying bin/lcinvestor.bat -> build/scripts-2.7 changing mode of build/scripts-2.7/lcinvestor from 644 to 755 changing mode of build/scripts-2.7/lcinvestor.bat from 644 to 755 running install_lib creating /usr/local/lib/python2.7/site-packages/lcinvestor copying build/lib/lcinvestor/VERSION -> /usr/local/lib/python2.7/site-packages/lcinvestor creating /usr/local/lib/python2.7/site-packages/lcinvestor/settings copying build/lib/lcinvestor/settings/settings.yaml -> /usr/local/lib/python2.7/site-packages/lcinvestor/settings copying build/lib/lcinvestor/settings/init.py -> /usr/local/lib/python2.7/site-packages/lcinvestor/settings copying build/lib/lcinvestor/description_utils.py -> /usr/local/lib/python2.7/site-packages/lcinvestor copying build/lib/lcinvestor/init.py -> /usr/local/lib/python2.7/site-packages/lcinvestor creating /usr/local/lib/python2.7/site-packages/lcinvestor/tests copying build/lib/lcinvestor/tests/portfolio_picker_test.py -> /usr/local/lib/python2.7/site-packages/lcinvestor/tests copying build/lib/lcinvestor/tests/autoinvestor_test.py -> /usr/local/lib/python2.7/site-packages/lcinvestor/tests copying build/lib/lcinvestor/tests/login_test.py -> /usr/local/lib/python2.7/site-packages/lcinvestor/tests copying build/lib/lcinvestor/tests/init.py -> /usr/local/lib/python2.7/site-packages/lcinvestor/tests copying build/lib/lcinvestor/util.py -> /usr/local/lib/python2.7/site-packages/lcinvestor byte-compiling /usr/local/lib/python2.7/site-packages/lcinvestor/settings/init.py to init.pyc byte-compiling /usr/local/lib/python2.7/site-packages/lcinvestor/description_utils.py to description_utils.pyc byte-compiling /usr/local/lib/python2.7/site-packages/lcinvestor/init.py to init.pyc byte-compiling /usr/local/lib/python2.7/site-packages/lcinvestor/tests/portfolio_picker_test.py to portfolio_picker_test.pyc byte-compiling /usr/local/lib/python2.7/site-packages/lcinvestor/tests/autoinvestor_test.py to autoinvestor_test.pyc byte-compiling /usr/local/lib/python2.7/site-packages/lcinvestor/tests/login_test.py to login_test.pyc byte-compiling /usr/local/lib/python2.7/site-packages/lcinvestor/tests/init.py to init.pyc byte-compiling /usr/local/lib/python2.7/site-packages/lcinvestor/util.py to util.pyc running install_scripts copying build/scripts-2.7/lcinvestor -> /usr/local/bin changing mode of /usr/local/bin/lcinvestor.bat to 755 changing mode of /usr/local/bin/lcinvestor to 755 running install_egg_info Writing /usr/local/lib/python2.7/site-packages/lcinvestor-2.2.1-py2.7.egg-info

But upon execution - it dies with "no module named pause":

term> lcinvestor Traceback (most recent call last): File "/usr/local/bin/lcinvestor", line 44, in import lcinvestor File "/usr/local/lib/python2.7/site-packages/lcinvestor/init.py", line 30, in import pause ImportError: No module named pause

jgillick commented 10 years ago

If you install with pip, it should automatically install dependencies, otherwise you'll need to install them manually. See the "Modules" section of the readme. You'll need to install those before you can run the program. Let me know if that works.

bensig commented 10 years ago

In installed with pip2— Sent from mobile device

On Fri, Mar 7, 2014 at 9:25 PM, Jeremy Gillick notifications@github.com wrote:

If you install with pip, it should automatically install dependencies, otherwise you'll need to install them manually. See the "Modules" section of the readme. You'll need to install those before you can run the program. Let me know if that works.

Reply to this email directly or view it on GitHub: https://github.com/jgillick/LendingClubAutoInvestor/issues/19#issuecomment-37089759

jgillick commented 10 years ago

Strange. Your output shows running python setup.py install, which I don't believe uses pip. In either case, you'll need to install the following required modules:

You should be able to in one line:

pip install requests beautifulsoup4 html5lib pybars lendingclub argparse pyyaml pause 
jgillick commented 10 years ago

It looks like the pip2 page says that it doesn't automatically install dependencies, so you probably will need to install all the dependencies manually.

bensig commented 10 years ago

Let me try that— Sent from mobile device

On Fri, Mar 7, 2014 at 9:51 PM, Jeremy Gillick notifications@github.com wrote:

It looks like the pip2 page says that it doesn't automatically install dependencies, so you probably will need to install all the dependencies manually.

Reply to this email directly or view it on GitHub: https://github.com/jgillick/LendingClubAutoInvestor/issues/19#issuecomment-37090162

bensig commented 10 years ago

So... I tried to install those dependencies with pip and I get this error:

Traceback (most recent call last): File "/usr/local/bin/pip", line 5, in from pkg_resources import load_entry_point File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 2709, in working_set.require(requires) File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 686, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 584, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: pip==1.4.1

Instead, I did them with pip2, seems to go smoothly, but then I get this error when running /usr/local/bin/lcinvestor

Traceback (most recent call last): File "/usr/local/bin/lcinvestor", line 134, in investor = lcinvestor.AutoInvestor(verbose=isVerbose) File "/usr/local/lib/python2.7/site-packages/lcinvestor/init.py", line 69, in init self.settings = Settings(investor=self, settings_dir=self.app_dir, logger=self.logger, verbose=self.verbose) File "/usr/local/lib/python2.7/site-packages/lcinvestor/settings/init.py", line 91, in init self.investing = copy.deepcopy(self.default_investing) File "/usr/local/lib/python2.7/copy.py", line 163, in deepcopy y = copier(x, memo) File "/usr/local/lib/python2.7/copy.py", line 257, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) File "/usr/local/lib/python2.7/copy.py", line 190, in deepcopy y = _reconstruct(x, rv, 1, memo) File "/usr/local/lib/python2.7/copy.py", line 358, in _reconstruct y[key] = value File "/usr/local/lib/python2.7/site-packages/lendingclub/filters.py", line 195, in setitem self.normalize() File "/usr/local/lib/python2.7/site-packages/lendingclub/filters.py", line 233, in normalize self.normalize_grades() File "/usr/local/lib/python2.7/site-packages/lendingclub/filters.py", line 203, in __normalize_grades if self['grades']['All'] is True: File "/usr/local/lib/python2.7/site-packages/lendingclub/filters.py", line 183, in __getitem return dict.getitem(self, key) KeyError: 'grades'

bensig commented 10 years ago

Well... for what it's worth... I got pip working with:

wget http://python-distribute.org/distribute_setup.py python distribute_setup.py

bensig commented 10 years ago

I removed everything and started from scratch... no lcinvestor, no modules....

pip install lcinvestor

Downloading/unpacking lcinvestor Downloading lcinvestor-2.2.1.tar.gz (49kB): 49kB downloaded Running setup.py (path:/tmp/pip_build_root/lcinvestor/setup.py) egg_info for package lcinvestor

Downloading/unpacking lendingclub>=0.1.7 (from lcinvestor) Downloading lendingclub-0.1.7.tar.gz (42kB): 42kB downloaded Running setup.py (path:/tmp/pip_build_root/lendingclub/setup.py) egg_info for package lendingclub

Downloading/unpacking argparse>=1.2.1 (from lcinvestor) Could not find a version that satisfies the requirement argparse>=1.2.1 (from lcinvestor) (from versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.9.1, 1.0.1, 1.0, 1.1) Some externally hosted files were ignored (use --allow-external to allow). Cleaning up... No distributions matching the version for argparse>=1.2.1 (from lcinvestor) Storing debug log for failure in /root/.pip/pip.log

bensig commented 10 years ago

So... I installed it with easy_install

easy_install lcinvestor

Searching for lcinvestor Reading http://pypi.python.org/simple/lcinvestor/ Best match: lcinvestor 2.2.1 Downloading https://pypi.python.org/packages/source/l/lcinvestor/lcinvestor-2.2.1.tar.gz#md5=81f9837ae9705313ea6d373e79d1cbbf Processing lcinvestor-2.2.1.tar.gz Writing /tmp/easy_install-YCz69U/lcinvestor-2.2.1/setup.cfg Running lcinvestor-2.2.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-YCz69U/lcinvestor-2.2.1/egg-dist-tmp-UThM4b zip_safe flag not set; analyzing archive contents... lcinvestor.util: module references file lcinvestor.tests.portfolio_picker_test: module references file lcinvestor.tests.login_test: module references file lcinvestor.settings.init: module references file Adding lcinvestor 2.2.1 to easy-install.pth file Installing lcinvestor.bat script to /usr/local/bin Installing lcinvestor script to /usr/local/bin

Installed /usr/local/packages/@appstore/Python/usr/local/lib/python2.7/site-packages/lcinvestor-2.2.1-py2.7.egg Processing dependencies for lcinvestor Searching for pause>=0.1.2 Reading http://pypi.python.org/simple/pause/ Best match: pause 0.1.2 Downloading https://pypi.python.org/packages/source/p/pause/pause-0.1.2.tar.gz#md5=3102adc238d0d4a221de60febdec6af2 Processing pause-0.1.2.tar.gz Writing /tmp/easy_install-TnlKzY/pause-0.1.2/setup.cfg Running pause-0.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-TnlKzY/pause-0.1.2/egg-dist-tmp-4o7uS9 package init file 'pause/tests/init.py' not found (or not a regular file) zip_safe flag not set; analyzing archive contents... Adding pause 0.1.2 to easy-install.pth file

Installed /usr/local/packages/@appstore/Python/usr/local/lib/python2.7/site-packages/pause-0.1.2-py2.7.egg Searching for pyyaml>=3.09 Reading http://pypi.python.org/simple/pyyaml/ Best match: PyYAML 3.10 Downloading https://pypi.python.org/packages/source/P/PyYAML/PyYAML-3.10.zip#md5=b1a2b30cdf481da4249c917c3307f129 Processing PyYAML-3.10.zip Writing /tmp/easy_install-meCBvm/PyYAML-3.10/setup.cfg Running PyYAML-3.10/setup.py -q bdist_egg --dist-dir /tmp/easy_install-meCBvm/PyYAML-3.10/egg-dist-tmp-p92y_P unable to execute /usr/local/i686-pc-linux-gnu/bin/i686-pc-linux-gnu-ccache-gcc: No such file or directory

libyaml is not found or a compiler error: forcing --without-libyaml (if libyaml is installed correctly, you may need to specify the option --include-dirs or uncomment and modify the parameter include_dirs in setup.cfg) zip_safe flag not set; analyzing archive contents... Adding PyYAML 3.10 to easy-install.pth file

Installed /usr/local/packages/@appstore/Python/usr/local/lib/python2.7/site-packages/PyYAML-3.10-py2.7-linux-x86_64.egg Searching for argparse>=1.2.1 Reading http://pypi.python.org/simple/argparse/ Best match: argparse 1.2.1 Downloading http://argparse.googlecode.com/files/argparse-1.2.1.tar.gz#md5=2fbef8cb61e506c706957ab6e135840c Processing argparse-1.2.1.tar.gz Writing /tmp/easy_install-vmXozT/argparse-1.2.1/setup.cfg Running argparse-1.2.1/setup.py -q bdist_egg --dist-dir /tmp/easyinstall-vmXozT/argparse-1.2.1/egg-dist-tmp-B7a44j warning: no previously-included files matching '.pyc' found anywhere in distribution warning: no previously-included files matching '.pyo' found anywhere in distribution warning: no previously-included files matching '.orig' found anywhere in distribution warning: no previously-included files matching '_.rej' found anywhere in distribution no previously-included directories found matching 'doc/_build' no previously-included directories found matching 'env24' no previously-included directories found matching 'env25' no previously-included directories found matching 'env26' no previously-included directories found matching 'env27' zip_safe flag not set; analyzing archive contents... Adding argparse 1.2.1 to easy-install.pth file

Installed /usr/local/packages/@appstore/Python/usr/local/lib/python2.7/site-packages/argparse-1.2.1-py2.7.egg Searching for lendingclub>=0.1.7 Reading http://pypi.python.org/simple/lendingclub/ Best match: lendingclub 0.1.7 Downloading https://pypi.python.org/packages/source/l/lendingclub/lendingclub-0.1.7.tar.gz#md5=2ef3e545256336ff8ad42d347a7a39b6 Processing lendingclub-0.1.7.tar.gz Writing /tmp/easy_install-ZD8C5l/lendingclub-0.1.7/setup.cfg Running lendingclub-0.1.7/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ZD8C5l/lendingclub-0.1.7/egg-dist-tmp-gja4_R zip_safe flag not set; analyzing archive contents... lendingclub.filters: module references file lendingclub.init: module references file lendingclub.tests.server: module references file Adding lendingclub 0.1.7 to easy-install.pth file

Installed /usr/local/packages/@appstore/Python/usr/local/lib/python2.7/site-packages/lendingclub-0.1.7-py2.7.egg Searching for pybars>=0.0.4 Reading http://pypi.python.org/simple/pybars/ Best match: pybars 0.0.4 Downloading https://pypi.python.org/packages/source/p/pybars/pybars-0.0.4.tar.gz#md5=de3e2113bb11bab8a91340f84fae0ca5 Processing pybars-0.0.4.tar.gz Writing /tmp/easy_install-UgNLCh/pybars-0.0.4/setup.cfg Running pybars-0.0.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-UgNLCh/pybars-0.0.4/egg-dist-tmp-PJ6Eoy zip_safe flag not set; analyzing archive contents... Adding pybars 0.0.4 to easy-install.pth file

Installed /usr/local/packages/@appstore/Python/usr/local/lib/python2.7/site-packages/pybars-0.0.4-py2.7.egg Searching for html5lib>=0.95 Reading http://pypi.python.org/simple/html5lib/ Best match: html5lib 1.0b3 Downloading https://pypi.python.org/packages/source/h/html5lib/html5lib-1.0b3.tar.gz#md5=10c166c7931c9630ce50a5bb9b62ef32 Processing html5lib-1.0b3.tar.gz Writing /tmp/easy_install-o_7XHl/html5lib-1.0b3/setup.cfg Running html5lib-1.0b3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-o_7XHl/html5lib-1.0b3/egg-dist-tmp-gsWtEA zip_safe flag not set; analyzing archive contents... Adding html5lib 1.0b3 to easy-install.pth file

Installed /usr/local/packages/@appstore/Python/usr/local/lib/python2.7/site-packages/html5lib-1.0b3-py2.7.egg Searching for beautifulsoup4>=4.1.3 Reading http://pypi.python.org/simple/beautifulsoup4/ Best match: beautifulsoup4 4.3.2 Downloading https://pypi.python.org/packages/source/b/beautifulsoup4/beautifulsoup4-4.3.2.tar.gz#md5=b8d157a204d56512a4cc196e53e7d8ee Processing beautifulsoup4-4.3.2.tar.gz Writing /tmp/easy_install-mpuIZN/beautifulsoup4-4.3.2/setup.cfg Running beautifulsoup4-4.3.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-mpuIZN/beautifulsoup4-4.3.2/egg-dist-tmp-2MhLz5 zip_safe flag not set; analyzing archive contents... Adding beautifulsoup4 4.3.2 to easy-install.pth file

Installed /usr/local/packages/@appstore/Python/usr/local/lib/python2.7/site-packages/beautifulsoup4-4.3.2-py2.7.egg Searching for requests>=1.2.3 Reading http://pypi.python.org/simple/requests/ Best match: requests 2.2.1 Downloading https://pypi.python.org/packages/source/r/requests/requests-2.2.1.tar.gz#md5=ac27081135f58d1a43e4fb38258d6f4e Processing requests-2.2.1.tar.gz Writing /tmp/easy_install-OJqbre/requests-2.2.1/setup.cfg Running requests-2.2.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-OJqbre/requests-2.2.1/egg-dist-tmp-9xZ7hJ Adding requests 2.2.1 to easy-install.pth file

Installed /usr/local/packages/@appstore/Python/usr/local/lib/python2.7/site-packages/requests-2.2.1-py2.7.egg Finished processing dependencies for lcinvestor

bensig commented 10 years ago

After that, I'm getting the same error:

Traceback (most recent call last): File "/usr/local/bin/lcinvestor", line 5, in pkg_resources.run_script('lcinvestor==2.2.1', 'lcinvestor') File "/usr/local/lib/python2.7/site-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 507, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/local/lib/python2.7/site-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 1272, in run_script execfile(script_filename, namespace, namespace) File "/usr/local/packages/@appstore/Python/usr/local/lib/python2.7/site-packages/lcinvestor-2.2.1-py2.7.egg/EGG-INFO/scripts/lcinvestor", line 134, in investor = lcinvestor.AutoInvestor(verbose=isVerbose) File "/usr/local/lib/python2.7/site-packages/lcinvestor-2.2.1-py2.7.egg/lcinvestor/init.py", line 69, in init self.settings = Settings(investor=self, settings_dir=self.app_dir, logger=self.logger, verbose=self.verbose) File "/usr/local/lib/python2.7/site-packages/lcinvestor-2.2.1-py2.7.egg/lcinvestor/settings/init.py", line 91, in init self.investing = copy.deepcopy(self.default_investing) File "/usr/local/lib/python2.7/copy.py", line 163, in deepcopy y = copier(x, memo) File "/usr/local/lib/python2.7/copy.py", line 257, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) File "/usr/local/lib/python2.7/copy.py", line 190, in deepcopy y = _reconstruct(x, rv, 1, memo) File "/usr/local/lib/python2.7/copy.py", line 358, in _reconstruct y[key] = value File "/usr/local/lib/python2.7/site-packages/lendingclub-0.1.7-py2.7.egg/lendingclub/filters.py", line 195, in setitem self.normalize() File "/usr/local/lib/python2.7/site-packages/lendingclub-0.1.7-py2.7.egg/lendingclub/filters.py", line 233, in normalize self.normalize_grades() File "/usr/local/lib/python2.7/site-packages/lendingclub-0.1.7-py2.7.egg/lendingclub/filters.py", line 203, in __normalize_grades if self['grades']['All'] is True: File "/usr/local/lib/python2.7/site-packages/lendingclub-0.1.7-py2.7.egg/lendingclub/filters.py", line 183, in __getitem return dict.getitem(self, key) KeyError: 'grades'

bensig commented 10 years ago

Good news... I was able to get it running by installing python 2.6 and running lcinvestor via

python2.6 /usr/local/bin/lcinvestor

I had to create the JSON file in /root/ to run it (which I did not have to do previously) but, I am up and running.

I'm happy to continue testing my python 2.7.3 if you guys are interested in figuring out why it will not run...

Ashkaan commented 10 years ago

I'm having this issue too since I upgraded to 2.2.1. I have a Synology running python 2.7.3 and I don't want to have to install python 2.6 next to 2.7.

Everything was fine with 2.1.4, but then I started getting this error: https://github.com/jgillick/LendingClub/issues/10, so I decided to upgrade. I ran 'pip lcinvestor --upgrade' to go from 2.1.4 to 2.2.1. It also updated lendingclub module from 0.1.3 to 0.1.7.

Any ideas jgillick?

ghost commented 10 years ago

@Ashkaan Do you mean that you're getting the 'No struts token' error? The latest version (0.1.7) should fix this. Make sure that your system is using that version and not an older one. (I've seen a few cases where systems will run multiple versions of a module).

I currently do not have the bandwidth to upgrade it for Python 2.7+. If anyone wants to fork the repo and perform the upgrade, I'd be happy to merge it into the project.

Ashkaan commented 10 years ago

Thanks for the quick reply.

No, I mean I'm getting the same error as bensig.

What's odd is that I was running everything (2.1.4 and 0.1.3) just fine before upgrading on Python 2.7.3. Perhaps the answer is simple and in the last few changes?

The error is at the bottom:

Traceback (most recent call last): File "/usr/local/bin/lcinvestor", line 5, in pkg_resources.run_script('lcinvestor==2.2.1', 'lcinvestor') File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 499, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 1235, in run_script execfile(script_filename, namespace, namespace) File "/usr/local/packages/@appstore/Python/usr/local/lib/python2.7/site-packages/lcinvestor-2.2.1-py2.7.egg/EGG-INFO/scripts/lcinvestor", line 134, in investor = lcinvestor.AutoInvestor(verbose=isVerbose) File "/usr/local/lib/python2.7/site-packages/lcinvestor-2.2.1-py2.7.egg/lcinvestor/init.py", line 69, in init self.settings = Settings(investor=self, settings_dir=self.app_dir, logger=self.logger, verbose=self.verbose) File "/usr/local/lib/python2.7/site-packages/lcinvestor-2.2.1-py2.7.egg/lcinvestor/settings/init.py", line 91, in init self.investing = copy.deepcopy(self.default_investing) File "/usr/local/lib/python2.7/copy.py", line 163, in deepcopy y = copier(x, memo) File "/usr/local/lib/python2.7/copy.py", line 257, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) File "/usr/local/lib/python2.7/copy.py", line 190, in deepcopy y = _reconstruct(x, rv, 1, memo) File "/usr/local/lib/python2.7/copy.py", line 358, in _reconstruct y[key] = value File "/usr/local/lib/python2.7/site-packages/lendingclub-0.1.7-py2.7.egg/lendingclub/filters.py", line 195, in setitem self.normalize() File "/usr/local/lib/python2.7/site-packages/lendingclub-0.1.7-py2.7.egg/lendingclub/filters.py", line 233, in normalize self.normalize_grades() File "/usr/local/lib/python2.7/site-packages/lendingclub-0.1.7-py2.7.egg/lendingclub/filters.py", line 203, in __normalize_grades if self['grades']['All'] is True: File "/usr/local/lib/python2.7/site-packages/lendingclub-0.1.7-py2.7.egg/lendingclub/filters.py", line 183, in __getitem return dict.getitem(self, key) KeyError: 'grades'

bensig commented 10 years ago

What error are you getting on the CLI?— Sent from mobile device

On Mon, Mar 10, 2014 at 8:32 PM, Ashkaan notifications@github.com wrote:

Thanks for the quick reply. No, I mean I'm getting the same error as bensig.

What's odd is that I was running everything (2.1.4 and 0.1.3) just fine before upgrading on Python 2.7.3. Perhaps the answer is simple and in the last few changes?

Reply to this email directly or view it on GitHub: https://github.com/jgillick/LendingClubAutoInvestor/issues/19#issuecomment-37251569

Ashkaan commented 10 years ago

The CLI doesn't even recognize the command.

File "", line 1, in NameError: name 'lcinvestor' is not defined

Ashkaan commented 10 years ago

I tried a different install of python 2.7.6 and I'm getting this error:

File "/usr/local/bin/lcinvestor", line 5, in pkg_resources.run_script('lcinvestor==2.2.1', 'lcinvestor') File "/volume1/@appstore/python/lib/python2.7/site-packages/pkg_resources.py", line 492, in run_script self.require(requires)[0].run_script(script_name, ns) File "/volume1/@appstore/python/lib/python2.7/site-packages/pkg_resources.py", line 1344, in run_script raise ResolutionError("No script named %r" % script_name) pkg_resources.ResolutionError: No script named 'lcinvestor'

bensig commented 10 years ago

You should be able to type 

which lcinvestor 

And reveal the location of the executable file...

If it's not there, it may not be installed correctly.

How did you update? — Sent from mobile device

On Mon, Mar 10, 2014 at 9:27 PM, Ashkaan notifications@github.com wrote:

I tried a different install of python 2.7.6 and I'm getting this error: File "/usr/local/bin/lcinvestor", line 5, in pkg_resources.run_script('lcinvestor==2.2.1', 'lcinvestor') File "/volume1/@appstore/python/lib/python2.7/site-packages/pkg_resources.py", line 492, in run_script self.require(requires)[0].run_script(script_name, ns) File "/volume1/@appstore/python/lib/python2.7/site-packages/pkg_resources.py", line 1344, in run_script raise ResolutionError("No script named %r" % script_name)

pkg_resources.ResolutionError: No script named 'lcinvestor'

Reply to this email directly or view it on GitHub: https://github.com/jgillick/LendingClubAutoInvestor/issues/19#issuecomment-37254519

Ashkaan commented 10 years ago

The executable is located at "/volume1/@appstore/python/bin/lcinvestor", but which prints "/usr/local/bin/lcinvestor".

I didn't want to use the Synology provided python, so I uninstalled it from the package center, but I kept the SynoCommunity python (for sickbeard, etc.).

I hijacked that python by adding some symlinks in usr/bin and usr/local/bin to be able to use it. Once I did that, my error my last post went away. The only problem is that it's version 2.7.6 and I run into the same problem you ran into using python 2.7+ with lcinvestor 2.2.1.

Ashkaan commented 10 years ago

Interesting development:

I made VM with just ubuntu 12. That distro comes with python 2.7.3 preinstalled so I installed pythonbrew to test other versions. I installed and switched to 2.6.9 and that version also gave the exact same error we've been getting: keyError: 'grades'.

bensig commented 10 years ago

So... 2.6.9 has the same issue? — Sent from mobile device

On Tue, Mar 11, 2014 at 12:41 AM, Ashkaan notifications@github.com wrote:

Interesting development:

I made VM with just ubuntu 12. That distro comes with python 2.7.3 preinstalled so I installed pythonbrew to test other versions. I installed and switched to 2.6.9 and that version also gave the exact same error we've been getting: keyError: 'grades'.

Reply to this email directly or view it on GitHub: https://github.com/jgillick/LendingClubAutoInvestor/issues/19#issuecomment-37262862

Ashkaan commented 10 years ago

No sorry.. It turns out pythonbrew doesn't work the way I thought. It was still running with 2.7.3. I got it working with 2.6.9 on a new VM.