You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing scprint fails with a "No such file or directory" error
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import scprint
→ connected lamindb: anonymous/main
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.10/dist-packages/scprint/__init__.py", line 3, in <module>
from .model.model import scPrint
File "/usr/local/lib/python3.10/dist-packages/scprint/model/__init__.py", line 1, in <module>
from .model import *
File "/usr/local/lib/python3.10/dist-packages/scprint/model/model.py", line 24, in <module>
from . import decoders, encoders, fsq, loss, utils
File "/usr/local/lib/python3.10/dist-packages/scprint/model/utils.py", line 404, in <module>
class WeightedMasker:
File "/usr/local/lib/python3.10/dist-packages/scprint/model/utils.py", line 408, in WeightedMasker
TFs: list[str] = utils.fileToList(FILEDIR + "/../../data/main/TFs.txt"),
File "/usr/local/lib/python3.10/dist-packages/scprint/utils/utils.py", line 53, in fileToList
with open(filename) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.10/dist-packages/scprint/model/../../data/main/TFs.txt'
It seems like the data/ directory containing TFs.txt isn't installed with the package:
root@41d356636499:/workspace# ls /usr/local/lib/python3.10/dist-packages/scprint/
VERSION __init__.py __main__.py __pycache__ base.py cli.py model tasks tokenizers trainer utils
Desktop (please complete the following information):
OS: Linux (Docker)
Version: 2.0.0
The text was updated successfully, but these errors were encountered:
Describe the bug
Importing
scprint
fails with a"No such file or directory"
errorIt seems like the
data/
directory containingTFs.txt
isn't installed with the package:Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: