[GH-ISSUE #1105] aws command fails in test_external_modification test #592

Closed
opened 2026-03-04 01:47:02 +03:00 by kerem · 4 comments
Owner

Originally created by @ggtakec on GitHub (Jul 21, 2019).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1105

Additional Information

  • OS: ubuntu 14.04(trusty)
  • on TravisCI

Version of s3fs being used (s3fs --version)

3ad1c95e86

Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse)

n/a

Kernel information (uname -r)

n/a

GNU/Linux Distribution, if applicable (cat /etc/os-release)

n/a

s3fs command line used, if applicable

n/a

/etc/fstab entry, if applicable

n/a

s3fs syslog messages (grep s3fs /var/log/syslog, journalctl | grep s3fs, or s3fs outputs)

n/a

Details about issue

Fail with TravisCI's ubuntu trusty test_external_modification test.
An error has occurred in the following line:

aws s3 --endpoint-url "${S3_URL}" --no-verify-ssl cp - "s3://${TEST_BUCKET_1}/${OBJECT_NAME}"

Error details

Traceback (most recent call last):
  File "/usr/local/bin/aws", line 19, in <module>
    import awscli.clidriver
  File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line 36, in <module>
    from awscli.help import ProviderHelpCommand
  File "/usr/local/lib/python2.7/dist-packages/awscli/help.py", line 20, in <module>
    from docutils.core import publish_string
  File "/usr/local/lib/python2.7/dist-packages/docutils/core.py", line 246
    print('\n::: Runtime settings:', file=self._stderr)
                                         ^
SyntaxError: invalid syntax

The following error (warning) is also output when installing awscli.

The directory '/home/travis/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
 .
 .
 .
DEPRECATION: Uninstalling a distutils installed project (PyYAML) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Originally created by @ggtakec on GitHub (Jul 21, 2019). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1105 ### Additional Information - OS: ubuntu 14.04(trusty) - on TravisCI #### Version of s3fs being used (s3fs --version) 3ad1c95e86f0e8ec21a846edf5be675b7d75661a #### Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse) n/a #### Kernel information (uname -r) n/a #### GNU/Linux Distribution, if applicable (cat /etc/os-release) n/a #### s3fs command line used, if applicable n/a #### /etc/fstab entry, if applicable n/a #### s3fs syslog messages (grep s3fs /var/log/syslog, journalctl | grep s3fs, or s3fs outputs) n/a ### Details about issue Fail with TravisCI's ubuntu trusty test_external_modification test. An error has occurred in the following line: ``` aws s3 --endpoint-url "${S3_URL}" --no-verify-ssl cp - "s3://${TEST_BUCKET_1}/${OBJECT_NAME}" ``` Error details ``` Traceback (most recent call last): File "/usr/local/bin/aws", line 19, in <module> import awscli.clidriver File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line 36, in <module> from awscli.help import ProviderHelpCommand File "/usr/local/lib/python2.7/dist-packages/awscli/help.py", line 20, in <module> from docutils.core import publish_string File "/usr/local/lib/python2.7/dist-packages/docutils/core.py", line 246 print('\n::: Runtime settings:', file=self._stderr) ^ SyntaxError: invalid syntax ``` The following error (warning) is also output when installing awscli. ``` The directory '/home/travis/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. . . . DEPRECATION: Uninstalling a distutils installed project (PyYAML) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project. ```
kerem closed this issue 2026-03-04 01:47:02 +03:00
Author
Owner

@ggtakec commented on GitHub (Jul 21, 2019):

Additional information

I tried some of the following measures, but for the moment I can not avoid this error.

  • try to install and use debian package's awscli
  • using "-H" option for sudo
  • adding "--ignore-installed six" option for pip install
  • clear PYTHONPATH env when run aws command
  • set PYTHONPATH env to python2.7

However, this error has not been avoided yet.

<!-- gh-comment-id:513565596 --> @ggtakec commented on GitHub (Jul 21, 2019): Additional information I tried some of the following measures, but for the moment I can not avoid this error. - try to install and use debian package's awscli - using "-H" option for sudo - adding "--ignore-installed six" option for pip install - clear PYTHONPATH env when run aws command - set PYTHONPATH env to python2.7 However, this error has not been avoided yet.
Author
Owner

@ggtakec commented on GitHub (Jul 22, 2019):

This seems a bug of awscli, it is fixed 1.16.202 awscli.
I will try to test soon.

<!-- gh-comment-id:513602669 --> @ggtakec commented on GitHub (Jul 22, 2019): This seems a bug of awscli, it is fixed 1.16.202 awscli. I will try to test soon.
Author
Owner

@gaul commented on GitHub (Jul 22, 2019):

It might make sense to pin a particular version.

<!-- gh-comment-id:513634959 --> @gaul commented on GitHub (Jul 22, 2019): It might make sense to pin a particular version.
Author
Owner

@ggtakec commented on GitHub (Jul 22, 2019):

This has been corrected in 1.16.202.
Since awscli support is so fast, version fixing may not be necessary.
As it seems to be all right now, let's leave version unfixed(latest).

<!-- gh-comment-id:513699234 --> @ggtakec commented on GitHub (Jul 22, 2019): This has been corrected in 1.16.202. Since awscli support is so fast, version fixing may not be necessary. As it seems to be all right now, let's leave version unfixed(latest).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#592
No description provided.