atomashevic / transforEmotion

Sentiment Analysis for Text, Image and Video Using Transformer Models
GNU General Public License v3.0
24 stars 2 forks source link

Apple M1 Chip: R crashes when checking if 'transformers' is available #2

Closed Sdbock closed 2 years ago

Sdbock commented 2 years ago

Hello,

This is likely a reticulate issue, but every time I check to see if the transformers module is available, R crashes. The module has definitely been installed correctly. Any idea why this function (or reticulate, likely) would be crashing my R sessions?

Thanks! -Sean

Sdbock commented 2 years ago

Update: Figured out the issue had to do with incompatibility because of the Apple M1 chip. I had to install new versions of R and Python compatible with M1 chip. After doing that, reticule works okay, but there's still an issue with installing the transforms module, due to yet another M1 incompatibility with Rust, which is needed for tokenizers. After separately installing a compatible version of Rust, the transforms module finally installed correctly, and everything runs fine now.

AlexChristensen commented 2 years ago

Thanks for the update, @Sdbock!

I'm going to re-label the issue to direct people here in case they run into this as well.

Feel free to close the issue if everything continues to work smoothly