RuntimeError: generator raised StopIteration

174 views
Skip to first unread message

Burke Geceyatmaz

unread,
Sep 9, 2023, 3:33:13 AM9/9/23
to ns-3-users
bg@bg-virtual-machine:~/Desktop/ns-allinone-3.26/ns-3.26$ CXXFLAGS="-Wall" ./waf configure Traceback (most recent call last): File "/home/bg/Desktop/ns-allinone-3.26/ns-3.26/.waf3-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Node.py", line 312, in ant_iter raise StopIteration StopIteration The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/bg/Desktop/ns-allinone-3.26/ns-3.26/.waf3-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Scripting.py", line 110, in waf_entry_point run_commands() File "/home/bg/Desktop/ns-allinone-3.26/ns-3.26/.waf3-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Scripting.py", line 167, in run_commands parse_options() File "/home/bg/Desktop/ns-allinone-3.26/ns-3.26/.waf3-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Scripting.py", line 140, in parse_options Context.create_context('options').execute() File "/home/bg/Desktop/ns-allinone-3.26/ns-3.26/.waf3-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Options.py", line 146, in execute super(OptionsContext,self).execute() File "/home/bg/Desktop/ns-allinone-3.26/ns-3.26/.waf3-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Context.py", line 93, in execute self.recurse([os.path.dirname(g_module.root_path)]) File "/home/bg/Desktop/ns-allinone-3.26/ns-3.26/.waf3-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Context.py", line 134, in recurse user_function(self) File "/home/bg/Desktop/ns-allinone-3.26/ns-3.26/wscript", line 144, in options opt.load('compiler_c') File "/home/bg/Desktop/ns-allinone-3.26/ns-3.26/.waf3-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Context.py", line 90, in load fun(self) File "/home/bg/Desktop/ns-allinone-3.26/ns-3.26/.waf3-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Tools/compiler_c.py", line 36, in options opt.load_special_tools('c_*.py',ban=['c_dumbpreproc.py']) File "/home/bg/Desktop/ns-allinone-3.26/ns-3.26/.waf3-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Context.py", line 321, in load_special_tools lst=self.root.find_node(waf_dir).find_node('waflib/extras').ant_glob(var) File "/home/bg/Desktop/ns-allinone-3.26/ns-3.26/.waf3-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Node.py", line 361, in ant_glob ret=[x for x in self.ant_iter(accept=accept,pats=[to_pat(incl),to_pat(excl)],maxdepth=kw.get('maxdepth',25),dir=dir,src=src,remove=kw.get('remove',True))] File "/home/bg/Desktop/ns-allinone-3.26/ns-3.26/.waf3-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Node.py", line 361, in <listcomp> ret=[x for x in self.ant_iter(accept=accept,pats=[to_pat(incl),to_pat(excl)],maxdepth=kw.get('maxdepth',25),dir=dir,src=src,remove=kw.get('remove',True))] RuntimeError: generator raised StopIteration

Tommaso Pecorella

unread,
Sep 9, 2023, 8:54:43 PM9/9/23
to ns-3-users
Too old, sorry, can't help.

Burke Geceyatmaz

unread,
Sep 10, 2023, 12:50:18 AM9/10/23
to ns-3-users
which version are you using?  Is there any working version that you   suggest me ?


10 Eylül 2023 Pazar tarihinde saat 03:54:43 UTC+3 itibarıyla Tommaso Pecorella şunları yazdı:

Tommaso Pecorella

unread,
Sep 10, 2023, 5:36:05 AM9/10/23
to ns-3-users
https://www.nsnam.org

Either ns-3.39 or ns-3-dev

Burke Geceyatmaz

unread,
Sep 11, 2023, 10:42:45 AM9/11/23
to ns-3-users

[  0%] Linking CXX shared library /home/bg/Desktop/ns-allinone-3.39/ns-3.39/build/lib/libns3.39-core-default.so
/usr/bin/ld: warning: CMakeFiles/libcore-obj.dir/model/vector.cc.o has a corrupt string table index - ignoring
/usr/bin/ld: error: CMakeFiles/libcore-obj.dir/model/vector.cc.o: ELF section name out of range
collect2: error: ld returned 1 exit status
gmake[2]: *** [src/core/CMakeFiles/libcore.dir/build.make:221: /home/bg/Desktop/ns-allinone-3.39/ns-3.39/build/lib/libns3.39-core-default.so] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:4934: src/core/CMakeFiles/libcore.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
Finished executing the following commands:
cd cmake-cache; /usr/bin/cmake --build . -j 3 ; cd ..

