Hey guys,<br><br>I have this simple code and i cant seem to get it to run.<br>here is the code.<br><br><br>from os import *<br>import re<br><br>hostname =raw_input(&quot;Host name : &quot;) or &#39;&lt;unknown&gt;&#39;<br>
mac_addr =input(&quot;Mac address : &quot;)<br><br>filename=&#39;/etc/dhcpd.conf&#39;<br>fh=open(filename)<br><br>m = re.match(hostname,fh.readlines())<br>if m!=None:<br>&nbsp;&nbsp;&nbsp; m.group()<br><br>
<br>Here is the error I get when i try to run the code<br><br><br>monkeysee% python sys_wireless.py<br>Host name :<br>Mac address : 1234567<br><span><span style="color: rgb(255, 102, 0);">Traceback (most recent call last):
</span><br style="color: rgb(255, 102, 0);"><span style="color: rgb(255, 102, 0);">&nbsp; File &quot;sys_wireless.py&quot;, line 8, in ?</span><br style="color: rgb(255, 102, 0);"><span style="color: rgb(255, 102, 0);">&nbsp;&nbsp;&nbsp; fh=open(&quot;/etc/dhcpd.conf&quot;,&quot;r&quot;)
</span><br style="color: rgb(255, 102, 0);"><span style="color: rgb(255, 102, 0);">TypeError: an integer is required</span><br></span><br><br><br>I dont know what the issue is?<br><br>any hints ?<br><br><br><br>