[ 
https://issues.apache.org/jira/browse/ARROW-16787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17553569#comment-17553569
 ] 

shivam commented on ARROW-16787:
--------------------------------

My current setup is as follows:
 # Load all the relevant R Packages except "arrow"
 # Import all the relevant Python Modules including "pyarrow"
 # Load R package "arrow"

 

As I mentioned originally, importing python module before loading R package 
does not cause any observable problem. 

 

I have done some basic testing and even if I *attach and detach* R package 
"arrow" before import of python "pyarrow", the system throws error. I did try 
to cleanly detach all additional packages that were "{*}loaded via a namespace 
(and not attached){*}" in R sessionInfo() output. However, it looks like the R 
package, on detach, leave behind some namesapces /modified system state that is 
not same as what it was before the package was attached.

 

Sadly, that is the extent of my understanding of R internals /namespaces and I 
was unable to go forward.

 

> Attaching R package arrow leads to error during import of Python Module 
> pyarrow
> -------------------------------------------------------------------------------
>
>                 Key: ARROW-16787
>                 URL: https://issues.apache.org/jira/browse/ARROW-16787
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python, R
>    Affects Versions: 8.0.0
>            Reporter: shivam
>            Priority: Major
>              Labels: windows
>         Attachments: Reticulate-Arrow-Pyarrow.Rmd, 
> Reticulate-Arrow-Pyarrow.html
>
>
> Sorry, I am new here and prepared the issue report based on GitHub markdown 
> syntax.
> And I am unsure about assigning priority as "Major", please change it to 
> appropriate level.
> I have attached an RMD File (& its HTML output) which can be knitted in R and 
> shows the problem.
>  
> - Details: 
>   - Within RStudio using Reticulate package, and without any virtual 
> environment
>   - If R arrow Package is attached before import of Python pyarrow module, 
> then import fails.
>   - If R arrow Package is either not attached or attached after the import of 
> Python pyarrow module, then there seems to be no problem. Both R and Python 
> are able to read feather files.
>  
> Please send a message if any information is missing or if more clarification 
> is required.
> Thank You
> [^Reticulate-Arrow-Pyarrow.Rmd][^Reticulate-Arrow-Pyarrow.html]
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to