conda-incubator / condacolab

Install Conda and friends on Google Colab, easily
MIT License
341 stars 49 forks source link

Getting AssertionError while installing from URL #42

Closed matcovic closed 2 years ago

matcovic commented 2 years ago

image

Here is the log file:

__installer__.sh: line 1: syntax error near unexpected token `<'
__installer__.sh: line 1: `<!DOCTYPE html><html class="maestro global-header" lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><script nonce="veW741GqN7C2UONCw7GW">'
jaimergp commented 2 years ago

Sounds like the URL you are providing doesn't really return the installer itself, but a website (given the <!DOCTYPE html>... stuff).

Make sure your URL returns a valid .sh file (its contents should start with #!) by debugging locally with:

$ wget YOUR_URL
# or
$ curl -LO YOUR_URL

AFAIK, dropbox doesn't provide a true direct link.