{"action":"created","issue":{"url":"https://api.github.com/repos/jim-easterbrook/python-gphoto2/issues/25","repository_url":"https://api.github.com/repos/jim-easterbrook/python-gphoto2","labels_url":"https://api.github.com/repos/jim-easterbrook/python-gphoto2/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/jim-easterbrook/python-gphoto2/issues/25/comments","events_url":"https://api.github.com/repos/jim-easterbrook/python-gphoto2/issues/25/events","html_url":"https://github.com/jim-easterbrook/python-gphoto2/issues/25","id":178480059,"number":25,"title":"Copying files to camera","user":{"login":"inobotica","id":22357298,"avatar_url":"https://avatars.githubusercontent.com/u/22357298?v=3","gravatar_id":"","url":"https://api.github.com/users/inobotica","html_url":"https://github.com/inobotica","followers_url":"https://api.github.com/users/inobotica/followers","following_url":"https://api.github.com/users/inobotica/following{/other_user}","gists_url":"https://api.github.com/users/inobotica/gists{/gist_id}","starred_url":"https://api.github.com/users/inobotica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inobotica/subscriptions","organizations_url":"https://api.github.com/users/inobotica/orgs","repos_url":"https://api.github.com/users/inobotica/repos","events_url":"https://api.github.com/users/inobotica/events{/privacy}","received_events_url":"https://api.github.com/users/inobotica/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jim-easterbrook/python-gphoto2/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-21T22:40:59Z","updated_at":"2016-09-23T16:23:19Z","closed_at":null,"body":"i have captured and downloaded images from the camera successfully thanks to your python library for Pi, now i want to copy the photos from the raspberry to the camera again, the application that i am working is geotagging images, so i take the picture, download to /pi/ add exif data and i want to move back to the camera, i have checked the functions but i dont see a specific function that do it.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jim-easterbrook/python-gphoto2/issues/comments/249237752","html_url":"https://github.com/jim-easterbrook/python-gphoto2/issues/25#issuecomment-249237752","issue_url":"https://api.github.com/repos/jim-easterbrook/python-gphoto2/issues/25","id":249237752,"user":{"login":"chrisimars","id":22223912,"avatar_url":"https://avatars.githubusercontent.com/u/22223912?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisimars","html_url":"https://github.com/chrisimars","followers_url":"https://api.github.com/users/chrisimars/followers","following_url":"https://api.github.com/users/chrisimars/following{/other_user}","gists_url":"https://api.github.com/users/chrisimars/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisimars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisimars/subscriptions","organizations_url":"https://api.github.com/users/chrisimars/orgs","repos_url":"https://api.github.com/users/chrisimars/repos","events_url":"https://api.github.com/users/chrisimars/events{/privacy}","received_events_url":"https://api.github.com/users/chrisimars/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T16:23:19Z","updated_at":"2016-09-23T16:23:19Z","body":"Hi, I am trying to download files from the camera not upload.\r\nThanks,\r\nChris\r\n\r\n\r\nChris Marshall | Hardware & Software Engineering | Event Imaging Solutions\r\nKodak Alaris Imaging | 2400 Mt Read Blvd | MC 03013 | Rochester, NY 14615-3013\r\nchris.marshall@kodakalaris.com | (585) 230-0782\r\n[cid:image002.png@01D21595.3D667180]\r\n\r\n     The information contained in this e-mail is confidential. It is intended only for the use of the named recipient(s).\r\n    If you have received this e-mail in error, please immediately inform the sender and delete the message.\r\n    If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution,\r\n    or copying of this communication is strictly prohibited.\r\n\r\nFrom: Daniel Pacheco [mailto:notifications@github.com]\r\nSent: Friday, September 23, 2016 12:21 PM\r\nTo: jim-easterbrook/python-gphoto2 <python-gphoto2@noreply.github.com>\r\nSubject: Re: [jim-easterbrook/python-gphoto2] Copying files to camera (#25)\r\n\r\n\r\nHi,\r\n\r\nI have been working with the functions that you recommended me, but i am having problem with the creation of CameraFile object, it seems that i am not creating a correct CameraFile object and the gp_file_open() is not reading it throwing an error \"Argument 1 of type CameraFile \". How i create a CameraFile object correctly?\r\n\r\nhere is my code:\r\n\r\ndef file_mover():\r\ncamera_file = gp.gp_file_new() # Create a CameraFile object\r\ngp.gp_file_open(camera_file,name) # Pass the image (in RPi) to the CameraFile object\r\ngp.check_result(gp.gp_camera_put_file(camera,folder,camera_file,context)) # Save the image in NIKON S3700 SDcard\r\n\r\nThanks for the help,\r\n\r\n—\r\nYou are receiving this because you are subscribed to this thread.\r\nReply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_jim-2Deasterbrook_python-2Dgphoto2_issues_25-23issuecomment-2D249237166&d=DQMFaQ&c=skUQKLuTFULvQUMqV0uyBaBvPxsA7Wk8MKjvMTLjY3w&r=nyfINTJwYNTv1IvEYDo8bmlrHiExFjfNPQkUXyAtXbs&m=j2JaIAo6r-7cuPc11sJ4zQYmF5LwblwAQ4IFDLiJoZk&s=Vr7kxwqX0UobOtOW_uVqWYSF_w7KbBOJ6F310MtY9lo&e=>, or mute the thread<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AVMcKHUqV1d17MHJaJ3-5FyqDDqGy7HE-2D1ks5qs-5FxagaJpZM4KDWsg&d=DQMFaQ&c=skUQKLuTFULvQUMqV0uyBaBvPxsA7Wk8MKjvMTLjY3w&r=nyfINTJwYNTv1IvEYDo8bmlrHiExFjfNPQkUXyAtXbs&m=j2JaIAo6r-7cuPc11sJ4zQYmF5LwblwAQ4IFDLiJoZk&s=NzLCkUfetlvvS2ZvQCsY1yeYWbWiUuR1c7tx8XQzy38&e=>.\r\n"}}
{"actor":{"display_login":"chrisimars"}}