Coder Social home page Coder Social logo

Comments (13)

ochawkeye avatar ochawkeye commented on July 28, 2024

nflldb is actually dependent on nflgame. But it would appear to me based on your error that you did not install nfldb with pip. If you had, pip would have detected the httplib2 dependency and installed that one as well.

https://github.com/BurntSushi/nfldb/wiki/Python-&-pip-Windows-installation
https://github.com/BurntSushi/nfldb/wiki/Windows-Install

from nfldb.

iliketowel avatar iliketowel commented on July 28, 2024

Do I need to somehow delete nfldb? Or just try reinstalling it with pip? Thanks again.

from nfldb.

ochawkeye avatar ochawkeye commented on July 28, 2024

Dunno - what happens when you try to reinstall with pip? If it works then good. If not, what is error and we'll go from there.

from nfldb.

ochawkeye avatar ochawkeye commented on July 28, 2024

Uninstallation shouldn't be difficult if that is what needs to be done. Just need to uninstall the nfldb Python module and not the database. You can do that be just deleting your C:\Python27\Lib\site-packages\nfldb and nfldb-<version>.egg.info (if present) folders.

from nfldb.

iliketowel avatar iliketowel commented on July 28, 2024

I deleted the two folders, and when I re-install, I get this message:

image

Perhaps I need to delete nflgame as well?

from nfldb.

ochawkeye avatar ochawkeye commented on July 28, 2024

There's not an error anywhere in that message :) It is just being verbose about the dependencies and letting you know that everything appears up to date. Successfully installed nfldb is the key there.

from nfldb.

BurntSushi avatar BurntSushi commented on July 28, 2024

Use a hammer.

pip install --upgrade --force-reinstall nflgame
pip install --upgrade --force-reinstall nfldb

It sucks that you have to post screenshots. Does cmd not do copy & paste?

from nfldb.

ochawkeye avatar ochawkeye commented on July 28, 2024

Oh wait - it didn't check httplib2 or beautifulsoup4 dependency...

P:\Projects\Home Computer\Fantasy Football\2014>pip install nfldb
Requirement already satisfied (use --upgrade to upgrade): nfldb in c:\python27\lib\site-packages
Requirement already satisfied (use --upgrade to upgrade): nflgame>=1.2.2 in c:\python27\lib\site-pac
kages (from nfldb)
Requirement already satisfied (use --upgrade to upgrade): psycopg2 in c:\python27\lib\site-packages
(from nfldb)
Requirement already satisfied (use --upgrade to upgrade): enum34 in c:\python27\lib\site-packages (f
rom nfldb)
Requirement already satisfied (use --upgrade to upgrade): pytz in c:\python27\lib\site-packages (fro
m nfldb)
Requirement already satisfied (use --upgrade to upgrade): httplib2 in c:\python27\lib\site-packages
(from nflgame>=1.2.2->nfldb)
Requirement already satisfied (use --upgrade to upgrade): beautifulsoup4 in c:\python27\lib\site-pac
kages (from nflgame>=1.2.2->nfldb)
Cleaning up...

What happens if you pip install httplib2 and pip install beautifulsoup4?

from nfldb.

iliketowel avatar iliketowel commented on July 28, 2024

Not an error, but earlier there was talk of a missing dependcy (httplib2), I'm still not seeing signs of that at all.

pip install --upgrade --force-reinstall nflgame
pip install --upgrade --force-reinstall nfldb
It sucks that you have to post screenshots. Does cmd not do copy & paste?

Let me see if I can look up a way to do so. One thing I'm noticing, I'm not seeing some of the site-> packages I need to see. In issue #33, you had written about needing to see the following:

C:\Users\Ben>pip install nfldb
Requirement already satisfied (use --upgrade to upgrade): nfldb in d:\python27\l
ib\site-packages
Requirement already satisfied (use --upgrade to upgrade): nflgame>=1.2.2 in d:\p
ython27\lib\site-packages (from nfldb)
Requirement already satisfied (use --upgrade to upgrade): psycopg2 in d:\python2
7\lib\site-packages (from nfldb)
Requirement already satisfied (use --upgrade to upgrade): enum34 in d:\python27
lib\site-packages (from nfldb)
Requirement already satisfied (use --upgrade to upgrade): pytz in d:\python27\li
b\site-packages (from nfldb)
Requirement already satisfied (use --upgrade to upgrade): httplib2 in d:\python2
7\lib\site-packages (from nflgame>=1.2.2->nfldb)
Requirement already satisfied (use --upgrade to upgrade): beautifulsoup4 in d:\p
ython27\lib\site-packages (from nflgame>=1.2.2->nfldb)
Cleaning up...

But I don't see the httplib2 or beautifulsoup4 when I reinstalled.

from nfldb.

iliketowel avatar iliketowel commented on July 28, 2024

sorry, I wrote that as you were responding, so I pip install httplib2 and beautifulsoup4.

I tried to force install the nfldb and I got the following error

error: Unable to find vcvarsall.bat > ---------------------------------------- Rolling back uninstall of psycopg2 > Cleaning up... Command C:\Python27\python.exe -c > "import setuptools,
tokenize;file='c:\users\eric1.bie\appdata\local\temp\pip_build_Eric.Bieber\psycopg2\setup.> py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, > 'exec'))" install --record c:\users\eric1.bie\appdata\local\temp\pip-dova7b-record\install-record.txt --> single-version-externally-managed --compile failed with error code 1 in > c:\users\eric~1.bie\appdata\local\temp\pip_build_Eric.Bieber\psycopg2 > Storing debug log for failure in C:\Users\Eric.Bieber\pip\pip.log

from nfldb.

ochawkeye avatar ochawkeye commented on July 28, 2024

That puts you at step 1 of the install wiki.
https://github.com/BurntSushi/nfldb/wiki/Windows-Install
You'll be able to skip steps 4 - 11 since you already have the database installed.

from nfldb.

ochawkeye avatar ochawkeye commented on July 28, 2024

It sucks that you have to post screenshots. Does cmd not do copy & paste?
Let me see if I can look up a way to do so

Right clicking your command prompt window will bring up a context menu where you can "Select All". Right click again will copy, and you can paste into a text editor where you can snip out the relevant potion. Copy into this window and surrounding with three '```' at top and bottom will make some pretty markdown that everyone can read.

Then again, sometimes it's just easy to upload a screenshot ;)

from nfldb.

iliketowel avatar iliketowel commented on July 28, 2024

So, I ended up completely deleting python and starting over. It looks like that did the trick. Now, I got it, and it has all the data from the game last night included.

I think the issue was related to psycopg2, I tried installing it manually. But I must have already installed pip first, and even trying to delete the script and then installing psycopg2 manually didn't help.

Thanks for your time on this issue.

from nfldb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.