|
|||||||
![]() |
|
|
Thread Tools |
|
|
#26 |
|
what are birds?
Join Date: May 2006
Posts: 5,002
we just don't know.
|
i think this will need updating after chaos is done changing things up?
|
|
|
|
|
|
#27 |
|
Join Date: Nov 2009
Posts: 33
|
I'm curious, why do you guys use Python instead of PHP? (I'm a PHP dev)
__________________
newblet |
|
|
|
|
|
#28 |
|
Knows the great enthusiasms
![]() ![]() ![]() ![]() ![]() ![]()
Administrator
Join Date: Jun 2007
Posts: 2,901
Houston, TX
|
I have been setting up a new dev laptop, and I had to go back through the pain of getting my Smogon environment working again (I'm on Vista). Ryu's tut still works pretty well, but I have a few additional notes for anyone attempting this these days, since some stuff has changed.
I doubt many people are actually going to use this info. So, I'm posting this more as a reminder to myself, rather than a full-blown how-to guide. Anyway, here's a few things that are different than the steps in the OP: 1) Smogon site code is kept in a Mercurial repository. There are several Windows-compatible clients for HG (thats the cute acronym for all things related to Mercurial. hg, the symbol for mercury, get it?), but the base command line tool works just fine. If you do all that stuff, then test.py should work just fine, and you will be up and running with a local install of the Smogon environment. You won't have any database data, however. I may see what I can do about that sometime in the future. But, in the meantime, the running code is a decent start. FWIW, I use PyScripter for all Python stuff on Windows. Although I'm willing to deal with Eclipse-hell for most Java stuff, it was a constant nightmare for me to get PyDev to work right. I'm not real strong with Python anyway, and the Eclipse plugin seemed to just confuse me even more. PyScripter has all the features you expect from an IDE, but isn't the massive bloatware explosion that most IDE's impose on your machine. Give it a try.
__________________
My Art Thread: ArtJustArt - The Art of DougJustDoug Last edited by DougJustDoug; Oct 30th, 2010 at 11:10:36 AM. Reason: Added config.py stuff |
|
|
|
|
|
#29 |
|
:D
![]() ![]() ![]() ![]() ![]() ![]()
Moderator
Join Date: May 2008
Posts: 4,175
|
Thanks a bunch Doug, I'm gonna take a shot at getting the new framework set up. Any info in regards to getting actual database data to mess with would be awesome, though.
__________________
|
|
|
|
|
|
#30 |
|
what are birds?
Join Date: May 2006
Posts: 5,002
we just don't know.
|
I'm trying to set up a dev env, have followed all the steps mentioned in this thread. However, on running test.py:
Code:
* Running on http://www.smogon.com:4000/
Traceback (most recent call last):
File "C:\Programming\smogon\test.py", line 37, in <module>
run_simple('www.smogon.com', 4000, app, use_debugger=True, use_reloader=True
)
File "C:\Python27\lib\site-packages\werkzeug-0.6.2-py2.7.egg\werkzeug\serving.
py", line 529, in run_simple
test_socket.bind((hostname, port))
File "C:\Python27\lib\socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 10049] The requested address is not valid in its context
should be mentioned somewhere that port 4000 is the default for test.py also it would be nice to get a db dump (or a limited access user account to the live db) current problem is that i have no content - every page is a 404?
__________________
carpay deum. thats spanish for liv ur life. im out Last edited by monkfish; Jan 27th, 2011 at 11:53:06 PM. |
|
|
|
|
|
#31 | |
|
Join Date: Feb 2010
Posts: 12
France
|
Quote:
The repository are dead => Error 404 |
|
|
|
|
![]() |
| Thread Tools | |
|
|