Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: <urlopen error [Errno -2] Name or service not known> #3

Open
Maunik2512 opened this issue May 14, 2021 · 3 comments
Open

ERROR: <urlopen error [Errno -2] Name or service not known> #3

Maunik2512 opened this issue May 14, 2021 · 3 comments

Comments

@Maunik2512
Copy link

I am facing error mentioned in the title, after running "sudo python3 5518.armplat_1901.py"

I am using Ubuntu 18.04 on Virtualbox 6.1.
I installed all the dependencies and and cloned "DomainProcessIsolation-AArch64".
(for now, I haven't used "repo init" command. I'll do it later).

After running python script, my configurations are as below:

Your chosen configuration is shown below:

+---------------+-------------------------------------------------------------------------------+
| Workspace     | /home/maunik12/maunik/DomainProcessIsolation-AArch64/arm-reference-platforms/ |
| Platform      | Armv8-A Base Platform with 64-bit software stack                              |
| Type          | Build from source                                                             |
| Configuration | Linaro/ArmLT Latest Stable Kernel + OpenEmbedded Minimal                      |
+---------------+-------------------------------------------------------------------------------+

The following software components are included:

+-----------------------------------+-------------------------+
| Trusted Firmware-A                | 2.0 commit dbc8d9496e   |
| OP-TEE OS                         | 3.0 commit 94ee4938f7   |
| OP-TEE Client                     | 3.0 commit 09b69afa5e   |
| Linaro/ArmLT Latest Stable Kernel | 4.19 commit e97e8d868a  |
| OpenEmbedded Minimal              | 15.09 4.9_20150912-729  |
+-----------------------------------+-------------------------+

After accepting the configurations, it showed below messages and error:

Fetching and extracting dependencies...

INFO: wget http://releases.linaro.org/components/toolchain/binaries/6.2-2016.11/aarch64-linux-gnu/gcc-linaro-6.2.1-2016.11-x86_64_aarch64-linux-gnu.tar.xz.asc
INFO: opening dst file .downloads//http_releases.linaro.org_components_toolchain_binaries_6.2-2016.11_aarch64-linux-gnu/gcc-linaro-6.2.1-2016.11-x86_64_aarch64-linux-gnu.tar.xz.asc
INFO: successfully fetched 91.00 B
INFO: md5sum .downloads/http_releases.linaro.org_components_toolchain_binaries_6.2-2016.11_aarch64-linux-gnu/gcc-linaro-6.2.1-2016.11-x86_64_aarch64-linux-gnu.tar.xz
INFO: got hash 2cae520ec45ed6caaf9f403d1a6b63ff
INFO: md5 MATCH 2cae520ec45ed6caaf9f403d1a6b63ff
Already fetched gcc-linaro-6.2.1-2016.11-x86_64_aarch64-linux-gnu.tar.xz
Extracting gcc-linaro-6.2.1-2016.11-x86_64_aarch64-linux-gnu.tar.xz...
INFO: <function makedirs at 0x7f82b9bb2840> tools/gcc
INFO: <bound method TarFile.open of <class 'tarfile.TarFile'>> .downloads/http_releases.linaro.org_components_toolchain_binaries_6.2-2016.11_aarch64-linux-gnu/gcc-linaro-6.2.1-2016.11-x86_64_aarch64-linux-gnu.tar.xz tools/gcc
INFO: wget http://releases.linaro.org/components/toolchain/binaries/6.2-2016.11/arm-linux-gnueabihf/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz.asc
INFO: wget http://releases.linaro.org/components/toolchain/binaries/6.2-2016.11/aarch64-linux-gnu/gcc-linaro-6.2.1-2016.11-x86_64_aarch64-linux-gnu.tar.xz.asc
INFO: opening dst file .downloads//http_releases.linaro.org_components_toolchain_binaries_6.2-2016.11_aarch64-linux-gnu/gcc-linaro-6.2.1-2016.11-x86_64_aarch64-linux-gnu.tar.xz.asc
INFO: successfully fetched 91.00 B
INFO: md5sum .downloads/http_releases.linaro.org_components_toolchain_binaries_6.2-2016.11_aarch64-linux-gnu/gcc-linaro-6.2.1-2016.11-x86_64_aarch64-linux-gnu.tar.xz
INFO: got hash 2cae520ec45ed6caaf9f403d1a6b63ff
INFO: md5 MATCH 2cae520ec45ed6caaf9f403d1a6b63ff
Already fetched gcc-linaro-6.2.1-2016.11-x86_64_aarch64-linux-gnu.tar.xz
Extracting gcc-linaro-6.2.1-2016.11-x86_64_aarch64-linux-gnu.tar.xz...
INFO: <function makedirs at 0x7f3f25ab5840> tools/gcc
INFO: <bound method TarFile.open of <class 'tarfile.TarFile'>> .downloads/http_releases.linaro.org_components_toolchain_binaries_6.2-2016.11_aarch64-linux-gnu/gcc-linaro-6.2.1-2016.11-x86_64_aarch64-linux-gnu.tar.xz tools/gcc
INFO: wget http://releases.linaro.org/components/toolchain/binaries/6.2-2016.11/arm-linux-gnueabihf/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz.asc
INFO: opening dst file .downloads//http_releases.linaro.org_components_toolchain_binaries_6.2-2016.11_arm-linux-gnueabihf/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz.asc
INFO: successfully fetched 93.00 B
INFO: md5sum .downloads/http_releases.linaro.org_components_toolchain_binaries_6.2-2016.11_arm-linux-gnueabihf/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz
INFO: got hash 8f5c112ab5fa26248eb5d9110a09e030
INFO: md5 MATCH 8f5c112ab5fa26248eb5d9110a09e030
Already fetched gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz
Extracting gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz...
INFO: <bound method TarFile.open of <class 'tarfile.TarFile'>> .downloads/http_releases.linaro.org_components_toolchain_binaries_6.2-2016.11_arm-linux-gnueabihf/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz tools/gcc
INFO: wget releases.linaro.org/openembedded/juno-lsk/15.09/MD5SUMS.txt
ERROR:
ERROR: <urlopen error [Errno -2] Name or service not known>

