Skip to content

Commit

Permalink
Update tar_to_directory dependency
Browse files Browse the repository at this point in the history
Should fix:
```
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.7/site-packages/galaxy/util/compression_utils.py", line 114, in extract
    common_prefix_dir = self.common_prefix_dir
  File "/usr/local/lib/python3.7/site-packages/galaxy/util/compression_utils.py", line 103, in common_prefix_dir
    if len(common_prefix) >= 1 and not common_prefix.endswith(os.sep) and self.isdir(self.getmember(common_prefix)) \
  File "/usr/local/lib/python3.7/site-packages/galaxy/util/compression_utils.py", line 186, in isdir
    return getattr(self, 'isdir_%s' % self.type)(member)
  File "/usr/local/lib/python3.7/site-packages/galaxy/util/compression_utils.py", line 189, in isdir_tar
    return member.isdir()
AttributeError: 'NoneType' object has no attribute 'isdir'

```

seen on usegalaxy.eu with https://www.ncbi.nlm.nih.gov/geo/download/?acc=GSE176031&format=file
  • Loading branch information
mvdbeek committed Nov 10, 2023
1 parent f450dee commit 93d11dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/datatypes/converters/tar_to_directory.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<tool id="CONVERTER_tar_to_directory" name="Convert tar to directory" version="1.0.1" profile="17.05">
<!-- Don't use tar directly so we can verify safety of results - tar -xzf '$input1'; -->
<requirements>
<requirement type="package" version="19.9">galaxy-util</requirement>
<requirement type="package" version="23.1">galaxy-util</requirement>
</requirements>
<command>
mkdir '$output1.files_path';
Expand Down

0 comments on commit 93d11dc

Please sign in to comment.