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

FileNotFoundError: [Errno 2] No such file or directory: '/tmp/hic-resolutions.cool' #100

Open
adRn-s opened this issue Oct 17, 2024 · 0 comments

Comments

@adRn-s
Copy link

adRn-s commented Oct 17, 2024

os.link(filepath, to_import_path)

At first, I had the error OSError: [Errno 18] Invalid cross-device link: 'hic-resolutions.cool' -> '/tmp/higlass-docker/hic-resolutions.cool'. Then, I edited the code to use shutil.copy instead. So, now I'm getting this:

❯ higlass-manage view hic-resolutions.cool
state True
temp_dir: /tmp/higlass-docker
Inferred filetype: cooler
Inferred datatype: matrix
state True
Inferred datatype: matrix
state True
state True
Removing existing file in temporary dir: /tmp/higlass-docker/hic-resolutions.cool
name_text:
hg_name: default
command: python higlass-server/manage.py ingest_tileset --filename /tmp/hic-resolutions.cool --filetype cooler --datatype matrix    --uid NWMDyIZ2Sxu97jBJLLgk7A
ERROR: Traceback (most recent call last):
  File "higlass-server/manage.py", line 22, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.8/dist-packages/django/core/management/base.py", line 323, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.8/dist-packages/django/core/management/base.py", line 364, in execute
    output = self.handle(*args, **options)
  File "/home/higlass/projects/higlass-server/tilesets/management/commands/ingest_tileset.py", line 236, in handle
    ingest(**options)
  File "/home/higlass/projects/higlass-server/tilesets/management/commands/ingest_tileset.py", line 80, in ingest
    django_file = File(open(filename,'rb'))
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/hic-resolutions.cool'

I think the error is coming from

+ " --filetype {} --datatype {} {} {} {}".format(
but I'm not sure now... I will go check these ingest_tileset on higlass-server ; perhaps is removing the file? I jumped into the docker container, which has been running all this time, and indeed /tmp is empty there...

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