-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No way to approve carnets to access file folder #316
Comments
I think the first question is: where are you creating the file? in which folder? |
I'm seeing something similar after first install of Carnets on iOS 17.2.1. It's acting as if Files and Folders permission has not been granted, and I don't see the option to grant that. Perhaps the app's manifest doesn't declare that requirement? New notebook (+ icon): Trying to open Welcome notebook in Carnets folder: |
Thanks a lot for the screenshots. I'm extremely puzzled (also because it does not happen often, especially not when I'm testing). In the AppStore reviews, someone mentionned that changing the "Document Storage" option for Carnets in the Settings App to "On my iPhone" instead of "iCloud Drive" solved this issue. |
Hmm, I tried that but the result is the same. Happy to have a screen share session some time next week if that helps.
|
That would be great. Let me have a look at the code first to identify possible causes. Do you have access to the local directories ("on my iPad/Carnets", or "on my iPad/Another App")? |
It can list and show the files and folders, but apparently can’t read or write files. Not sure why he Carnets/Welcome notebook isn’t showing. I saw it earlier. Looks like it’s trying to read from iCloud documents folder, not local Carnet folder. And there is no Carnets folder in iCloud, just local.
|
Are you telling me that Carnets can not even create a notebook inside "On my iPad/Carnets"? (and if so, could you send me a screenshot, so I can escalate the issue with Apple?) |
My mistake, I assumed it was trying to use an iCloud/Carnets folder because the URL shown in the error dialog was I tried uninstalling / reinstalling the Carnets app. The Carnets folder was deleted (or hidden) on uninstall. After reinstall, it reappeared but empty. I am now able to create a notebook, evaluate an expression, and save the notebook. If I try Save As, the prompt for path name has: The path above is different than that in the URL from the error dialog. Also, I don't see any way to access the Welcome notebook. Is it normally added to the local Carnets folder under |
I've copied the welcome/* files from the repo to a new Carnets folder in iCloud, and tried to open the welcome notebook from there. It opens OK but gives the warning about not having access to the "directory around this notebook" (wording suggestion: "the containing directory"). I don't see any "unlock directory" label, but the rightmost button in toolbar, with folder icon and arrow (suggesting import), allowed me to "open" the welcome folder. It then restarted the server / reloaded the page, with images showing. |
Just found Carnets and am keen to get it running, but can confirm the exact same issues as **nedgar ** |
Please keep sending detailed description of the issue, with the location of the directory with the issue and screenshots showing the error messages (also, what system version are you using). If it's an issue with iCloud access, it's different from an issue with access to local folders. From your descriptions, it's an issue that happens randomly, and from what I can see there's Apple software that behaves differently from what its documentation says. Any kind of hint can help in understanding where the issue is and how to work around it. |
@tonydavidcray good to have your input too. Does reinstalling Carnets help? |
Deleting and reinstalling resulted in a little more progress. Still seems to be some odd issues with permissions with the file manager. I have now successfully adding a .ipynb file to my icloud drive from VSCode on my mac. File is able to be opened on Carnets and runs as expected. Saving on iPad also now syncs to the mac Cloud Drive and updates in VSCode. |
Creating a new notebook on iPad still results in a permissions error. |
Hi, |
Looks good! I shared a few screenshots with suggestions. Lmk if you didn't get them. |
I'm glad to know it works for you; I didn't get the screenshots. If the github user interface keeps removing them, you can send them by e-mail to: [email protected] |
I meant I sent the screenshots from the in-app hook. |
Oh! Thank you, I got them. |
Thanks for clarifying the constraints you have to deal with. I think the "directory around this file" warning could be clarified, but the behaviour makes sense now. Maybe just "other files in the containing folder cannot be accessed unless you grant permission". Note that the files app uses "folder" rather than "directory". |
Do you plan to release this "with scipi" version as a separate app or just as an upgrade? |
I'm also wondering what the UX for the welcome notebook is intended to be. I was only able to get it by copying from the repo. I'd expect it to appear in the Carnets folder, added in app install or on first run. |
Hi,
|
Hi, I‘ve got the same problem after downloading version 1.8.3 from the App Store (iOS Version 17.4.1 on M1 iPad). After the first start I saw an error message briefly appearing stating „You have no permission to create a Documents folder“ (or documents?), before the other error messages already reported in this thread to Carnets popped up. I renamed the Documents folder inside the app, could then create a notebook, start Python etc. That means, that after installing the welcome folder was NOT copied to „iCloud/Carnets“. But I could not restart the app, had to reboot the iPad for that. Now a have an uploading problem to iCloud, the synchronization is stuck (which is imo connected to creating an illegal folder in the iCloud). I removed the app, deleted my notebooks and copies, and downloaded it again. Now I get only a blank screen which disappears after some seconds. The app seems still to be alive, can switch to a blank screen. Will try to disconnect from iCloud and reconnect. |
Hi, It's clear that iCloud does not like people creating or removing folders in its place. I actually don't understand how you could "rename the Documents folder inside the app". I'm going to see if your crash reports appear in my console. |
I am getting the same error. Trying to access, read and write Jupyter notebooks saved on my Google cloud. No way to approve the access |
If it's related to Google cloud, then it's a different issue. Carnets only works with file providers that use Apple's FileProvider API. Google cloud, Microsoft drive, dropbox and the like are all using some private, undocumented APIs. I have not been able to make Carnets work with those file providers, despite spending a lot of effort on them. |
I got the same error while trying to access jupyter notebooks saved on iCloud. My aim is able to read/edit jupyter notebook and python files stored on any cloud app to ensure its synced between all my devices. |
That is not an issue that I can reproduce on my machines (I just tried to be sure). It would be helpful if you could add screenshots, with the actual error message, or steps I can take to reproduce the issue. |
Happy to jump on call and I can show you? |
Would two hours from now be OK? Send me an e-mail with details at [email protected] (or just e-mail me a link to a video recording of your screen if that's more convenient). |
screen recording sent |
I
Anyone knows how to get iPhone to allow Carnets to access files and create new files? The app did not ask permission and I do not know how to grant it permission without the prompt
The text was updated successfully, but these errors were encountered: