07-27-2020 06:33 AM
When run ./gisobuild.py, below errors seen:
('\n', 'Exception:', <type 'exceptions.RuntimeError'>, RuntimeError("Error CMD=chroot /mnt/hgfs/aaa/tmpfMc211 rpm -qp --qf '%{NAME};%{VERSION};%{RELEASE};%{ARCH};%{PACKAGETYPE};%{PACKAGEPRESENCE};%{PIPD};%{CISCOHW};%{CARDTYPE};%{BUILDTIME};%{GROUP};%{VMTYPE};%{SUPPCARDS};%{PREFIXES};%{XRRELEASE};' asr9k-bng-x64-1.0.0.0-r702.x86_64.rpm returned --->chroot: failed to run command \xe2\x80\x98rpm\xe2\x80\x99: No such file or directory\n",))
Does anyone have ideas?
07-27-2020 01:09 PM
Can you provide the following outputs?
pwd
ls -l
<command line arguments given to giso python script>
<are you calling the script directly or with python gisobuild.py?>
Sam
07-27-2020 03:12 PM - edited 07-27-2020 03:14 PM
pwd
/mnt/hgfs/aaa
ls -l
total 1685629
-rwxrwxrwx. 1 root root 0 Jul 27 17:06 1
-rwxrwxrwx. 1 root root 0 Jul 27 17:11 222
-rwxrwxrwx. 1 root root 1655832576 Jul 23 10:07 asr9k-mini-x64-7.0.2.iso
-rwxrwxrwx. 1 root root 2463 Jul 27 15:25 Giso_build.log-2020-07-27:15:03:10.880116
-rwxrwxrwx. 1 root root 2458 Jul 27 21:51 Giso_build.log-2020-07-27:21:21:50.474153
-rwxrwxrwx. 1 root root 141308 Jul 27 12:58 gisobuild.py
<command line arguments given to giso python script>
./gisobuild.py -i /mnt/hgfs/aaa/asr9k-mini-x64-7.0.2.iso -r /mnt/hgfs/aaa/RPM
<are you calling the script directly or with python gisobuild.py?>
calling the script directly
Thank you
07-28-2020 10:32 AM
Can you paste the entire build log?
Are you the root user?
Are you using the latest version of the script?
Also there are some hits on google about this error string, so it might be an error with the script:
https://stackoverflow.com/questions/50522550/python-unicode-and-xe2-x80-x98r-xe2-x80-x99-error
Sam
07-28-2020 06:46 PM - edited 07-28-2020 11:48 PM
Hi Sam
The issue already resolved. The problem is due to chroot function, I put the script and .iso file to root directory, then it worked.
Thanks for your help!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide