Coder Social home page Coder Social logo

Comments (7)

ejolly avatar ejolly commented on August 25, 2024

Thanks for opening this issue! Unfortunately, as the sole developer of this project, it's hard for me to keep up with numerous API changes that rpy2 introduces with each version. To get going right away, I would suggest pip install rpy2==2.9.4 to force using a non 3.0 rpy2 version which should work.

from pymer4.

yanst001 avatar yanst001 commented on August 25, 2024

ok, I found this issue is similar to the one I have and tried to switch to 2.9.4. I do not see error for rpy2==2.9.4 installation, but there is import error when the Lm, Lmer4 are imported as below (I do not have import error when using rpy2==3.0.5).

Can you add some documentation about how to avoid errors with requiring an older version of rpy2 than current default.

ImportError: dlopen(/usr/local/lib/python3.6/site-packages/rpy2/rinterface/_rinterface.cpython-36m-darwin.so, 2): Library not loaded: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libR.dylib
  Referenced from: /usr/local/lib/python3.6/site-packages/rpy2/rinterface/_rinterface.cpython-36m-darwin.so
  Reason: image not found

from pymer4.

ejolly avatar ejolly commented on August 25, 2024

@yanst001 Thanks for reporting this. It looks like this is an rpy2 issue not a pymer issue as rpy2 cannot find your R installation. How did you install R? Via conda or manually? And did you still version 3.5 (what rpy2 is looking for)? This can happen if you install some R related things through conda, and others manually; mixing and matching generally is best avoided. I have some instructions in the documentation for installation issues that might help with this.

Unfortunately I’m currently finishing up my dissertation so I won’t be able to get to updating the documentation until then. I do have a big update release planned for after that with numerous fixes and hopefully easier installation.

from pymer4.

yanst001 avatar yanst001 commented on August 25, 2024

It seems a simple change from ri2py to rpy2py, I guess this can be done locally?

from pymer4.

yanst001 avatar yanst001 commented on August 25, 2024

ok, my solution was to shift fully converted to rpy2 , this takes some time to use specific R function in python, but works

from pymer4.

ejolly avatar ejolly commented on August 25, 2024

Sounds good. You can also try the latest release (pushed minutes ago) version 0.7.0. Lots of bug and compatibility fixes that work with the latest rpy2 version

from pymer4.

ejolly avatar ejolly commented on August 25, 2024

I'm going to close this for now, but can revisit if there are still problems

from pymer4.

Related Issues (20)

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.