Traceback (most recent call last):
  File "/home/bg/Desktop/ns-allinone-3.39/./build.py", line 147, in <module>
    sys.exit(main(sys.argv))
  File "/home/bg/Desktop/ns-allinone-3.39/./build.py", line 138, in main
    build_ns3(config, build_examples, build_tests, args, build_options)
  File "/home/bg/Desktop/ns-allinone-3.39/./build.py", line 58, in build_ns3
    run_command([sys.executable, "ns3", "build"] + build_options)
  File "/home/bg/Desktop/ns-allinone-3.39/util.py", line 25, in run_command
    raise CommandError("Command %r exited with code %i" % (argv, retval))
util.CommandError: Command ['/usr/bin/python3', 'ns3', 'build'] exited with code 2
bg@bg-v
10 Eylül 2023 Pazar tarihinde saat 14:36:05 UTC+5 itibarıyla Tommaso Pecorella şunları yazdı:

Tommaso Pecorella

unread,
Sep 11, 2023, 11:12:21 AM9/11/23
to ns-3-users
That's... unusual. Are you sure you're not running out of disk space?

Burke Geceyatmaz

unread,
Sep 11, 2023, 1:18:57 PM9/11/23
to ns-3-users

bg@bg-virtual-machine:~/Desktop/ns-allinone-3.36.1$ sudo apt install g++ python3 python3-dev pkg-config sqlite3 cmake python3-setuptools git qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3 openmpi-bin openmpi-common openmpi-doc libopenmpi-dev autoconf cvs bzr unrar gsl-bin libgsl-dev libgslcblas0 wireshark tcpdump sqlite sqlite3 libsqlite3-dev  libxml2 libxml2-dev libc6-dev libc6-dev-i386 libclang-dev llvm-dev automake python3-pip libxml2 libxml2-dev libboost-all-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3 is already the newest version (3.10.6-1).
python3 set to manually installed.
python3-gi is already the newest version (3.42.2-2).
python3-gi set to manually installed.
gir1.2-gtk-3.0 is already the newest version (3.24.34-3ubuntu2).
gir1.2-gtk-3.0 set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 autoconf : Depends: m4 (>= 1.4.13)
 automake : Depends: autotools-dev but it is not going to be installed
 bzr : Depends: brz but it is not going to be installed
 cmake : Depends: libjsoncpp25 (>= 1.9.5) but it is not going to be installed
         Depends: librhash0 (>= 1.2.6) but it is not going to be installed
         Depends: cmake-data (= 3.24.2-1ubuntu1) but it is not going to be installed
         Recommends: gcc but it is not going to be installed
         Recommends: make
 g++ : Depends: gcc (= 4:12.2.0-1ubuntu1) but it is not going to be installed
       Depends: g++-12 (>= 12.2.0-1~) but it is not going to be installed
       Depends: gcc-12 (>= 12.2.0-1~) but it is not going to be installed
 gir1.2-goocanvas-2.0 : Depends: libgoocanvas-2.0-9 (>= 2.0.2) but it is not going to be installed
 git : Depends: liberror-perl but it is not going to be installed
       Depends: git-man (> 1:2.37.2) but it is not going to be installed
       Depends: git-man (< 1:2.37.2-.) but it is not going to be installed
 gsl-bin : Depends: libgsl27 (>= 2.7.1) but it is not going to be installed
 ipython3 : Depends: python3-ipython (= 7.31.1-1) but it is not going to be installed
 libboost-all-dev : Depends: libboost-dev but it is not going to be installed
                    Depends: libboost-tools-dev but it is not going to be installed
                    Depends: libboost-atomic-dev but it is not going to be installed
                    Depends: libboost-chrono-dev but it is not going to be installed
                    Depends: libboost-container-dev but it is not going to be installed
                    Depends: libboost-context-dev but it is not going to be installed
                    Depends: libboost-coroutine-dev but it is not going to be installed
                    Depends: libboost-date-time-dev but it is not going to be installed
                    Depends: libboost-exception-dev but it is not going to be installed
                    Depends: libboost-fiber-dev but it is not going to be installed
                    Depends: libboost-filesystem-dev but it is not going to be installed
                    Depends: libboost-graph-dev but it is not going to be installed
                    Depends: libboost-graph-parallel-dev but it is not going to be installed
                    Depends: libboost-iostreams-dev but it is not going to be installed
                    Depends: libboost-locale-dev but it is not going to be installed
                    Depends: libboost-log-dev but it is not going to be installed
                    Depends: libboost-math-dev but it is not going to be installed
                    Depends: libboost-mpi-dev but it is not going to be installed
                    Depends: libboost-mpi-python-dev but it is not going to be installed
                    Depends: libboost-numpy-dev but it is not going to be installed
                    Depends: libboost-program-options-dev but it is not going to be installed
                    Depends: libboost-python-dev but it is not going to be installed
                    Depends: libboost-random-dev but it is not going to be installed
                    Depends: libboost-regex-dev but it is not going to be installed
                    Depends: libboost-serialization-dev but it is not going to be installed
                    Depends: libboost-stacktrace-dev but it is not going to be installed
                    Depends: libboost-system-dev but it is not going to be installed
                    Depends: libboost-test-dev but it is not going to be installed
                    Depends: libboost-thread-dev but it is not going to be installed
                    Depends: libboost-timer-dev but it is not going to be installed
                    Depends: libboost-type-erasure-dev but it is not going to be installed
                    Depends: libboost-wave-dev but it is not going to be installed
                    Depends: libboost-nowide-dev but it is not going to be installed
 libc6-dev : Depends: libc-dev-bin (= 2.36-0ubuntu4)
             Depends: linux-libc-dev but it is not going to be installed
             Depends: libcrypt-dev but it is not going to be installed
             Depends: rpcsvc-proto
             Depends: libtirpc-dev but it is not going to be installed
             Depends: libnsl-dev but it is not going to be installed
 libc6-dev-i386 : Depends: libc6-i386 (= 2.36-0ubuntu4) but it is not going to be installed
                  Recommends: gcc-multilib but it is not going to be installed
 libclang-dev : Depends: libclang-15-dev (>= 15~) but it is not going to be installed
 libgsl-dev : Depends: libgsl27 (= 2.7.1+dfsg-3) but it is not going to be installed
 libopenmpi-dev : Depends: gfortran-12 but it is not going to be installed or
                           gfortran-mod-15
                  Depends: libopenmpi3 (= 4.1.4-2ubuntu2) but it is not going to be installed
                  Depends: libibverbs-dev (>= 1.1.7) but it is not going to be installed
                  Depends: libhwloc-dev but it is not going to be installed
                  Depends: libevent-dev but it is not going to be installed
                  Depends: libpmix-dev but it is not going to be installed
                  Depends: libjs-jquery but it is not going to be installed
                  Depends: libjs-jquery-ui but it is not going to be installed
                  Depends: zlib1g-dev but it is not going to be installed
                  Recommends: libcoarrays-openmpi-dev but it is not going to be installed
 libperl5.34 : Depends: perl-modules-5.34 (>= 5.34.0-5ubuntu1.2) but 5.34.0-5ubuntu1 is to be installed
 libxml2-dev : Depends: libicu-dev but it is not going to be installed
 llvm-dev : Depends: llvm-runtime (= 1:15.0-55.1ubuntu1) but it is not going to be installed
            Depends: llvm-15-dev (>= 15~) but it is not going to be installed
            Depends: llvm but it is not going to be installed
 openmpi-bin : Depends: libevent-core-2.1-7a (>= 2.1.8-stable) but it is not going to be installed
               Depends: libopenmpi3 (>= 4.1.4) but it is not going to be installed
 openmpi-doc : Depends: libjs-jquery-ui but it is not going to be installed
 perl : Depends: perl-base (= 5.34.0-5ubuntu1.2) but 5.34.0-5ubuntu1 is to be installed
        Depends: perl-modules-5.34 (>= 5.34.0-5ubuntu1.2) but 5.34.0-5ubuntu1 is to be installed
 pkg-config : Depends: libdpkg-perl but it is not going to be installed
 python3-dev : Depends: libpython3-dev (= 3.10.6-1) but it is not going to be installed
               Depends: python3.10-dev (>= 3.10.6-1~) but it is not going to be installed
               Depends: python3-distutils (>= 3.10.6-1~) but it is not going to be installed
               Depends: libjs-sphinxdoc (>= 4.3) but it is not going to be installed
 python3-pip : Depends: python3-distutils but it is not going to be installed
               Depends: python3-wheel but it is not going to be installed
               Recommends: build-essential but it is not going to be installed
 python3-pygraphviz : Depends: graphviz
                      Depends: libcgraph6 but it is not going to be installed
                      Depends: libgvc6 but it is not going to be installed
 python3-setuptools : Depends: python3-pkg-resources (= 59.6.0-1.2ubuntu0.22.10.1) but 59.6.0-1.2 is to be installed
                      Depends: python3-distutils but it is not going to be installed
 qt5-qmake : Depends: qt5-qmake-bin (= 5.15.6+dfsg-1)
 qtbase5-dev : Depends: libegl-dev but it is not going to be installed
               Depends: libgl-dev but it is not going to be installed
               Depends: libglu1-mesa-dev but it is not going to be installed or
                        libglu-dev
               Depends: libqt5concurrent5 (= 5.15.6+dfsg-1) but it is not going to be installed
               Depends: libqt5core5a (= 5.15.6+dfsg-1) but it is not going to be installed
               Depends: libqt5dbus5 (= 5.15.6+dfsg-1) but it is not going to be installed
               Depends: libqt5gui5 (= 5.15.6+dfsg-1) but it is not going to be installed
               Depends: libqt5network5 (= 5.15.6+dfsg-1) but it is not going to be installed
               Depends: libqt5printsupport5 (= 5.15.6+dfsg-1) but it is not going to be installed
               Depends: libqt5sql5 (= 5.15.6+dfsg-1) but it is not going to be installed
               Depends: libqt5test5 (= 5.15.6+dfsg-1) but it is not going to be installed
               Depends: libqt5widgets5 (= 5.15.6+dfsg-1) but it is not going to be installed
               Depends: libqt5xml5 (= 5.15.6+dfsg-1) but it is not going to be installed
               Depends: libvulkan-dev but it is not going to be installed
               Depends: libxext-dev but it is not going to be installed
               Recommends: libqt5opengl5-dev (= 5.15.6+dfsg-1) but it is not going to be installed
 qtbase5-dev-tools : Depends: libqt5core5a (>= 5.15.1) but it is not going to be installed
                     Depends: libqt5dbus5 (>= 5.2.0~alpha1) but it is not going to be installed
                     Depends: qtbase-abi-5-15-6
 sqlite : Depends: libsqlite0 (>= 2.8.17) but it is not going to be installed
 wireshark : Depends: wireshark-qt (= 3.6.7-1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
bg@bg-virtual-machine:~/Desktop/ns-allinone-3.36.1$ apt --fix-broken install
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
11 Eylül 2023 Pazartesi tarihinde saat 18:12:21 UTC+3 itibarıyla Tommaso Pecorella şunları yazdı:

Burke Geceyatmaz

unread,
Sep 11, 2023, 2:17:27 PM9/11/23
to ns-3-users
which libraries to include

11 Eylül 2023 Pazartesi tarihinde saat 20:18:57 UTC+3 itibarıyla Burke Geceyatmaz şunları yazdı:

Tommaso Pecorella

unread,
Sep 11, 2023, 5:33:55 PM9/11/23
to ns-3-users
Sorry, I can't answer that - as the only possible answer is "the ones you need".

First, you need to use "sudo" to install packages - read the error messages.
Second, there are some packages that are necessary, some are optional and are only needed if you have specific needs.

Please read this: https://www.nsnam.org/docs/installation/html/index.html. My suggestion is to start installing only the required stuff, then add the optional if you find you need them. 
Reply all
Reply to author
Forward
0 new messages