Comments (9)
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.
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.
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.
Yes I got the exact same error.
from fflproject.
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.
This is what I got when I ran what you suggested.
from fflproject.
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.
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.
Yeah in Deb7 it is /usr/local/bin/nflgame-update-players by default for me also.
from fflproject.
Related Issues (20)
- Live Draft watch list doesn't update right HOT 1
- Chat doesn't allow scrolling
- Free Agents not showing up during draft? HOT 2
- Watch list clear bug HOT 1
- Cant reset season / year HOT 9
- cannot get live draft working HOT 1
- player points show 0 when viewing "League -> Players" HOT 2
- no way for user to switch between leagues HOT 2
- Editing Starting Lineup from Admin Screen HOT 1
- Anyone missing Jacksonville players? HOT 2
- Quick Stat for kickers Heading issue HOT 2
- player database inaccuracies HOT 7
- No Issue, just curious...
- Remove Trades offers that can't be completed
- Division settings don't update at season advance
- Draft room player list formatting HOT 2
- Add player watch list to team roster page
- Manage NFL Player data in admin
- Install HOT 1
- Nflgame-redux is down HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fflproject.