Subj : Re: Python2 errors help To : ogg From : claw Date : Mon Sep 12 2022 07:38 am On 09 Sep 2022, ogg said the following... og> I've been trying to install an .mpy mod on my bbs. I'm running across a og> python error that I haven't been able to fix. I'm hoping someone here og> might be able to lead me in the right direction. og> og> Background: og> Mystic: v1.12 A48 2022/07/15 og> Ubuntu: 22.04.1 og> Python: 2.7.15 og> og> After installing the mod per the instructions, I used the GY command to og> run it from the Main Menu. When I do run it, I get the following error: og> og> PYTHON ERROR (/home/pi/mystic/themes/default/scripts/********.mpy) og> File "/home/pi/mystic/themes/default/scripts/********.mpy", line 10, in og> from bs4 import BeautifulSoup og> ImportError: No module named bs4 og> og> I've verified that all of the modules are installed as the pip2 install og> -r requirements.txt command used verifies this. The Python Demo's og> included with Mystic all run with out a problem. og> og> Here's what I've tried: og> 1. From the Mystic wiki, it talks about issues with stock python versions og> (especially Ubuntu) having issues with Mystic python. I did try to og> recompile python per the wiki, but ran into an issue with the og> libreadline-gplv2-dev library apparently being deprecated and og> unavailable. I haven't been able to find any old packages that will og> install. 2. I verified that the required python modules are installed. og> Could it be that python can't find them? og> og> I'm hoping someone here can provide some direction or suggestions! og> og> Thanks for taking the time to read this epistle! og> og> ogg What seems to have worked for me and even a few people I have helped with this is to copy the compiled libs in to your /mystic directory. Don't forget to change this in the mystic -cfg. Then it starts working. I made sure to compile both of them and have each one. I used the newest ones at the time and have zero issues with them. I also run on Ubuntu so if you would a copy of the already compiled bins let me know |23|04Dr|16|12Claw |16|14Sysop |12Noverdu |14BBS |04(|14Noverdu.com|04) |10Standard Ports for SSH/Telnet Web/HTTP://|14Noverdu.com:808 |20|15fsxNet/MRC Chat/Registered Doors!/50Nodes/No Time Use! Stay On!|16|07 --- Mystic BBS v1.12 A47 2021/12/24 (Linux/64) * Origin: Noverdu BBS (21:1/210) .