synology-cloud-sync-decrypt-tool
                                
                                 synology-cloud-sync-decrypt-tool copied to clipboard
                                
                                    synology-cloud-sync-decrypt-tool copied to clipboard
                            
                            
                            
                        Installation Fails - macOS M1
Context I downloaded the most recent .zip from Releases. I installed the .app into my Applications/ folder and tried decrypting a file. When I clicked to decrypt, I got an error message that it had failed.
Next, I opened the .app's contents, navigated to Resources/ folder, and ran InstallMeFirst.app. I was prompted for my password and then received the below error message.
I believe this is due to the installation not being compatible with Apple's M1 Silicon architecture.
Please let me know if I can provide more information. I am willing to provide a bounty to have this issue resolved, as this app is the only way to decrypt Cloud Sync files on a Mac.
Error Message:
ld: warning: ignoring file ../lib/lz4.o, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
ld: warning: ignoring file ../lib/lz4frame.o, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
ld: warning: ignoring file ../lib/xxhash.o, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
ld: warning: ignoring file bench.o, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
ld: warning: ignoring file datagen.o, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
ld: warning: ignoring file ../lib/lz4hc.o, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
ld: warning: ignoring file lz4cli.o, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
ld: warning: ignoring file lz4io.o, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
Undefined symbols for architecture arm64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [lz4] Error 1
make: *** [install] Error 2
I was able to get it working by following the detailed Install on Mac instructions from the README. However, I ran into several issues along the way. Hopefully the solutions detailed below will be helpful when updating this with M1 support:
- 
Issue: Pillow installation fails a. Context: The version of Pillow specified in requirements.txtis7.2.0. My installed version of Python 3 is3.9. According to Pillow's installation docs, Pillow7.2.0does not support Python>3.8. b. Solution: Rewriterequirements.txtto specify Pillow7.2.0as the minimum supported version (e.g.Pillow >= 7.2.0)
- 
Issue: Couldn't import tkinterwhen running Synology.py a. Context: This was caused by the version of Python I had installed not supportingtkb. Solution: There are various ways to solve this that one can find on Google. If usingbrew, thenbrew install python-tkis a simple fix. I am not sure if there is a way to solve this within the app.
- 
Issue: Scripts fail due to being unable to locate lz4 a. Context: On Apple M1, Homebrew installs lz4 at /opt/homebrew/bin/lz4. However, Synology.py and util.py are both hardcoded to look for lz4 at/usr/local/bin/lz4. b. Solution: I was able to get it to work by updating the hardcoded lz4 locations in both Synology.py and util.py to match my lz4 location. That said, there is probably a better way within Python to identify whether an executable exists. Maybe usingtype?
Hope this helps! I am still willing to bounty a full solution for M1 support.
Also failed for me on my M1 - luckily I also have an intel machine which I can use...
Hi,
Sorry I have been away with work which has kept me busy in the last couple of years.
Thanks for reporting this, I just got myself an M1 Mac. I was not able to troubleshoot this well since I had an intel Mac all these years. Will be addressing this issue soon.
Cheers!
Anything new about this ? Thanks
No longer working unfortunately
Thanks @whispy !!
I installed lz4 with brew install lz4 then replaced /usr/local/bin/lz4 by /opt/homebrew/bin/lz4 in:
Contents/Resources/lib/python3.7/syndecrypt/util.py
Contents/Resources/Synology.py
And this is working.