http403 / pyrit

Automatically exported from code.google.com/p/pyrit
0 stars 0 forks source link

Pyrit r107 and TypeError: cannot concatenate 'str' and 'int' objects #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using Pyrit with ATi Stream and when I type:

pyrit list_cores

the output is:

festor@sniper-win:~$ pyrit list_cores
Pyrit 0.2.3-dev (C) 2008, 2009 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3

Traceback (most recent call last):
  File "/usr/bin/pyrit", line 1092, in <module>
    Pyrit_CLI().init()
  File "/usr/bin/pyrit", line 191, in init
    }.setdefault(commands[0] if len(commands) > 0 else 'help',
self.print_help)()
  File "/usr/bin/pyrit", line 241, in list_cores
    cp = cpyrit.CPyrit()
  File "/usr/lib/python2.6/dist-packages/cpyrit.py", line 274, in __init__
    self.cores.append(StreamCore(queue=self, dev_idx=dev_idx))
  File "/usr/lib/python2.6/dist-packages/cpyrit.py", line 153, in __init__
    self.name = "ATI-Stream device %i" % dev_idx+1
TypeError: cannot concatenate 'str' and 'int' objects

I know that I am using an unstable version of Pyrite but anyway I wanted to
report this problem. If you need more info let me know.

Original issue reported on code.google.com by nebulos...@gmail.com on 4 Jul 2009 at 11:09

GoogleCodeExporter commented 9 years ago
I forget say that I'm using Ubuntu 9.04 wiht Python 2.6

Original comment by nebulos...@gmail.com on 4 Jul 2009 at 11:12

GoogleCodeExporter commented 9 years ago
Will be fixed in next svn.

Open cpyrit.py and change the line 'self.name = "ATI-Stream device %i" % 
dev_idx+1'
to 'self.name = "ATI-Stream device %i" % (dev_idx+1)'

Original comment by lukas.l...@gmail.com on 5 Jul 2009 at 5:33