Code Monkey home page Code Monkey logo

Comments (12)

Toniiiio avatar Toniiiio commented on June 20, 2024

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,
Tonio

from imageclipr.

superficialt avatar superficialt commented on June 20, 2024

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:

Error in value[[3L]](cond) : Error copying the file with python. Error message reads: Error in py_run_string_impl(code, local, convert): Evaluation error: option error has NULL value. In addition: Warning messages: 1: replacing previous import ‘shiny::runExample’ by ‘shinyjs::runExample’ when loading ‘imageclipr’ 2: In if ("AttributeError: 'NoneType' object has no attribute 'save'" == : the condition has length > 1 and only the first element will be used

from imageclipr.

Toniiiio avatar Toniiiio commented on June 20, 2024

Not more broken, more detailed logging :) The python code seems to fail. Checking the error leads to: rstudio/reticulate#494.
So it could be a bug in rstudio.

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?

from imageclipr.

Toniiiio avatar Toniiiio commented on June 20, 2024

any update @superficialt ?

from imageclipr.

superficialt avatar superficialt commented on June 20, 2024

from imageclipr.

Toniiiio avatar Toniiiio commented on June 20, 2024

I meant you could check: rstudio/reticulate#494. There they write about the same error message.
--> Action would be:

  • test code outside an rstudio project in case you are using one
  • update rstudio to the version mentioned in rstudio/reticulate#494

from imageclipr.

chlee-tabin avatar chlee-tabin commented on June 20, 2024

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.

from imageclipr.

chlee-tabin avatar chlee-tabin commented on June 20, 2024

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).

from imageclipr.

superficialt avatar superficialt commented on June 20, 2024

OK, forgive my ignorance but how do I update to your version?

from imageclipr.

Toniiiio avatar Toniiiio commented on June 20, 2024

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.

from imageclipr.

chlee-tabin avatar chlee-tabin commented on June 20, 2024

@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).

from imageclipr.

Toniiiio avatar Toniiiio commented on June 20, 2024

Sure, thanks for your contribution!!

from imageclipr.

Related Issues (9)

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.