question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ValueError: max() arg is an empty sequence

See original GitHub issue

I get this problem.

# python3 kickthemout.py
Traceback (most recent call last):
  File "kickthemout.py", line 756, in <module>
    defaultInterface = getDefaultInterface()
  File "kickthemout.py", line 154, in getDefaultInterface
    network, netmask, _, interface, address, _ = max(iface_routes, key=lambda item:item[1])
ValueError: max() arg is an empty sequence

Help me guysss 😦

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
martinfrouincommented, Jan 20, 2020

I just fixed the issue by updating VirtualBox to the last version. Scapy couldn’t run properly without it.

0reactions
k4m4commented, Feb 17, 2020

@tinmar33 Good to hear that. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python ValueError: max() arg is an empty sequence Solution
The “ValueError: max() arg is an empty sequence” error is raised when you try to find the largest item in an empty list...
Read more >
ValueError: max() arg is an empty sequence in Python
The Python "ValueError: max() arg is an empty sequence" occurs when we pass an empty sequence to the max() function. To solve the...
Read more >
ValueError: max() arg is an empty sequence - Stack Overflow
1. When len(v) == 0 , in clkFindMost , max(v) raises ValueError . – Dan D. Oct 1, 2014 at 22:33 · this...
Read more >
ValueError: max( ) arg is an empty sequence - STechies
In this article, we will learn about the error ValueError: max( ) arg is an empty sequence. In python, the max( ) method...
Read more >
ValueError: max() arg is an empty sequence - LeetCode Discuss
ValueError : max() arg is an empty sequence ; def maxProfit(self, prices: List[int]) -> int: · for ; in range ; len ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found