Subject: Re: megadl
From: Ondřej Jirman
Date: Fri, 29 May 2020 14:24:25 +0200
On Fri, May 29, 2020 at 02:10:40PM +0200, John S wrote:
> I installed this !wget https://megatools.megous.
> com/builds/experimental/megatools-1.11.0-git-20200503.tar.gz
> 
> I then used this code megadl --/content/drive/My Drive - https://
> mega.nz/folder/LFUWBCqR#je-oc1HzlyvfZ6vNlwLgEw
> 
> I get this error
>   File "<ipython-input-20-c768317f69a9>", line 1
>     megadl --/content/drive/My Drive -
> https://mega.nz/folder/LFUWBCqR#je-oc1HzlyvfZ6vNlwLgEw
>              ^
> SyntaxError: invalid syntax
> 
> Is the megadl code that I'm using correct?
> 

You're still calling your old megatools installed from apt.

1.11 command is 'megatools dl'

regards,
	o.

> 
> On Fri, May 29, 2020 at 1:10 PM Ondřej Jirman <megatools@megous.com> wrote:
> 
> > Hi,
> >
> > you're using an outdated version. Latest is 1.11 here:
> >
> > https://megatools.megous.com/builds/experimental/
> >
> > See https://megatools.megous.com/
> >
> > regards,
> >         o.
> >
> > On Fri, May 29, 2020 at 12:56:54PM +0200, John S wrote:
> > > Hi there – thank you for this tool.
> > >
> > > I installed it in google colab using the following
> > >
> > >
> > >
> > > !apt install megatools
> > >
> > >
> > >
> > > Reading package lists... Done
> > >
> > > Building dependency tree
> > >
> > > Reading state information... Done
> > >
> > > The following NEW packages will be installed:
> > >
> > >   megatools
> > >
> > > 0 upgraded, 1 newly installed, 0 to remove and 31 not upgraded.
> > >
> > > Need to get 148 kB of archives.
> > >
> > > After this operation, 1,097 kB of additional disk space will be used.
> > >
> > > Get:1 http://archive.ubuntu.com/ubuntu bionic/universe amd64 megatools
> > > amd64 1.9.98-1build2 [148 kB]
> > >
> > > Fetched 148 kB in 0s (297 kB/s)
> > >
> > > Selecting previously unselected package megatools.
> > >
> > > (Reading database ... 144439 files and directories currently installed.)
> > >
> > > Preparing to unpack .../megatools_1.9.98-1build2_amd64.deb ...
> > >
> > > Unpacking megatools (1.9.98-1build2) ...
> > >
> > > Setting up megatools (1.9.98-1build2) ...
> > >
> > > Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
> > >
> > >
> > >
> > > Thereafter I tried to use megadl to download a public folder to my gdrive
> > > which was mounted already, however I get the following error below the
> > code
> > > I used:
> > >
> > >
> > >
> > > megadl --/content/drive/My Drive/ -
> > > https://mega.nz/folder/69QCHKwL#A-ZUCof8IwUfQDqM2xgkmw
> > >
> > >
> > >
> > >   File "<ipython-input-12-eeca3e0eca9c>", line 1
> > >
> > >     megadl --/content/drive/My Drive/ -
> > > https://mega.nz/folder/69QCHKwL#A-ZUCof8IwUfQDqM2xgkmw
> > >
> > >              ^
> > >
> > > SyntaxError: invalid syntax
> > >
> > >
> > >
> > >
> > >
> > > Please help me with what I’m doing wrong – I appreciate it.
> > >
> > > Keep safe
> >