![]() |
Re: Dom-III PBEM manager
Oh, I think I may have a hunch what's causing your issue.
Please make sure you follow step 3. of my first post. After which libgmail should be correctly installed, please verify it as follows: open a shell (start->run->cmd in windows, or xterm in linux), run python (IDLE works as well), run import libgmail. This should work w/o errors, if you hit an error this means libgmail isn't installed correctly. It should be fairly easy to install what with one command that installs it and up until now worked smoothly for me. Tell me if this helps. |
Re: Dom-III PBEM manager
I installed libgmail, I even managed to access the gmail account to make sure it worked, but I'm unsure what you mean by "run import libgmail" I don't see any import options, and doing a index search of the help documentation brings up a whole bunch of stuff I don't understand.
|
Re: Dom-III PBEM manager
I mean do the following.
1. start->run->cmd, should open up dos shell. 2. print: python and press enter, this should start python, you should see the prompt as >>>. 3. print: import libgmail. This should work with no messages. If you do get messages it means that installation of the lib has failed. |
Re: Dom-III PBEM manager
Yea, I get an error message that says there is no module named libgmail. I ran the setup.py file though, is there a specific folder I should put the libgmail files in?
Edit: I got it to not give me an error message by putting the libgmail files in the "libs" folder, but the pbem manager module still gives me the same error message. |
Re: Dom-III PBEM manager
you should run:
$ python setup.py install You shouldn't do anything manually with the lib. Install takes care of everything. After that you should be able to get the "import libgmail" to work. If you are there and still get errors when running the PBEM manager please give me the exact error. |
Re: Dom-III PBEM manager
I've had this error:
------------------------------------------------------------ Dom III PBEM Manager Interactive mode. initing class... Loading class configuration section found: test1 section items: [('sent_turns_msg', '<message that will be added to the turn dis tribution email>'), ('players', '<list of players in the following format: playe r1_email:player1_nation, player2_email:player2_nation etc.\nExample: player@gmai l.com:mid_oceania, 2nd_player@yahoo.com:mid_pythium, etc>')] section found: GAMES section items: [('games', '<list of games seperated by ,>')] section found: GENERAL section items: [('backup_path', 'D:\\temp\\domIII'), ('host_pwd', '<your passwo rd>'), ('host_email', '<your gmail address>'), ('dom_path', 'D:\\Program Files\\ dominions3'), ('temp_turns_path', 'D:\\temp'), ('sig_msg', 'Thanks, <your name>' ), ('active_game', '<default for currently active game>')] item in general: backup_path value: D:\temp\domIII setting value of backup turns path to: D:\temp\domIII item in general: host_pwd value: <your password> setting value of host password item in general: host_email value: <your gmail address> setting value of host email to: <your gmail address> item in general: dom_path value: D:\Program Files\dominions3 setting value of dominions path to: D:\Program Files\dominions3 item in general: temp_turns_path value: D:\temp setting value of temporary turns path to: D:\temp item in general: sig_msg value: Thanks, <your name> setting value of signature to: Thanks, <your name> item in general: active_game value: <default for currently active game> setting value of active game to: [ <default for currently active game> ] item in games: games value: <list of games seperated by ,> loaded game name list: ['<list of games seperated by ', '>'] Traceback (most recent call last): File "C:\Program Files\459268-PBEM_Util\domIII_PBEM_utils.py", line 784, in <m odule> ineractive_mode() File "C:\Program Files\459268-PBEM_Util\domIII_PBEM_utils.py", line 756, in in eractive_mode mgr = DomIIPbemMgr() File "C:\Program Files\459268-PBEM_Util\domIII_PBEM_utils.py", line 116, in __ init__ self.loadConf() File "C:\Program Files\459268-PBEM_Util\domIII_PBEM_utils.py", line 250, in lo adConf game_item = self.config.items(game_name.strip()) File "C:\Program Files\Python25\lib\ConfigParser.py", line 544, in items raise NoSectionError(section) ConfigParser.NoSectionError: No section: '<list of games seperated by' ------------------------------------------------------------ |
Re: Dom-III PBEM manager
@Beorne, first nice to see that you've switched the debug on http://forum.shrapnelgames.com/images/smilies/happy.gif
The error stems for the fact that the configuration file is an example and not a working configuration file. A value that you should fill is indicated by <> braces, you should replace this including the braces with your values. Try it yourself, create a new game with, say, two or more players, fill in the blanks in the configuration file and check if this works for you. |
Re: Dom-III PBEM manager
And I'm a professonal programmer ... what a pity.
Thank you, I'll try. I'd liked very much to learn Python, but now for me at work is the time of C#, a very good prog language even if is M$. The dark side is Visual studio, a thin layer of complexity and mess covering all. |
Re: Dom-III PBEM manager
I recommend learning Python, as it embodies some very nice programming concepts. It is a cool language from the get go.
|
Re: Dom-III PBEM manager
For now I'm using this great utility to send new turns to players.
But when it sends the turn to marco.andreoni@aliceposta.it it raises this error. What is it? Thanks. --------------------------------------------------- Sending turn to marco.andreoni@aliceposta.it nation early_vanheim turn path: C:\Giochi\dominions3\savedgames\Elevento\early_van heim.trn Traceback (most recent call last): File "C:\Program Files\459268-PBEM_Util\domIII_PBEM_utils.py", line 784, in <module> ineractive_mode() File "C:\Program Files\459268-PBEM_Util\domIII_PBEM_utils.py", line 780, in in eractive_mode switchAction.get(opt, help)() File "C:\Program Files\459268-PBEM_Util\domIII_PBEM_utils.py", line 152, in mngGame switchMngAction.get(opt, help)() File "C:\Program Files\459268-PBEM_Util\domIII_PBEM_utils.py", line 389, in send_turns self.send_turn(turn_path, to, 'New '+self.active_game+' turn, number '+turn_ number+', for '+nation, body) File "C:\Program Files\459268-PBEM_Util\domIII_PBEM_utils.py", line 374, in send_turn self.ga.sendMessage(msg) File "C:\Program Files\Python25\lib\site-packages\libgmail.py", line 592, in sendMessage items = self._parsePage(req) File "C:\Program Files\Python25\lib\site-packages\libgmail.py", line 352, in _ parsePage items = _parsePage(self._retrievePage(urlOrRequest)) File "C:\Program Files\Python25\lib\site-packages\libgmail.py", line 333, in _ retrievePage resp = urllib2.urlopen(req) File "C:\Program Files\Python25\lib\urllib2.py", line 121, in urlopen return _opener.open(url, data) File "C:\Program Files\Python25\lib\urllib2.py", line 374, in open response = self._open(req, data) File "C:\Program Files\Python25\lib\urllib2.py", line 392, in _open '_open', req) File "C:\Program Files\Python25\lib\urllib2.py", line 353, in _call_chain result = func(*args) File "C:\Program Files\Python25\lib\urllib2.py", line 1109, in https_open return self.do_open(httplib.HTTPSConnection, req) File "C:\Program Files\Python25\lib\urllib2.py", line 1076, in do_open raise URLError(err) urllib2.URLError: <urlopen error (10053, 'Software caused connection abort')> --------------------------------------------------- |
All times are GMT -4. The time now is 01:29 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.