i have modified this codes but now cant comblie it,
i dont know why? i will test if my I2P rufus will working on I2P bittorrent!
where can i see where is the error?
i have now no Rawserver and use the SamServer!
i have modified the Rawserver to Samserver where is needed.
i have test it with orginal sourcecode what is not changed nothing in sourcecode that can i combile without probs.
with Build.bat it makes me only the folder dist with images and the text files into!
who know where is the problem, to can not combiling?
this is my build.bat:
del /F /S /Q build dist
c:\programme\python24\python.exe winsetup.py py2exe -p encodings
mkdir dist\images
mkdir dist\images\flags
copy images dist\images\
copy images\flags dist\images\flags
copy CHANGELOG.TXT dist\
copy LICENSES.TXT dist\
copy credits.txt dist\
copy unicows.dll dist\
rem "d:\Program Files\NSIS\makensis.exe" rufus.nsi
pause
If you scroll up the command window (opened by the build.bat file) you should be able to find the errors the screen shot doesn't really give enough information. Copy the text out of the window and post it here (or send it to me via the e-mail address below)
Sorry if I have been a little slack with getting back to you about the adding of I2P but I am in the middle of upgrading the BitTorrent core... which is taking me a while. I will add an option to use I2P after I have finished the upgrade as it would make more sense to add it then.
Anyway if you want to add I2P to the current source you can contact me via c4n15.rufu5 (at) gmail (d0t) com and I'll help you with the errors.
Thanks
d0c
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i have now open rufus.py with cmd and this errors is coming:
C:\Dokumente und Einstellungen\defnax2000>E:\bit-tests\Rufus_0.5.2_I2P\rufus.py
Traceback (most recent call last):
File "E:\bit-tests\Rufus_0.5.2_I2P\rufus.py", line 39, in ?
from btsession import BTSession
File "E:\bit-tests\Rufus_0.5.2_I2P\btsession.py", line 21, in ?
from BitTorrent.download import Download
File "E:\bit-tests\Rufus_0.5.2_I2P\BitTorrent\download.py", line 142
h = urlopen(config['url'], config['http_proxy'])
that i think is the error?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i have used the same code from I2P-BT download but in rufus the line before 142 its not looking the same and there is problem, but i dont know how can it make to have not errors.
this is from I2P-BT 0.1.8 download.py:
def download(params, filefunc, statusfunc, finfunc, errorfunc, doneflag, cols, pathFunc = None, paramfunc = None, spewflag = Event()):
if len(params) == 0:
errorfunc('arguments are -\n' + formatDefinitions(defaults, cols))
return
try:
config, args = parseargs(params, defaults, 0, 1)
if args:
if config.get('responsefile', None) == None:
raise ValueError, 'must have responsefile as arg or parameter, not both'
if path.isfile(args[0]):
config['responsefile'] = args[0]
else:
config['url'] = args[0]
if (config['responsefile'] == '') == (config['url'] == ''):
raise ValueError, 'need responsefile or url'
except ValueError, e:
errorfunc('error: ' + str(e) + '\nrun with no args for parameter explanations')
return
try:
if config['responsefile'] != '':
h = open(config['responsefile'], 'rb')
else:
#I2P: use proxy
h = urlopen(config['url'], config['http_proxy'])
#/I2P
response = h.read()
h.close()
except IOError, e:
and this line from rufus download.py:
class Download:
def ParseResponseFile(self, responsefile, url=None, errorfunc=None):
try:
if responsefile and responsefile != '':
h = open(responsefile, 'rb')
elif url != None:
h = urlopen(url)
else:
#I2P: use proxy
h = urlopen(config['url'], config['http_proxy'])
#/I2P
response = h.read()
h.close()
except IOError, e:
i dont nknow why have this
error:
File "E:\bit-tests\Rufus_0.5.2_I2P\rufus.py", line 39, in ?
from btsession import BTSession
File "E:\bit-tests\Rufus_0.5.2_I2P\btsession.py", line 21, in ?
from BitTorrent.download import Download
i have look into code but dont know???
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
but i have errors in cmd which i think is other things
that not work.
this is my errors:
Traceback (most recent call last):
File "E:\bit-tests\Rufus_0.5.6_I2P\btsession.py", line 881, in Download_Thread
self.doneflag, 100, self.peer_id, spewflag = self.spewflag, onstartfunc = se
lf.OnStart)
File "E:\bit-tests\Rufus_0.5.6_I2P\BitTorrent\download.py", line 456, in downl
oad
rawserver.listen_forever(encoder)
File "E:\bit-tests\Rufus_0.5.6_I2P\BitTorrent\SamServer.py", line 374, in list
en_forever
func()
File "E:\bit-tests\Rufus_0.5.6_I2P\BitTorrent\DownloaderFeedback.py", line 152
, in display
status['spew'] = self.collect_spew()
File "E:\bit-tests\Rufus_0.5.6_I2P\BitTorrent\DownloaderFeedback.py", line 51,
in collect_spew
rec["ip"], rec["port"] = c.get_address()
File "E:\bit-tests\Rufus_0.5.6_I2P\BitTorrent\Connecter.py", line 50, in get_a
ddress
return self.connection.get_address()
File "E:\bit-tests\Rufus_0.5.6_I2P\BitTorrent\Encrypter.py", line 44, in get_a
ddress
return self.connection.get_address()
AttributeError: SingleSocket instance has no attribute 'get_address'
download thread finished 100
i hope ican this fix
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm still having problems getting i2p to run on my machine. I think it might be time for a re-install though as loading and unloading language packs have seriously screwed my XP partition. I'm also pretty busy at the moment with other things so you might have to wait a little while longer. Sorry about that.
d0c
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i have modified my rufus source
no cant combile it!
i will make a I2P Rufus Bittorrent client
i have added in Bittorrent new sourcecode
logger.py (logger class, used by Samserver.py)
SamBuffer.py( Buffer for sam messages, used by SamServer.py)
SamServer.py (Compete rewrite For SAM, aims to be drop-in replacement of RawServer.)
eep.py (httpproxy access module)
and changed sourccode :
Encrypter.py
HTTPHandler.py
Rerequester.py
download.py
track.py
i have modified this codes but now cant comblie it,
i dont know why? i will test if my I2P rufus will working on I2P bittorrent!
where can i see where is the error?
i have now no Rawserver and use the SamServer!
i have modified the Rawserver to Samserver where is needed.
i have test it with orginal sourcecode what is not changed nothing in sourcecode that can i combile without probs.
with Build.bat it makes me only the folder dist with images and the text files into!
who know where is the problem, to can not combiling?
this is my build.bat:
del /F /S /Q build dist
c:\programme\python24\python.exe winsetup.py py2exe -p encodings
mkdir dist\images
mkdir dist\images\flags
copy images dist\images\ copy images\flags dist\images\flags
copy CHANGELOG.TXT dist\ copy LICENSES.TXT dist\ copy credits.txt dist\ copy unicows.dll dist\ rem "d:\Program Files\NSIS\makensis.exe" rufus.nsi
pause
in cmd when all is finished
shows me
http://img194.echo.cx/img194/9011/cmd4oc.jpg
but will not combiling
defnax
I wouldnt mind seeing a version of this. Think I could get a copy of source to neatofx@Gmail.com
Hey Defnax,
If you scroll up the command window (opened by the build.bat file) you should be able to find the errors the screen shot doesn't really give enough information. Copy the text out of the window and post it here (or send it to me via the e-mail address below)
Sorry if I have been a little slack with getting back to you about the adding of I2P but I am in the middle of upgrading the BitTorrent core... which is taking me a while. I will add an option to use I2P after I have finished the upgrade as it would make more sense to add it then.
Anyway if you want to add I2P to the current source you can contact me via c4n15.rufu5 (at) gmail (d0t) com and I'll help you with the errors.
Thanks
d0c
i have now open rufus.py with cmd and this errors is coming:
C:\Dokumente und Einstellungen\defnax2000>E:\bit-tests\Rufus_0.5.2_I2P\rufus.py
Traceback (most recent call last):
File "E:\bit-tests\Rufus_0.5.2_I2P\rufus.py", line 39, in ?
from btsession import BTSession
File "E:\bit-tests\Rufus_0.5.2_I2P\btsession.py", line 21, in ?
from BitTorrent.download import Download
File "E:\bit-tests\Rufus_0.5.2_I2P\BitTorrent\download.py", line 142
h = urlopen(config['url'], config['http_proxy'])
that i think is the error?
i know why is the error with download.py line 142
i have used the same code from I2P-BT download but in rufus the line before 142 its not looking the same and there is problem, but i dont know how can it make to have not errors.
this is from I2P-BT 0.1.8 download.py:
def download(params, filefunc, statusfunc, finfunc, errorfunc, doneflag, cols, pathFunc = None, paramfunc = None, spewflag = Event()):
if len(params) == 0:
errorfunc('arguments are -\n' + formatDefinitions(defaults, cols))
return
try:
config, args = parseargs(params, defaults, 0, 1)
if args:
if config.get('responsefile', None) == None:
raise ValueError, 'must have responsefile as arg or parameter, not both'
if path.isfile(args[0]):
config['responsefile'] = args[0]
else:
config['url'] = args[0]
if (config['responsefile'] == '') == (config['url'] == ''):
raise ValueError, 'need responsefile or url'
except ValueError, e:
errorfunc('error: ' + str(e) + '\nrun with no args for parameter explanations')
return
try:
if config['responsefile'] != '':
h = open(config['responsefile'], 'rb')
else:
#I2P: use proxy
h = urlopen(config['url'], config['http_proxy'])
#/I2P
response = h.read()
h.close()
except IOError, e:
and this line from rufus download.py:
class Download:
def ParseResponseFile(self, responsefile, url=None, errorfunc=None):
try:
if responsefile and responsefile != '':
h = open(responsefile, 'rb')
elif url != None:
h = urlopen(url)
else:
#I2P: use proxy
h = urlopen(config['url'], config['http_proxy'])
#/I2P
response = h.read()
h.close()
except IOError, e:
i dont nknow why have this
error:
File "E:\bit-tests\Rufus_0.5.2_I2P\rufus.py", line 39, in ?
from btsession import BTSession
File "E:\bit-tests\Rufus_0.5.2_I2P\btsession.py", line 21, in ?
from BitTorrent.download import Download
i have look into code but dont know???
now my rufus is starting with changed sourcode
but i have no conncetion to a i2p-bittorrent clients.
Rufus requires wxwindows 2.5.2.8u
Installed wx version: 2.5.3.1
Loading Images E:\bit-tests\Rufus_0.5.6_I2P
Loading Friend List
ERROR: reading friends ini file
Loading RSS Feeds
ERROR: reading from RSS ini file
G3XMLRPCServer Started
loading work state
E:\bit-tests\Rufus_0.5.6_I2P\torrents.ini
session 100 Adding torrent
False
Starting setup thread
starting dl setup
ending dl setup
trying to resume 100
Entered download thread
Starting download thread 100
check_hashes 1
reordering
2005-04-25 19:57:32,986 INFO: Binding to 'I2P-BT-482399320'
2005-04-25 19:57:34,848 INFO: Bound on Y6B98W1t4lCeYcsoTaEYjWe9ZsEQBiADCcuFcrTNweWUilqLvH8qBvA2eRCmAmVR-Wuw3rZhN54YD4AXTlqAEqz7Nlk6fl-LJuXDG
-PUnZ7qKiI3Q5PmtDTJgXSdz6mFLNvm-n3ULo8x9AJl5MoKi~EEHKn0BYAe9zoEEEcEe~MQvKkFLrDWSF94EVg0KO3syIyVaUb7x5GLxTrVFXzBnY7dQmpOXlFeYGITDbEerJyhE4yb0
RmfAAyKYD8ppxPNtjicyUx7Rh92FgHHkuMe5gzr73cNLhjAGnTfSWhlBGFm7lz7qYjmisVr7ZlHOhE2H7VVMX7FvSfvTGrHrM-eTirccSS72XTGKzWIdNCb9givnduj0TV0v5Aqz-ifk
qPcrz1HXXGkm4c0j1M5XQZbQxsyoqkXTNTCNSzHcxcp6fHJLkgbl3x~30OnGOk3iYee08d9kZUyQD~tFG4eUUtMcOhyx4-AHRQA2RhnLtrH-QZdFq~PzfjDcl2kp5BRlCrhAAAA.i2p
Traceback (most recent call last):
File "E:\bit-tests\Rufus_0.5.6_I2P\btsession.py", line 881, in Download_Thread
self.doneflag, 100, self.peer_id, spewflag = self.spewflag, onstartfunc = self.OnStart)
File "E:\bit-tests\Rufus_0.5.6_I2P\BitTorrent\download.py", line 413, in download
encoder.ever_got_incoming, config['http_proxy'])
TypeError: __init__() takes exactly 23 arguments (24 given)
download thread finished 100
session 101 Adding torrent
False
Starting setup thread
i dont know what must there do, i cant delete this
that need to work over http proxy
Traceback (most recent call last):
File "E:\bit-tests\Rufus_0.5.6_I2P\btsession.py", line 881, in Download_Thread
self.doneflag, 100, self.peer_id, spewflag = self.spewflag, onstartfunc = self.OnStart)
File "E:\bit-tests\Rufus_0.5.6_I2P\BitTorrent\download.py", line 413, in download
encoder.ever_got_incoming, config['http_proxy'])
TypeError: __init__() takes exactly 23 arguments (24 given)
i have now fixed the last problem, i have deletet in requesterer.py url_list 1 argument was missed .
i have now another problem :
Rufus requires wxwindows 2.5.2.8u
Installed wx version: 2.5.3.1
Loading config file: E:\bit-tests\Rufus_0.5.6_I2P\btconfig.ini
Loading Images E:\bit-tests\Rufus_0.5.6_I2P
Loading Friend List
ERROR: reading friends ini file
Loading RSS Feeds
ERROR: reading from RSS ini file
Loading config file: .\btconfig.ini
G3XMLRPCServer Started
loading work state
E:\bit-tests\Rufus_0.5.6_I2P\torrents.ini
from ini south.park.904.avi.torrent
session 100 Adding torrent
False
Starting setup thread
starting dl setup
ending dl setup
trying to resume 100
Entered download thread
Starting download thread 100
check_hashes 1
reordering
2005-04-28 08:52:40,559 INFO: Binding to 'I2P-BT-537703411'
2005-04-28 08:52:40,720 INFO: Bound on j6BWa~THit7ZUXiuCyk~Mj2jdemZ4k9i4HYL0ze8H
vGSpcZDQ1Z6SBV8VgOmwiS3ZfE-GIn3xwvTQFGBER3F2815JApL9y059L~lSMzTaUBy-JB7WgriJ45g3
sDdrXTpp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downloaded=0&left=143280128&event=started&key=e66af2e1
ERROR: urlopen(http://eFJdRYFmtjcpx9-Mw3JBdF6fwtb9cHRBR103Q8IGc91Jdfn0iYzK6Xx0oI
zPvpbD4yOlPQm-C-7eTahrAkHa2FMCRTiiVq2a0nBp37W1uTvAToV-MKYPKTdFMxrXxvjS7qaSUXdJRc
PaPexolfx-Gcjh~rN2tKCh0mz9beueiQ18~8qWGh6hUMb0yyA09ipL9vIkmHmooLwT9AZyzHXEzdLXZe
1P~CG3L46QaXp9aTD7EkAwG6VBMjQrGiSJ-9FFhx4QcYAZWM-dfrtzbbVYfHxqQRBwzB27zLlaKVaqu4
enC0N1cW1yy-cjnv0Wxokqe62B2uPzFYtloxQpBPfTLQZUfUzjskY-3Yg2AdSbEu37jYsnAJA95AlLz4
t1W1vPTNiXzCaRqkkMX342SUkJK-HZE3wTjAgGPqJ9vMaC2YexPFViTxEO2Q0jDSjdPHG0D769qehkN5
Bfb8MEI-yr3g9zLaY~w4r6T38ap33qfyISWlIJ5qCPcRVkeK8OqZ4vAAAA.i2p/scrape?info_hash=
%95%13%C1%AD%887T0-%99%92%E9%16%C2ZAP%9C%25%2A) failed
<urlopen error (11001, 'getaddrinfo failed')>
saving work state
saving options
E:\bit-tests\Rufus_0.5.6_I2P\torrents.ini
<btsession.BTSession instance at 0x01B39710> False None
on minimize
what mean this:
<urlopen error (11001, 'getaddrinfo failed')>
what must i do know?
my rufus i2p is now working with downloads but
it doesnt show others things will not work.
http://img260.echo.cx/img260/7539/rufus2pk.jpg
but i have errors in cmd which i think is other things
that not work.
this is my errors:
Traceback (most recent call last):
File "E:\bit-tests\Rufus_0.5.6_I2P\btsession.py", line 881, in Download_Thread
self.doneflag, 100, self.peer_id, spewflag = self.spewflag, onstartfunc = se
lf.OnStart)
File "E:\bit-tests\Rufus_0.5.6_I2P\BitTorrent\download.py", line 456, in downl
oad
rawserver.listen_forever(encoder)
File "E:\bit-tests\Rufus_0.5.6_I2P\BitTorrent\SamServer.py", line 374, in list
en_forever
func()
File "E:\bit-tests\Rufus_0.5.6_I2P\BitTorrent\DownloaderFeedback.py", line 152
, in display
status['spew'] = self.collect_spew()
File "E:\bit-tests\Rufus_0.5.6_I2P\BitTorrent\DownloaderFeedback.py", line 51,
in collect_spew
rec["ip"], rec["port"] = c.get_address()
File "E:\bit-tests\Rufus_0.5.6_I2P\BitTorrent\Connecter.py", line 50, in get_a
ddress
return self.connection.get_address()
File "E:\bit-tests\Rufus_0.5.6_I2P\BitTorrent\Encrypter.py", line 44, in get_a
ddress
return self.connection.get_address()
AttributeError: SingleSocket instance has no attribute 'get_address'
download thread finished 100
i hope ican this fix
i have this problem with get_adress my Samserver
havent this.
look into screenshots
you see i2p trackers url
when put a i2p torrent then you can only when torrent not startet after startet dont see anything about tracker url.and peers.
http://img217.echo.cx/img217/4963/i2prufus3cw.jpg
http://img247.echo.cx/img247/6013/i2prufus20bk.jpg
now have fixed btsession.py
i have forgotten
from BitTorrent.zurllib import quote
replaced with
from BitTorrent.eep import quote
for http proxy use eep.py
but other errors is not fixed
i have the problem only connect to one torrent file when possible, and the other will not connect,
Hey Defnax,
I'm still having problems getting i2p to run on my machine. I think it might be time for a re-install though as loading and unloading language packs have seriously screwed my XP partition. I'm also pretty busy at the moment with other things so you might have to wait a little while longer. Sorry about that.
d0c
ok i wait
i anywere can help me with the sourcecode of my I2P-Rufus?