Bugzilla – Bug 1402
download.py fails when run for the second time
Last modified: 2012-12-06 00:06:29 UTC
johnabra-mac:ws johnabraham$ hg clone http://code.nsnam.org/ns-3-allinone destination directory: ns-3-allinone requesting all changes adding changesets adding manifests adding file changes added 49 changesets with 69 changes to 7 files updating to branch default 7 files updated, 0 files merged, 0 files removed, 0 files unresolved johnabra-mac:ws johnabraham$ cd ns-3-allinone/ johnabra-mac:ns-3-allinone johnabraham$ ./download.py # # Get NS-3 # Cloning ns-3 branch => hg clone http://code.nsnam.org/ns-3-dev ns-3-dev requesting all changes adding changesets adding manifests adding file changes added 7805 changesets with 36385 changes to 6075 files updating to branch default 2112 files updated, 0 files merged, 0 files removed, 0 files unresolved # # Get PyBindGen # Required pybindgen version: 0.15.0.797 Trying to fetch pybindgen; this will fail if no network connection is available. Hit Ctrl-C to skip. => bzr checkout -rrevno:797 https://launchpad.net/pybindgen pybindgen *** Did not fetch pybindgen; python bindings will not be available. # # Get NSC # Architecture (darwin) does not support NSC... skipping *** Did not fetch NSC; NSC will not be available. johnabra-mac:ns-3-allinone johnabraham$ ./download.py # # Get NS-3 # Updating ns-3 branch => hg --cwd ns-3-dev pull -u pulling from http://code.nsnam.org/ns-3-dev searching for changes no changes found Traceback (most recent call last): File "./download.py", line 249, in <module> sys.exit(main()) File "./download.py", line 204, in main ns3_dir = get_ns3(options.ns3_branch) File "./download.py", line 29, in get_ns3 run_command(['hg', '--cwd', ns3_dir, 'pull', '-u']) File "/Users/johnabraham/ws/ns-3-allinone/util.py", line 24, in run_command raise CommandError("Command %r exited with code %i" % (argv, retval)) util.CommandError: Command ['hg', '--cwd', 'ns-3-dev', 'pull', '-u'] exited with code 1 johnabra-mac:ns-3-allinone johnabraham$
could not reproduce today on three different machines: - my Linux machine - ns-buildmaster - darwin (also an OS X machine)
I believe this is probably seen in machines which don't have bzr. i have to check (In reply to comment #1) > could not reproduce today on three different machines: > > - my Linux machine > - ns-buildmaster > - darwin (also an OS X machine)
(In reply to comment #2) > I believe this is probably seen in machines which don't have bzr. i have to > check > > (In reply to comment #1) > > could not reproduce today on three different machines: > > > > - my Linux machine > > - ns-buildmaster > > - darwin (also an OS X machine) Could not reproduce this on a new Ubuntu 12.04 32-bit machine that had mercurial and python-dev installed, but did not have bzr installed. The pybindgen report is: # # Get PyBindGen # Required pybindgen version: 0.15.0.809 Trying to fetch pybindgen; this will fail if no network connection is available. Hit Ctrl-C to skip. => bzr checkout -rrevno:809 https://launchpad.net/pybindgen pybindgen *** Did not fetch pybindgen; python bindings will not be available. Repeated calls to ./download.py produce the same (expected) output. Suggest to close as INVALID?
actually I reported this on the mac. I tried something similar now Doing keyboard interrupt prevents ./download.py from working again. a similar concept maybe applicable for mac without bzr? johnabra-mac:ns-3-allinone johnabraham$ ./download.py # # Get NS-3 # Cloning ns-3 branch => hg clone http://code.nsnam.org/ns-3-dev ns-3-dev requesting all changes adding changesets adding manifests adding file changes added 9002 changesets with 40491 changes to 6684 files updating to branch default 2494 files updated, 0 files merged, 0 files removed, 0 files unresolved # # Get PyBindGen # Required pybindgen version: 0.15.0.809 Trying to fetch pybindgen; this will fail if no network connection is available. Hit Ctrl-C to skip. => bzr checkout -rrevno:809 https://launchpad.net/pybindgen pybindgen ^CInterrupted; Python bindings will be disabled. Traceback (most recent call last): File "./download.py", line 316, in <module> sys.exit(main()) File "./download.py", line 280, in main pybindgen_dir, pybindgen_version = get_pybindgen(ns3_dir) TypeError: 'bool' object is not iterable johnabra-mac:ns-3-allinone johnabraham$ bzr: interrupted johnabra-mac:ns-3-allinone johnabraham$ ./download.py # # Get NS-3 # Updating ns-3 branch => hg --cwd ns-3-dev pull -u pulling from http://code.nsnam.org/ns-3-dev searching for changes no changes found Traceback (most recent call last): File "./download.py", line 316, in <module> sys.exit(main()) File "./download.py", line 261, in main ns3_dir = get_ns3(options.ns3_branch) File "./download.py", line 29, in get_ns3 run_command(['hg', '--cwd', ns3_dir, 'pull', '-u']) File "/Users/johnabraham/ws/ns-3-allinone/util.py", line 24, in run_command raise CommandError("Command %r exited with code %i" % (argv, retval)) util.CommandError: Command ['hg', '--cwd', 'ns-3-dev', 'pull', '-u'] exited with code 1