-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'NoneType' object has no attribute 'split' #79
Comments
Can anyone please help me with this? I'm new at this. :) |
Hey, sorry for the delay in getting back to you. I typed a response and got pulled away before hitting send. :( I'm afraid I'll need a little more information to figure out what's going on here. From the message and your pull-request, it looks like you've got an awkwardly formatted interface-name somewhere, but without seeing your config, it'll be hard to guess at what's happening. Can you respond with whatever information you can share about It's entirely possible that I simply misunderstood something about how aliased interfaces show up in libc and I can verify that easily enough if what you have matches what I expect. |
Hi flan, i sorted out that issue, now i'm having another issue will you
please help me in deploying this server on my local machine?
I'll be grateful to you
…On Sat, 30 Mar 2019, 3:18 am Neil Tallim ***@***.*** wrote:
Hey, sorry for the delay in getting back to you. I typed a response and
got pulled away before hitting send. :(
(Thanks for the poke on my blog -- I would have forgotten otherwise)
I'm afraid I'll need a little more information to figure out what's going
on here.
From the message and your pull-request, it looks like you've got an
awkwardly formatted interface-name somewhere, but without seeing your
config, it'll be hard to guess at what's happening.
Can you respond with whatever information you can share about your
interface configuration in conf.py and/or the output of ifconfig -a |
grep Link and ls -1 /sys/class/net/? (You can obscure the MAC addresses
if you consider those sensitive information)
It's entirely possible that I simply misunderstood something about how
aliased interfaces show up in libc and I can verify that easily enough if
what you have matches what I expect.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#79 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Auay4tvGYK9eClBMXpVRtYqs4DiJdMdWks5vbpEjgaJpZM4cKtIy>
.
|
Sure, but I'll need some information to work with, like where in the process you've run into problems. And I would like to resolve the issue that you first reported: what was the solution to your problem? Do I need to make any changes to the code? |
i removed line 139 in File "/libpydhcpserver/getifaddrslib.py", line 139, in get_network_interface |
i ran into this error when i started server by executing "sudo python staticDHCPd" |
#Copy this file to one of the following locations, then rename it to conf.py: #For a full overview of what these parameters mean, and to further customise Whether to daemonise on startup (you don't want this during initial setup)DAEMON = False #WARNING: The default UID and GID are those of root. THIS IS NOT GOOD! #The IP of the interface to use for DHCP traffic |
Traceback (most recent call last):
File "/usr/local/bin/staticDHCPd", line 294, in
_initialiseDHCP()
File "/usr/local/bin/staticDHCPd", line 224, in _initialiseDHCP
dhcp = staticdhcpdlib.dhcp.DHCPService(database)
File "/usr/local/lib/python2.7/dist-packages/staticdhcpdlib/dhcp.py", line 865, in init
database
File "/usr/local/lib/python2.7/dist-packages/staticdhcpdlib/dhcp.py", line 410, in init
response_interface_qtags=response_interface_qtags,
File "/usr/local/lib/python2.7/dist-packages/libpydhcpserver/dhcp.py", line 114, in init
response_interface = getifaddrslib.get_network_interface(server_address)
File "/usr/local/lib/python2.7/dist-packages/libpydhcpserver/getifaddrslib.py", line 139, in get_network_interface
return interface.split(':', 1)[0]
AttributeError: 'NoneType' object has no attribute 'split'
2019-03-25 14:34:13,271 : WARNING : System shutdown beginning...
The text was updated successfully, but these errors were encountered: