Code Monkey home page Code Monkey logo

Comments (9)

nickfrerichs avatar nickfrerichs commented on August 15, 2024

What is the PLAYER_UPDATE_CMD set to in ./python/config.py ?

For troubleshooting, add this prior to the subprocess.call on line 270 in ./python/update.py
print c.PLAYER_UPDATE_CMD

Then run it and see what command is outputted, you should be able to paste that command and run it without errors, if you still get a permissions error it's something outside of fflproject code.

from fflproject.

bryarwagner avatar bryarwagner commented on August 15, 2024

PLAYER_UPDATE_CMD is appropriately set to ./python2.7/dist-packages/nflgame/update_players.py

When I run this command on its own, it updates all NFL Rosters and checks for any missing players with no errors (after fixing the JR issue with Charles Leno Jr)

I have checked subprocess.py and checked its permissions and they are set to 755.

from fflproject.

nickfrerichs avatar nickfrerichs commented on August 15, 2024

Try creating a new file ex: test.py with the following contents:

import subprocess

cmd = './python2.7/dist-packages/nflgame/update_players.py'
subprocess.call(cmd.split(' '))

If you run that, do you get the same error?

from fflproject.

bryarwagner avatar bryarwagner commented on August 15, 2024

Yes I got the exact same error.

from fflproject.

nickfrerichs avatar nickfrerichs commented on August 15, 2024

It must be an issue with the server config or permissions rather than fflproject code. Do you have SELinux enforcing? Are you running python in a virtualenv?

Maybe you could try an even simpler test:

import subprocess

cmd = 'ls'
subprocess.call(cmd.split(' '))

from fflproject.

bryarwagner avatar bryarwagner commented on August 15, 2024

image

This is what I got when I ran what you suggested.

from fflproject.

nickfrerichs avatar nickfrerichs commented on August 15, 2024

This still seems like a permissions issue on your system. You get the same permission error with the python script that just calls update_players.py so I'm going to close this as it's not really an issue with fflproject.

Two things you could try:

  • In my config.py, I use /usr/bin/nflgame-update-players that gets installed with nflgame, you might try that rather than directly calling the python file.

  • Or explicitly specify the path to python in your cmd: /usr/bin/python

from fflproject.

bryarwagner avatar bryarwagner commented on August 15, 2024

After much more sifting through the internet and looking at BurntSushi's nflgame GitHub, I found the I needed to set the PLAYER_UPDATE_CMD needed to be set to : /usr/local/bin/nflgame-update-players

Was just a matter of figuring out where everything was installed I guess, thanks for the help!

from fflproject.

Boblyng avatar Boblyng commented on August 15, 2024

Yeah in Deb7 it is /usr/local/bin/nflgame-update-players by default for me also.

from fflproject.

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.