Giter Site home page Giter Site logo

Comments (11)

carykh avatar carykh commented on September 21, 2024 1

oh shoot, I'm not sure why that's happening for you! Yeah, for me, I do have to be in the '/code' folder before running the code to get it to run, but I've never run into the errors you guys are getting. I hope @hand-burger 's solution works for others as well

from prisonersdilemmatournament.

ThatXliner avatar ThatXliner commented on September 21, 2024 1

What I did was that I moved the example strategies folder outside of the folder prisonersDilemma.py was in (I actually renamed prisonersDilemma.py to __main__.py in a folder called "algch" so I can just run python -m algch to run the tournament)

from prisonersdilemmatournament.

Bates550 avatar Bates550 commented on September 21, 2024

Also running into this.

from prisonersdilemmatournament.

jherndon8 avatar jherndon8 commented on September 21, 2024

If you're running from pycharm, it's probably because the current working directory needs to be set. Make sure it's set to the /code folder

from prisonersdilemmatournament.

jherndon8 avatar jherndon8 commented on September 21, 2024

Or try making this edit

from prisonersdilemmatournament.

hand-burger avatar hand-burger commented on September 21, 2024

Same issue, using VScode

from prisonersdilemmatournament.

zelosos avatar zelosos commented on September 21, 2024

enter the code folder before starting the script

from prisonersdilemmatournament.

hand-burger avatar hand-burger commented on September 21, 2024

enter the code folder before starting the script

Didn't work

from prisonersdilemmatournament.

ThatXliner avatar ThatXliner commented on September 21, 2024

I had to modify the project structure AND the code. I'll post what I have later

from prisonersdilemmatournament.

hand-burger avatar hand-burger commented on September 21, 2024

My situation seems pretty niche but I did find a way to get it working, I'm using MacOS, VScode, python 3.9.5, using the code runner extension

So, I did use the edit which is linked above and code runner seemed to be using python rather than python3, So I have to type
python3 -u 'prisonersDilemma.py' to run it

Hope this can help others

from prisonersdilemmatournament.

Barigamb738 avatar Barigamb738 commented on September 21, 2024

i fixed this by doing this:
inFolder = os.path.dirname(os.path.realpath(__file__)) + '/' + inFolder

from prisonersdilemmatournament.

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.