shutil.SameFileError: '/lib64/ld-linux-x86-64.so.2'
See original GitHub issueHi AppImage team, thanks for the library. I’m receiveing this error & can’t find a solution to fix this.
Could you help me to understand how to fix this? Thanks.
INFO:FileDeploy:deploying /lib64/ld-linux-x86-64.so.2
Traceback (most recent call last):
File "/tmp/.mount_appimaLfOdtr/usr/bin/appimage-builder", line 8, in <module>
sys.exit(__main__())
File "/tmp/.mount_appimaLfOdtr/usr/lib/python3.8/site-packages/appimagebuilder/__main__.py", line 44, in __main__
invoker.execute(commands)
File "/tmp/.mount_appimaLfOdtr/usr/lib/python3.8/site-packages/appimagebuilder/invoker.py", line 29, in execute
command()
File "/tmp/.mount_appimaLfOdtr/usr/lib/python3.8/site-packages/appimagebuilder/commands/file_deploy.py", line 29, in __call__
helper.deploy(self._paths)
File "/tmp/.mount_appimaLfOdtr/usr/lib/python3.8/site-packages/appimagebuilder/modules/deploy/files/deploy_helper.py", line 119, in deploy
self._deploy_path(path)
File "/tmp/.mount_appimaLfOdtr/usr/lib/python3.8/site-packages/appimagebuilder/modules/deploy/files/deploy_helper.py", line 128, in _deploy_path
shutil.copy2(path, deploy_path)
File "/tmp/.mount_appimaLfOdtr/usr/lib/python3.8/shutil.py", line 435, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/tmp/.mount_appimaLfOdtr/usr/lib/python3.8/shutil.py", line 244, in copyfile
raise SameFileError("{!r} and {!r} are the same file".format(src, dst))
shutil.SameFileError: '/lib64/ld-linux-x86-64.so.2' and '/home/ubuntu/StudioProjects/Blup/ide/AppDir/runtime/compat/lib64/ld-linux-x86-64.so.2' are the same file
I tried to put this file in exclude
but didn’t work.
exclude:
- lib64/ld-linux-x86-64.so.2
- /lib64/ld-linux-x86-64.so.2
- ...
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Disable SameFileError exception in shutil.copy - Stack Overflow
The shutil._samefile function check if the source and destination files are the same (It will be called always, so the copy doesn't have...
Read more >shutil — High-level file operations — Python 3.11.1 ...
Source code: Lib/shutil.py The shutil module offers a number of high-level operations on ... If src and dst specify the same file, SameFileError...
Read more >Python Examples of shutil.SameFileError - ProgramCreek.com
This page shows Python examples of shutil.SameFileError.
Read more >shutil.SameFileError while copy slave files #1080 - GitHub
exception shutil.SameFileError This exception is raised if source and destination in copyfile() are the same file. New in version 3.4.
Read more >Python | shutil.copyfile() method - GeeksforGeeks
If source and destination represent the same file then the SameFileError exception will be raised. Syntax of shutil.copyfile() method in Python.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@SahajRana could you please check if the issue is corrected in this build:
https://github.com/AppImageCrafters/appimage-builder/actions/runs/2333395061
Thanks for testing.
The second error is quite weird could you please share which system are you using ?