question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

shutil.SameFileError: '/lib64/ld-linux-x86-64.so.2'

See original GitHub issue

Hi 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:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
azubietacommented, May 16, 2022

@SahajRana could you please check if the issue is corrected in this build:

https://github.com/AppImageCrafters/appimage-builder/actions/runs/2333395061

0reactions
azubietacommented, May 17, 2022

Thanks for testing.

The second error is quite weird could you please share which system are you using ?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found