Giter Club home page Giter Club logo

Comments (7)

veryheavypickle avatar veryheavypickle commented on May 29, 2024 2

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.

avibrazil avatar avibrazil commented on May 29, 2024

I can't reproduce this problem

from iosbackup.

ego-lay-atman-bay avatar ego-lay-atman-bay commented on May 29, 2024

I can't reproduce this problem

Well then can you tell me step by step how to install it on windows?

from iosbackup.

ego-lay-atman-bay avatar ego-lay-atman-bay commented on May 29, 2024

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.

avibrazil avatar avibrazil commented on May 29, 2024

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.

ego-lay-atman-bay avatar ego-lay-atman-bay commented on May 29, 2024

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.

avibrazil avatar avibrazil commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.