-
Notifications
You must be signed in to change notification settings - Fork 17
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 image at path clipboardImage1.png #1
Comments
Hi @superficialt , thanks for your feedback. I didnt have the chance to test the package on Mac, a friend wanted to do that, but didnt find the time. So i cant reproduce it at the moment :(. I made an update to the code. Could you re-install the latest (dev) version from github and see if there comes an error message- If that doesnt help - could you check if there was a file created in the same directory as your notebook file is? If that doesnt help i will try to get my hands on a mac. Best regards, |
Thanks for the input. I've updated the package, and restarted R. It seems to be more broken now I'm afraid. I get an error message now before the code clip (in my image above) appears:
|
Not more broken, more detailed logging :) The python code seems to fail. Checking the error leads to: rstudio/reticulate#494. Could you have a look at it and check if the error occurs if you work outside a project or update rstudio to the referenced version? |
any update @superficialt ? |
Hi,
Sorry I didn’t really understand the previous email. What is the referenced version?
Tom
… On 4 Sep 2019, at 22:22, Tonio Liebrand ***@***.***> wrote:
any update @superficialt <https://github.com/superficialt> ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#1>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ALE4VVZBH2G7Q7EUVQX7SBDQIARJ3ANCNFSM4ISAAO6A>.
|
I meant you could check: rstudio/reticulate#494. There they write about the same error message.
|
I think I found the error for Mac OSX. It looks like that the filePath from the rstudioapi is throwing a path name that has tilda (~) as the home directory. And whenever that path is given to the python code, it fails. |
I created a pull request (although, I think due to this Windows Mac OSX differences in line breaks it shows a entire code changes) that fixes the issue and works with Mac OSX. (It is just one additional line, which I believe will not affect Windows usage). |
OK, forgive my ignorance but how do I update to your version? |
Thanks for the PR @chlee-tabin. You are right on the "diff" he showed me -168 + 170 lines of code, but thats fine. I merged the PR, thanks for the OSX support! @superficialt. You can update now, by downloading the current version. |
@TiMaG Hi thanks again for the wonderful package which I am using it. I created one more pull request which I am happy if you decline, but I think it makes sense of naming the png files alongside the markdown file (I have multiple markdown files in a directory so makes it easier to pinpoint which images I pasted). |
Sure, thanks for your contribution!! |
Hi,
I think this is a great idea, was really excited to find that it exists. However, it doesn't seem to work for me. Perhaps I have installed it incorrectly.
I used:
packages.install('devtools')
devtools::install_github('Timag/imageclipr')
This didn't work at all - threw an error message complaining that PIL wasn't installed. So from Terminal I ran 'sudo pip install pillow'.
Now when I run 'devtools::install_github('Timag/imageclipr')' it installs without error but when I try to paste something in I get this error:
![image](https://user-images.githubusercontent.com/46779095/63928781-1fb62e80-ca48-11e9-88f0-013ee330e833.png)
MacBook Pro 2018 running OS X Mojave 10.14.6
RStudio 1.1.456
I have Python installed, I think, on this machine but I have never used it. This may be the issue - I have no idea whether it's working, whether all the paths are correct etc.
Any suggestions?
The text was updated successfully, but these errors were encountered: