How to set the library path of an R package to rpy2? - rpy2

I am trying to invoke an R package in Python. The R package is politeness (https://cran.r-project.org/web/packages/politeness/vignettes/politeness.html) and I was able to run that on a local machine.
However, when trying to call the package on Deepnote, Rpy2 is not locating the politeness package, making the following error.
PackageNotInstalledError: The R package "politeness" is not installed.
Any suggestions are highly appreciated.
Thank you

Related

Easiest way to install set of standard Python Modules in LINUX

I am setting up a server, and trying to run python code. Painfully installing python3.X; and just realized I have to install all standard/required python modules one-by-one.
Is there a way to easily install the latest set of standard python modules? I don't mean using a requirements.txt file.
Standard modules are : numpy, pandas, scipy, scilearn, requests etc... But I know there must be alot of useful python modules.
So, I tried googling and cannot seem to find a public way to easily install a whole list

publish packages in conda forge receive error 'MY PACKAGE requires pathlib, which is not installed'

This is quite strange as pathlib seems already built in python > 3.4, anyone got an idea what raises the error?
ps. Package is already in pypi, the recipe was created directly from grayskull.

Pyinstaller saying I am missing libraries

OSError: Python library not found: libpython3.8m.dll, libpython3.8.dll, python38.dll, libpython38m.dll, libpython38.dll
This would mean your Python installation doesn't come with proper library files.
This usually happens by missing development package, or unsuitable build parameters of Python installation.
How do I solve this issue? I am trying to compile my stock market simulator into an exe but I keep on getting this issue. I have tried various solutions, but all of them have no worked.

Installing a package with cabal doesn't work (random)

I'm using Windows 10. I downloaded Cabal.exe, put it in my ghc-8.8.1\bin\ directory and ran it with command cabal update. It did nothing for a while, then it ended without any messages.
Now when I run cabal install random (trying to install package "random"), I get the following error:
cabal: Error: Could not find module: System.Random with any suffix:
["gc","chs","hsc","x","y","ly","cpphs","hs","lhs","hsig","lhsig"]. If the
module is autogenerated it should be added to 'autogen-modules'.
I have no clue why it does this.
I also tried installing the package manually (following the steps from here) - downloaded package random-1.1.tar.gz and ran:
cd filepathtopackage
c:\Program Files\Apps\ghc-8.8.1\bin\runhaskell.exe Setup configure
This for a change gives me the following error:
| C:\Program Files\Apps\ghc-8.8.1\lib\Cabal-3.0.0.0\HSCabal-3.0.0.0.o: unknown symbol '.file'
Setup: Setup: unable to load package 'Cabal-3.0.0.0'
When I run ghc-pkg list, Cabal is in there, so again, no clue why it does this.
Does anyone have any tips on how to resolve this?

CFFI compiled libpango with dependencies? (thai/fribidi/datrie)

I'm trying to setup a precompiled package for aws lambda, which must contain all the required libraries inside it.
My dependencies are : pango and cairo
So, what I did was go to https://fedora.pkgs.org and download the 64 versions of those, but then when I first executed my code (WeasyPrint/cffi) it gave me the following :
OSError: cannot load library 'pango-1.0': libthai.so.1: cannot open
shared object file: No such file or directory. Additionally,
ctypes.util.find_library() did not manage to locate a library called
'pango-1.0'
So I just went the the same website mentioned above, downloaded libthai, and then it gave the same error for libfridi, and then for libdatrie.
I'm just afraid this will never stop, is there any compiled pango with all these dependencies?
Worth nothing that I have absolute no clue what I'm doing, just sorta trying to get this to work.

Resources