I’m getting this syntax error while trying to run build.sh on Ubuntu 16.04 VM:
Traceback (most recent call last):
File "/usr/local/bin/aicrowd-repo2docker", line 7, in <module>
from repo2docker.__main__ import main
File "/usr/local/lib/python3.5/dist-packages/repo2docker/__main__.py", line 1, in <module>
from .app import Repo2Docker
File "/usr/local/lib/python3.5/dist-packages/repo2docker/app.py", line 592
self.log.info(f'Successfully pushed {self.output_image_spec}', extra=dict(phase='pushing'))
^
SyntaxError: invalid syntax
The host system does not have any issues with resolving the urls. The docker container, which is being build struggles with resolving these. As I don’t have access to the images being build, I cannot think of anything on how to approach this
@Leckofunny: Thats weird. Because the image build happens on the host machine itself using whatever default docker setup is configured.
Would be curious to know if anyone else is facing the same issue ?
@Leckofunny are you behind a corporate firewall or a university/office proxy by any chance? Is there any special network configuration files/variables you’ve set on your box (outside the container/VM)?
@Leckofunny This is silly suggestion and maybe you’ve already tried it, have you tried manually setting your DNS (nameserver) to something like 9.9.9.9 or 8.8.8.8? I’ve also seen this occasionally happen when your VM sometimes asks for an ipv6 address and your DNS server is unable to resolve it.
Sorry I don’t have anything concrete for you, but no NS resolution is just an odd symptom.