Giter Site home page Giter Site logo

Participant Creation about pychallonge HOT 6 CLOSED

russ- avatar russ- commented on July 18, 2024
Participant Creation

from pychallonge.

Comments (6)

ZEDGR avatar ZEDGR commented on July 18, 2024

You have to do it like this:

mytour = challonge.tournaments.show("mytournament")
part1 = challonge.participants.create(mytour['id'], "participant_name")

from pychallonge.

piti166 avatar piti166 commented on July 18, 2024

I still get the Error, my concrete code is:

tournament = challonge.tournaments.create("name" + str(nr), url, "double elimination")
for name in participants:
    print(url, name)
    challonge.participants.create(tournament["id"],name)

participants is a list with given names in String form.

from pychallonge.

ZEDGR avatar ZEDGR commented on July 18, 2024

Which python version are you using ?

from pychallonge.

piti166 avatar piti166 commented on July 18, 2024

Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32

from pychallonge.

ZEDGR avatar ZEDGR commented on July 18, 2024

I have just tested for Windows also your code snippet and no error appeared everything worked fine.

I suggest upgrading your python installation to Python 2.7.11 which is the latest version of 2.7 branch and try again.

I installed pychallonge from pip and my Python version is: 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)]

from pychallonge.

piti166 avatar piti166 commented on July 18, 2024

I updatet Python an reinstalled challonge through pip and now it works, Thanks :)

from pychallonge.

Related Issues (13)

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.