Traceback (most recent call last): File "/opt/conda/envs/metagenomics-profiling-1.1/bin/sample2markers.py", line 49, in <module> request.urlretrieve('https://www.dropbox.com/sh/m4na8wefp53j8ej/AACU1-Nc0q2dUNRmc9pesUi4a/bin/bcftools', os.path.join(os.path.dirname(os.path.realpath(__file__)),'bcftools_0.1.19')) File "/opt/conda/envs/metagenomics-profiling-1.1/lib/python3.7/urllib/request.py", line 257, in urlretrieve tfp = open(filename, 'wb')OSError: [Errno 30] Read-only file system: '/opt/conda/envs/metagenomics-profiling-1.1/bin/bcftools_0.1.19'[sukmb352@rzcl00g MF_cfDNA-cfRNA-Metagenome_01]$ singularity exec -B /ifs /ifs/data/nfs_share/ikmb_repository/singularity_cache/mhoeppner-metagenomic-profiling-metaphlan.img sample2markers.pyTraceback (most recent call last): File "/opt/conda/envs/metagenomics-profiling-1.1/bin/sample2markers.py", line 49, in <module> request.urlretrieve('https://www.dropbox.com/sh/m4na8wefp53j8ej/AACU1-Nc0q2dUNRmc9pesUi4a/bin/bcftools', os.path.join(os.path.dirname(os.path.realpath(__file__)),'bcftools_0.1.19')) File "/opt/conda/envs/metagenomics-profiling-1.1/lib/python3.7/urllib/request.py", line 257, in urlretrieve tfp = open(filename, 'wb')OSError: [Errno 30] Read-only file system: '/opt/conda/envs/metagenomics-profiling-1.1/bin/bcftools_0.1.19'
if not os.path.isfile(os.path.join(os.path.dirname(os.path.realpath(__file__)),'bcftools_0.1.19')): if(PYTHON_VERSION < 3):
urlretrieve('https://www.dropbox.com/sh/m4na8wefp53j8ej/AACU1-Nc0q2dUNRmc9pesUi4a/bin/bcftools', os.path.join(os.path.dirname(os.path.realpath(__file__)),'bcftools_0.1.19'))
else:
request.urlretrieve('https://www.dropbox.com/sh/m4na8wefp53j8ej/AACU1-Nc0q2dUNRmc9pesUi4a/bin/bcftools', os.path.join(os.path.dirname(os.path.realpath(__file__)),'bcftools_0.1.19'))
try: os.symlink(os.path.join(os.path.dirname(os.path.realpath(__file__)),'bcftools_0.1.19'), os.path.join(os.path.dirname(os.path.realpath(__file__)),'bcftools'))except OSError as e: if e.errno == errno.EEXIST: os.remove(os.path.join(os.path.dirname(os.path.realpath(__file__)),'bcftools')) os.symlink(os.path.join(os.path.dirname(os.path.realpath(__file__)),'bcftools_0.1.19'),os.path.join(os.path.dirname(os.path.realpath(__file__)),'bcftools'))