Thank you. It worked for my dataset. The semicolon might be a typo.
The code is as the following:
import scanpy as sc
adata=sc.read_10x_h5("filtered_feature_bc_matrix.h5",gex_only=False)
htos = list(adata.var[adata.var["feature_types"] == "Multiplexing Capture"].index.unique())
for hto in htos:
adata.obs[hto] = adata.X[:,adata.var.index == hto].toarray()
import scanpy.external as sce
sce.pp.hashsolo(adata, ['hash1', 'hash2', 'hash3','hash4'])