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

Read-only file system: for importing models #226

Open
mandana86 opened this issue Sep 27, 2023 · 0 comments
Open

Read-only file system: for importing models #226

mandana86 opened this issue Sep 27, 2023 · 0 comments

Comments

@mandana86
Copy link

Hi,
when I try to import models, I get this error below which is this is Read only file. I have macbook M1.
Untitled-2.ipynb Cell 20 line 1
----> 1 from torchdrug import core, models, tasks
3 model = models.GIN(input_dim=dataset.node_feature_dim,
4 hidden_dims=[256, 256, 256, 256],
5 short_cut=True, batch_norm=True, concat_hidden=True)

File ~/miniconda3/envs/torchdrug-env/lib/python3.8/site-packages/torchdrug/models/init.py:1
----> 1 from .chebnet import ChebyshevConvolutionalNetwork
2 from .gcn import GraphConvolutionalNetwork, RelationalGraphConvolutionalNetwork
3 from .gat import GraphAttentionNetwork

File ~/miniconda3/envs/torchdrug-env/lib/python3.8/site-packages/torchdrug/models/chebnet.py:6
3 import torch
4 from torch import nn
----> 6 from torchdrug import core, layers
7 from torchdrug.core import Registry as R
10 @R.register("models.ChebNet")
11 class ChebyshevConvolutionalNetwork(nn.Module, core.Configurable):

File ~/miniconda3/envs/torchdrug-env/lib/python3.8/site-packages/torchdrug/layers/init.py:1
----> 1 from .common import MultiLayerPerceptron, GaussianSmearing, MutualInformation, PairNorm, InstanceNorm, Sequential,
2 SinusoidalPositionEmbedding
4 from .block import ProteinResNetBlock, SelfAttentionBlock, ProteinBERTBlock
...
---> 29 self.fd = os.open(self.lock_file_path, os.O_CREAT | os.O_EXCL)
30 return True
31 except FileExistsError:

OSError: [Errno 30] Read-only file system: 'lock_embedding_0'
THANK YOU for your help

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

1 participant