Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78599 - basc-1.5.7: TypeError: unsupported operand type(s) for /: 'str' and 'int'
Summary: basc-1.5.7: TypeError: unsupported operand type(s) for /: 'str' and 'int'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Pieter Van den Abeele (RETIRED)
URL:
Whiteboard:
Keywords:
: 82663 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-18 16:17 UTC by Alexander Mieland
Modified: 2005-02-20 05:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Mieland 2005-01-18 16:17:08 UTC
There is a little bug in basc-1.5.7 which causes on frequency-scaling activeted systems to exit the client with the following error message:

>  Getting CPU frequency...
Traceback (most recent call last):
  File "/usr/bin/basc", line 787, in ?
    CPU_FREQ = CPU_FREQ/1000
TypeError: unsupported operand type(s) for /: 'str' and 'int'


Here is a little workaround for this:

in /usr/bin/basc on line 787 change:
  CPU_FREQ = CPU_FREQ/1000
to that:
  CPU_FREQ = int(CPU_FREQ)/1000


This will be fixed in the next version or bugfix-release.


Reproducible: Always
Steps to Reproduce:
1. emerge basc-1.5.7
2. activate frequency-scaling
3.



Expected Results:  
should work without error-message, I think...
Comment 1 Pieter Van den Abeele (RETIRED) gentoo-dev 2005-01-23 13:57:30 UTC
Fixed in 78832
Comment 2 Patrick Lauer gentoo-dev 2005-02-20 05:11:05 UTC
*** Bug 82663 has been marked as a duplicate of this bug. ***