|
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...
higlass-manage/higlass_manage/common.py
Line 216 in 44d6023
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 useshutil.copyinstead. So, now I'm getting this:I think the error is coming from
higlass-manage/higlass_manage/common.py
Line 245 in 44d6023