|
|
|
 |

October 22nd, 2006, 08:28 AM
|
 |
General
|
|
Join Date: Sep 2003
Location: Tel Aviv, Israel
Posts: 3,465
Thanks: 511
Thanked 162 Times in 86 Posts
|
|
Re: Dom-III PBEM manager
1. Full config file:
[GENERAL]
# Windows values:
dom_path = D:\Program Files\dominions3
temp_turns_path = D:\temp
backup_path = D:\temp\domIII
host_email = name@gmail.com
host_pwd = 1234
sig_msg = Thanks, name
active_game = test
[GAMES]
games= test
[test1]
players = player1@gmail.com:mid_oceania, player2@yahoo.com:mid_pythium, player3@whocares.com:mid_vanheim
sent_turns_msg = have fun
2. /cygdrive, is for cygwin - a Linux flavour OS on top of MS windows. Just ignore it if you work on windows, use windows path instead.
3. Thanks for your interest
4. You should seriously consider upgrading to python 2.6. Also python is white space sensitive. The script was tested on windows and cygwin and should work ok. Could it be that the file was edited by mistake?- Maybe try to DL it again. If that fails please post here or PM me with the exact error you get and I'll look into it.
|

October 22nd, 2006, 07:04 PM
|
Sergeant
|
|
Join Date: Mar 2004
Location: cali
Posts: 325
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Dom-III PBEM manager
Okay. I think I've done everything right, I don't have libgmail in the python folder if that matters, which it doesn't seem like it should(?), or your module either. I open up the Python gui, open your file, and select run module. It gives me this error:
Error: Inconsistent indentation detected!
1) Your indentation is outright incorrect (easy to fix), OR
2) Your indentation mixed tabs and spaces.
To fix case 2, change all tabs to spaces by using edit->Select All followed by Format->Untabify Region and specify the number of columns used by each tab.
It also takes me to a line in the middle of your module and highlights the line that says "self.ga.login()"
|

October 22nd, 2006, 07:37 PM
|
 |
General
|
|
Join Date: Sep 2003
Location: Tel Aviv, Israel
Posts: 3,465
Thanks: 511
Thanked 162 Times in 86 Posts
|
|
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.
|

October 22nd, 2006, 07:58 PM
|
Sergeant
|
|
Join Date: Mar 2004
Location: cali
Posts: 325
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

October 22nd, 2006, 08:34 PM
|
 |
General
|
|
Join Date: Sep 2003
Location: Tel Aviv, Israel
Posts: 3,465
Thanks: 511
Thanked 162 Times in 86 Posts
|
|
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.
|

October 22nd, 2006, 09:57 PM
|
Sergeant
|
|
Join Date: Mar 2004
Location: cali
Posts: 325
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

October 23rd, 2006, 05:12 AM
|
 |
General
|
|
Join Date: Sep 2003
Location: Tel Aviv, Israel
Posts: 3,465
Thanks: 511
Thanked 162 Times in 86 Posts
|
|
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.
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|