TypeError: 'NoneType' object is not iterable Kail Linux
Hi, I am installing Empire on Kali Linux. When I run "./reset.sh" it starts up fine to the Empire screen. Then I ran ./"install.sh" and "./Cert.sh". Now when I enter "./empire" I get the error:
TypeError: 'NoneType' object is not iterable
How do I fix this so I can run Empire? Please reply. Thanks I am attaching a screenshot..

Comments
-
1) Why .empire, a hidden file?
2) Why /opt/Empire?0 -
Hi, thanks for your fast reply. I am following a book that told me to install in /opt/Empire/. I checked your link and see I can install it anywhere. Your link says to run "./empire" in /Empire also. Is that correct?
0 -
I tried ./reset.sh and then ./empire and it worked. How do I get it to work after ./install.sh and ./cert.sh? Installing is slow then it says it's finished. Then I get the above error. Any ideas?
0 -
Hello, I tried installing outside of /opt and ran install.sh and NOT cert.sh and now it works fine. Thanks you for the help
0 -
when i run "./reset.sh",i often got a reply that Type Error:'NoneType' Object is not iterable.who can tell me what should i do?please!
0 -
This error means that python is trying to iterate over a None object. With Python, you can only iterate over an object if that object has a value. This is because iterable objects only have a next item which can be accessed if their value is not equal to None. If you try to iterate over a None object, you encounter the TypeError: ‘NoneType’ object is not iterable error.
For example, list.sort() only change the list but return None.
Python's interpreter converted your code to pyc bytecode. The Python virtual machine processed the bytecode, it encountered a looping construct which said iterate over a variable containing None. The operation was performed by invoking the
__iter__method on the None. None has no__iter__method defined, so Python's virtual machine tells you what it sees: that NoneType has no__iter__method.Technically, you can avoid the NoneType exception by checking if a value is equal to None before you iterate over that value.
0
Categories
- All Categories
- 175 LFX Mentorship
- 175 LFX Mentorship: Linux Kernel
- 745 Linux Foundation IT Professional Programs
- 372 Cloud Engineer IT Professional Program
- 168 Advanced Cloud Engineer IT Professional Program
- 73 DevOps IT Professional Program - Discontinued
- 3 DevOps & GitOps IT Professional Program
- 98 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- AI & ML Training
- Blockchain & Decentralized Identity Training
- 2 Cloud & Containers Training
- Cybersecurity Training
- DevOps & Site-Reliability Training
- Linux Kernel Development Training
- Networking Training
- Open Source Best Practice Training
- System Administration Training
- System Engineering Training
- Web & Application Development Training
- 792 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 87 Storage
- 768 Linux Distributions
- 81 Debian
- 67 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 106 Mobile Computing
- 18 Android
- 73 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 392 Off Topic
- 121 Introductions
- 181 Small Talk
- 29 Study Material
- 946 Programming and Development
- 310 Kernel Development
- 618 Software Development
- 981 Software
- 373 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)