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

Can't download class ranker files - ftp directory contains no files #1227

Open
mokca opened this issue Jan 8, 2025 · 2 comments
Open

Can't download class ranker files - ftp directory contains no files #1227

mokca opened this issue Jan 8, 2025 · 2 comments

Comments

@mokca
Copy link

mokca commented Jan 8, 2025

Problem:

During installation of the Master branch, download of the weights for class ranker fails.

cmake -DPYTHON_EXE_PATH=/common/app/relion/5.0.0-d96c949/conda/bin/python -DTORCH_HOME=/common/app/relion/5.0.0-d96c949/torch -DCMAKE_INSTALL_PREFIX=/common/app/relion/5.0.0-d96c949 ..

<...>
-- Will try to find Torch home directory...
-- Using Torch home: /common/app/relion/5.0.0-d96c949/torch
-- Will attempts to download model weights for dependent packages...
NOTE: You can skip this step by setting -DFETCH_WEIGHTS=OFF
Attempting to download weights for class ranker...
Traceback (most recent call last):
  File "/common/app/relion/5.0.0-d96c949/conda/lib/python3.10/urllib/request.py", line 2448, in retrfile
    self.ftp.cwd(file)
  File "/common/app/relion/5.0.0-d96c949/conda/lib/python3.10/ftplib.py", line 625, in cwd
    return self.voidcmd(cmd)
  File "/common/app/relion/5.0.0-d96c949/conda/lib/python3.10/ftplib.py", line 286, in voidcmd
    return self.voidresp()
  File "/common/app/relion/5.0.0-d96c949/conda/lib/python3.10/ftplib.py", line 259, in voidresp
    resp = self.getresp()
  File "/common/app/relion/5.0.0-d96c949/conda/lib/python3.10/ftplib.py", line 254, in getresp
    raise error_perm(resp)
ftplib.error_perm: 550 Failed to change directory.
<...>

Looking at the python module for relion_classranker, it's trying to download a file that isn't on the FTP server:

ftp://ftp.mrc-lmb.cam.ac.uk/pub/dari/classranker_v1.0.ckpt.gz

In fact, there seems to be nothing in /pub/dari

Connected to ftpv2.mrc-lmb.cam.ac.uk.
220 Welcome to LMB Anonymous FTP service
Name (ftp.mrc-lmb.cam.ac.uk:bucket): anonymous
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls /pub/dari
229 Entering Extended Passive Mode (|||62756|)
150 Here comes the directory listing.
226 Directory send OK.
ftp> get classranker_v1.0.ckpt.gz
local: classranker_v1.0.ckpt.gz remote: classranker_v1.0.ckpt.gz
229 Entering Extended Passive Mode (|||17245|)
550 Failed to open file.
ftp>

Environment:

  • OS: Ubuntu 22.04.5 LTS
  • MPI runtime: OpenMPI 4.1.3
  • RELION version: Master branch, commit [d96c949]
@biochem-fan
Copy link
Member

@scheres, was @dkimanius's FTP area expired? Probably we should re-upload the model to somewhere else. In some networks, FTP is blocked anyway.

@dkimanius
Copy link
Contributor

dkimanius commented Jan 9, 2025

Thank you for notifying us. The FTP has been restored, and, more importantly, I’ve moved the weights to a Zenodo record (zenodo.org/records/14618982). Additionally, I’ve updated the download path in the following GitHub commit: github.com/3dem/relion-classranker/commit/8727e7. Please feel free to reach out if you encounter any issues.

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

3 participants