Comments (7)
I also had this issue. I initially tried running in a Python 3.8.9 virtual environment on macOS Big Sur (2012 intel chip) and got that error.
I decided it must be due to the venv, and tried it in my system python install (3.9.12) which had been installed correctly and cleanly with pyenv and brew. Also got the exact same error. In short it wasn't that. However as I was writing out this comment I fixed the issue.
outside of the venv
$ python3 -V
Python 3.9.12
$ pip3 install iOSbackup --user
this works
$ python3
Python 3.9.12 (main, Mar 26 2022, 15:52:10)
[Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from iOSbackup import iOSbackup
this also works
>>> iOSbackup.getDeviceList()
results in
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/yoda/Library/Python/3.9/lib/python/site-packages/iOSbackup/__init__.py", line 374, in getDeviceList
(_, dirnames, _)=next(os.walk(root))
StopIteration
inside a venv
$ python3 -V
Python 3.8.9
$ pip install iOSbackup
success
$ python
Python 3.8.9 (default, Oct 26 2021, 07:25:54)
[Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from iOSbackup import iOSbackup
>>> iOSbackup.getDeviceList()
results in
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/yodaisntmyactualusername/Documents/Projects/Programming/Python/iOSBackupExtractor/venv/lib/python3.8/site-packages/iOSbackup/__init__.py", line 374, in getDeviceList
(_, dirnames, _)=next(os.walk(root))
StopIteration
The fix for this error was due to my macOS permissions.
System Preferences > Security & Privacy > Full Disk Access and in my case I had to give PyCharm and Terminal a tick and restart them. Now running >>> iOSbackup.getDeviceList()
in both instances are successful.
My fix was for MacOS only which to any windows user reading this will have their heart sink a little bit. As for windows, there may be a similar fix to allow full disk access, or that you have a non standard backup location in which case check out this issue
from iosbackup.
I can't reproduce this problem
from iosbackup.
I can't reproduce this problem
Well then can you tell me step by step how to install it on windows?
from iosbackup.
after a bit of testing (and some help from the previous post), I realized I have to specify the backups path, even though my path is the standard path. All I need now, is to figure out how to actually view the contents of my backup.
edit: I now have full access to the contents of my backup.
from iosbackup.
iOSbackup should be smart enough to know the default path on Windows and Mac.
What is the full path of backup created by iTunes on your system?
Also, I’ll try to detect the lack of permission issue and print a better error message.
Thank you folks!
from iosbackup.
What is the full path of backup created by iTunes on your system?
%APPDATA%\Apple Computer\MobileSync\Backup
Or c:\Users\[USERNAME]\AppData\Roaming\Apple Computer\MobileSync\Backup
from iosbackup.
Would you please change this line of iOSbackup, put this new path and let me know what happens?
I'm asking you because I don't even have a Windows installation to test it.
Maybe this deserves a fix indeed.
from iosbackup.
Related Issues (18)
- Incorrect padding removal HOT 2
- Missing License HOT 2
- KeyError: b'KEY' HOT 3
- Non-encrypted backup support HOT 2
- KeyError: 'Size' HOT 2
- Python 3.8 HOT 10
- Error installing requirements in windows 10 x64, python 3.x HOT 2
- Windows 64bit HOT 2
- FileNotFoundError
- sqlite3.DatabaseError: file is not a database HOT 1
- I get a StopIteration when running getDeviceList() HOT 1
- How do I find out which photos belong to a certain album?
- Decryption fails on large files HOT 2
- Non-standard backup root HOT 2
- FileNotFoundError HOT 4
- Exception has occurred: KeyError b'DPSL' HOT 2
- sqlite3.DatabaseError: database disk image is malformed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iosbackup.