Can you guide me how to resolve it ?

@KKimj
Copy link
Owner

KKimj commented May 14, 2021

Hello,

Thanks!

@Maunik2512
Copy link
Author

  • First, FVP cant be run on VM ( e.g., virtual box, vmware)

Oh. Thanks a lot .
You actually saved my lots of time.

Coming to my original question, the error got resolved automatically.
I tried running the script, 2 or 3 times after the error message, and it ran the script successfully.

But, I would like to inform you about a new problem, I faced.
After running the script, I tried "repo init" command as mentioned in the README file.
And it stopped with below error message:

maunik12@maunik-VB:~/maunik/FVPs$ repo init -u https://git.linaro.org/landing-teams/working/arm/arm-reference-platforms-manifest.git -m fvp-yocto.xml -b refs/tags/BASEFVP-2020.08.06
Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
remote: Counting objects: 4, done
remote: Finding sources: 100% (172/172)
remote: Total 172 (delta 101), reused 172 (delta 101)
Receiving objects: 100% (172/172), 145.76 KiB | 1.50 MiB/s, done.
Resolving deltas: 100% (101/101), completed with 30 local objects.
From https://gerrit.googlesource.com/git-repo
a1cd770..339f2df main -> origin/main
ddab060..148e1ce stable -> origin/stable

  • [new tag] v2.14.3 -> v2.14.3
  • [new tag] v2.14.4 -> v2.14.4
  • [new tag] v2.14.5 -> v2.14.5
  • [new tag] v2.15 -> v2.15
    File "/home/maunik12/maunik/FVPs/.repo/repo/main.py", line 79
    file=sys.stderr)
    ^
    SyntaxError: invalid syntax

Hope this "repo init" don't have any relation with VM.
Default python version is 2.7.
It was the same version while running the "sudo python3 5518.armplat_1901.py" script.
Can you guide me here, until I start development on real hardware instead of VM ?

Thanks.

@KKimj
Copy link
Owner

KKimj commented May 15, 2021

First, I think It doesn't matter if you use Python2 or 3.

Please check,

  • Check pip version and upgrade.
  • Check run script sudo or nomal, both
  • ...

ps., I know FVP setting is very hard, In addition, there are few official documents or versions of the FVP or Foundation model are too varied.
Check both FVP and Foundation models as options.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants