Comments (6)
You have to do it like this:
mytour = challonge.tournaments.show("mytournament")
part1 = challonge.participants.create(mytour['id'], "participant_name")
from pychallonge.
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.
Which python version are you using ?
from pychallonge.
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
from pychallonge.
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.
I updatet Python an reinstalled challonge through pip and now it works, Thanks :)
from pychallonge.
Related Issues (13)
- CHALLONGE_API_URL has changed HOT 3
- missing iso8601 module HOT 1
- Request params do not work in Python 3.3 HOT 15
- can't install on pyenv on raspberry pi HOT 1
- Failing test_index_filter_by_created (__main__.TournamentsTestCase) - Python 2.7.14 HOT 3
- Failing test_index_filter_by_state (__main__.TournamentsTestCase) - Python 2.7.14 HOT 1
- Unable to challonge.matches.index() for tournaments that are still pending HOT 1
- Unable to install package on PyCharm HOT 1
- Correct timezone in start_time HOT 1
- Python 3.3 HOT 7
- attachments HOT 7
- Organization API Access HOT 1
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 pychallonge.