appimage-builder icon indicating copy to clipboard operation
appimage-builder copied to clipboard

`os.symlink` error `File exists`

Open azubieta opened this issue 3 years ago • 4 comments

I will package a flutter desktop application. I installed last version from git. don't pacman error, but i got a new error.

my step:

  1. mkdir package && cp -r ../build/linux/x64/release/bundle ./AppDir
  2. sudo /usr/local/python3.8/bin/appimage-builder --generate is ok
  3. $ sudo /usr/local/python3.8/bin/appimage-builder --recipe AppImageBuilder.yml

error: Traceback (most recent call last): File "/usr/local/python3.8/bin/appimage-builder", line 11, in <module> load_entry_point('appimage-builder==0.9.1', 'console_scripts', 'appimage-builder')() File "/usr/local/python3.8/lib/python3.8/site-packages/appimagebuilder/__main__.py", line 58, in __main__ invoker.execute(commands) File "/usr/local/python3.8/lib/python3.8/site-packages/appimagebuilder/invoker.py", line 41, in execute command() File "/usr/local/python3.8/lib/python3.8/site-packages/appimagebuilder/commands/pacman_deploy.py", line 50, in __call__ deployed_packages = pacman_deploy.deploy( File "/usr/local/python3.8/lib/python3.8/site-packages/appimagebuilder/modules/deploy/pacman/deploy.py", line 89, in deploy os.symlink("usr/lib", appdir_root / "lib") FileExistsError: [Errno 17] File exists: 'usr/lib' -> '/data/flutterWork/desktop/rename_exif/package/AppDir/lib'

Originally posted by @colatea in https://github.com/AppImageCrafters/appimage-builder/issues/136#issuecomment-908025979

azubieta avatar Aug 31 '21 13:08 azubieta

Same problem here:

Traceback (most recent call last): File "/usr/bin/appimage-builder", line 8, in sys.exit(main()) File "/usr/lib/python3.9/site-packages/appimagebuilder/main.py", line 58, in main invoker.execute(commands) File "/usr/lib/python3.9/site-packages/appimagebuilder/invoker.py", line 41, in execute command() File "/usr/lib/python3.9/site-packages/appimagebuilder/commands/pacman_deploy.py", line 50, in call deployed_packages = pacman_deploy.deploy( File "/usr/lib/python3.9/site-packages/appimagebuilder/modules/deploy/pacman/deploy.py", line 89, in deploy os.symlink("usr/lib", appdir_root / "lib") FileExistsError: [Errno 17] File exists: 'usr/lib'

JartX avatar Sep 08 '21 14:09 JartX

@JartX could you please try again using the fix/properly_recreate_archfs_structure branch ?

pip install git+https://github.com/AppImageCrafters/appimage-builder.git@fix/properly_recreate_archfs_structure

azubieta avatar Sep 13 '21 15:09 azubieta

@JartX could you please try again using the fix/properly_recreate_archfs_structure branch ?

pip install git+https://github.com/AppImageCrafters/appimage-builder.git@fix/properly_recreate_archfs_structure

Same problem: INFO:PacmanPackageDeploy:Deploying glibc=2.33-5 to /home/jart/DEV/usbserial_appimage/AppDir/opt/libc Traceback (most recent call last): File "/usr/bin/appimage-builder", line 8, in sys.exit(main()) File "/usr/lib/python3.9/site-packages/appimagebuilder/main.py", line 58, in main invoker.execute(commands) File "/usr/lib/python3.9/site-packages/appimagebuilder/invoker.py", line 41, in execute command() File "/usr/lib/python3.9/site-packages/appimagebuilder/commands/pacman_deploy.py", line 50, in call deployed_packages = pacman_deploy.deploy( File "/usr/lib/python3.9/site-packages/appimagebuilder/modules/deploy/pacman/deploy.py", line 91, in deploy os.symlink("lib", appdir_root / "usr" / "lib64") FileNotFoundError: [Errno 2] No such file or directory: 'lib' -> '/home/jart/DEV/usbserial_appimage/AppDir/usr/lib64

JartX avatar Sep 13 '21 15:09 JartX

@JartX it seems that you're still using the older version of appimage-builder

azubieta avatar Sep 16 '21 17:09 azubieta