• mysticbb

    From HSM@21:2/162 to All on Thursday, January 07, 2021 20:00:32
    Hello,

    I installed the mysticbb forum mpy and I'm getting the following error:

    PYTHON ERROR (mysticbb.mpy) File "mysticbb.mpy", line 71, in <module> ImportError: No module named mysticbb_cfg
    Python environment variables may need to be set, see Wiki for details

    Suggestions?

    -=- Gary aka HSM -=-
    -=Mystic.BBSGameTime.com=-

    --- Mystic BBS v1.12 A47 2020/10/20 (Linux/64)
    * Origin: BBS GameTime - mystic.BBSGameTime.com:23 (21:2/162)
  • From xqtr@21:1/111 to HSM on Friday, January 08, 2021 17:31:25
    PYTHON ERROR (mysticbb.mpy) File "mysticbb.mpy", line 71, in <module> ImportError: No module named mysticbb_cfg

    It's looking for the configuration file... it should be inside the mysticbb directory. Check to see if there is one or it's missing... it shouldn't cause it's in the package.

    If that's not the problem, check lines 8 and 9, it should be exactly like this: datadir = getcfg()['script']+'mysticbb'+os.sep
    sys.path.append(datadir)

    ...and of course check if you have a mysticbb directory inside your scripts directory, in case you only unzipped the root files of the package.

    :: XQTR :: Another Droid BBS :: andr01d.zapto.org:9999 :: xqtr@gmx.com

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: Another Droid BBS # andr01d.zapto.org:9999 (21:1/111)
  • From HSM@21:2/162 to xqtr on Friday, January 08, 2021 16:37:03
    On 08 Jan 2021, xqtr said the following...

    PYTHON ERROR (mysticbb.mpy) File "mysticbb.mpy", line 71, in <module ImportError: No module named mysticbb_cfg

    It's looking for the configuration file... it should be inside the mysticbbdirectory. Check to see if there is one or it's missing... it shouldn't causeit's in the package.

    If that's not the problem, check lines 8 and 9, it should be exactly
    like this:datadir = getcfg()['script']+'mysticbb'+os.sep sys.path.append(datadir)

    ...and of course check if you have a mysticbb directory inside your scriptsdirectory, in case you only unzipped the root files of the
    package.

    Everything is where it's supposed to be.
    I'm sure it's related, but on my Mystic setup (Ubuntu 20.04) I have to use full paths or stuff doesn't work.

    For example, when I run the mysticbb.mpy I have to specify the full path /mystic/themes/default/scripts/mysticbb or it doesn't work at all.

    Can I hard code the location of the mysticbb_cfg file?

    Thanks,

    -=- Gary aka HSM -=-
    -=Mystic.BBSGameTime.com=-

    --- Mystic BBS v1.12 A47 2020/10/20 (Linux/64)
    * Origin: BBS GameTime - mystic.BBSGameTime.com:23 (21:2/162)
  • From xqtr@21:1/111 to HSM on Saturday, January 09, 2021 17:41:25
    Everything is where it's supposed to be.
    I'm sure it's related, but on my Mystic setup (Ubuntu 20.04) I have to use full paths or stuff doesn't
    For example, when I run the mysticbb.mpy I have to specify the full path mystic/themes/default/scripts/mysticbb or it doesn't work at

    You should have stated that from the beginning. So it's not a script/mod problem, rather than a system, python perhaps thing.

    Can I hard code the location of the mysticbb_cfg file?

    Yes you can. You could also copy/paste the entire file, inside the main script, so there is no need for importing it... but this is not the solution. Just this mod, it has several places, that uses relative/variable paths... what you will do? hard code all of them? ;) You should definitely search the correct solution for the problem. I suspect something to do with dir permissions, user privileges, python install/setup.

    :: XQTR :: Another Droid BBS :: andr01d.zapto.org:9999 :: xqtr@gmx.com

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: Another Droid BBS # andr01d.zapto.org:9999 (21:1/111)
  • From Warp 4@21:2/136 to HSM on Sunday, January 10, 2021 14:52:15
    On 07 Jan 2021, HSM said the following...

    132
    Hello,

    I installed the mysticbb forum mpy and I'm getting the following error:

    PYTHON ERROR (mysticbb.mpy) File "mysticbb.mpy", line 71, in <module> ImportError: No module named mysticbb_cfg
    Python environment variables may need to be set, see Wiki for details

    Which version of Python are you running? What OS are you running
    your Mystic installation from?

    --- Mystic BBS v1.12 A47 2021/01/05 (Linux/64)
    * Origin: Omicron Theta * Horn Lake MS * linux.winserver.org (21:2/136)
  • From HSM@21:2/162 to Warp 4 on Sunday, January 10, 2021 17:11:39
    On 10 Jan 2021, Warp 4 said the following...

    On 07 Jan 2021, HSM said the following...

    132
    Hello,

    I installed the mysticbb forum mpy and I'm getting the following erro

    PYTHON ERROR (mysticbb.mpy) File "mysticbb.mpy", line 71, in <module ImportError: No module named mysticbb_cfg
    Python environment variables may need to be set, see Wiki for details

    Which version of Python are you running? What OS are you running
    your Mystic installation from?

    Python 2.7, Ubuntu 20.04. I have the script working now, I just had to hard code the location of the data files in the .mpy.

    -=- Gary aka HSM -=-
    -=Mystic.BBSGameTime.com=-

    --- Mystic BBS v1.12 A47 2020/10/20 (Linux/64)
    * Origin: BBS GameTime - mystic.BBSGameTime.com:23 (21:2/162)
  • From HSM@21:2/162 to HSM on Tuesday, March 23, 2021 13:29:29
    On 07 Jan 2021, HSM said the following...

    Hello,

    I installed the mysticbb forum mpy and I'm getting the following error:

    PYTHON ERROR (mysticbb.mpy) File "mysticbb.mpy", line 71, in <module> ImportError: No module named mysticbb_cfg
    Python environment variables may need to be set, see Wiki for details

    Suggestions?


    Hi, me again.
    Still trying to get this working. I have since migrated from Ubuntu to Win10(32) and I still get the "File mysticbb.mpy, line 71..." error. Python evironment variables are set. Not sure what's wrong.

    ├HSM─aka─Gary───────────────┐
    ┐│ Mystic.BBSGameTime.com:23 │┌
    ││ ScoobysDoo.ddns.net:2023 ││
    │└───────────────────────────┘│

    --- Mystic BBS v1.12 A47 2021/02/12 (Windows/32)
    * Origin: BBS GameTime - mystic.BBSGameTime.com:23 (21:2/162)
  • From acn@21:3/127.1 to HSM on Wednesday, March 24, 2021 11:24:00
    Am 23.03.21 schrieb HSM@21:2/162 in FSX_BBS:

    Hallo Hsm,

    I installed the mysticbb forum mpy and I'm getting the following error: HS>>
    PYTHON ERROR (mysticbb.mpy) File "mysticbb.mpy", line 71, in <module> HS>> ImportError: No module named mysticbb_cfg
    Python environment variables may need to be set, see Wiki for details

    Suggestions?

    Hi, me again.
    Still trying to get this working. I have since migrated from Ubuntu to Win10(32) and I still get the "File mysticbb.mpy, line 71..." error.
    Python evironment variables are set. Not sure what's wrong.

    I don't know it either, but the error message says that it's missing a
    module named "mysticbb_cfg".
    Do you have such a file, eg. "mysticbb_cfg.py" or "mysticbb_cfg.mpy" or something like that?

    Regards,
    Anna

    --- OpenXP 5.0.49
    * Origin: Imzadi Box Point (21:3/127.1)
  • From HSM@21:2/162 to acn on Wednesday, March 24, 2021 10:48:10
    On 24 Mar 2021, acn said the following...

    Am 23.03.21 schrieb HSM@21:2/162 in FSX_BBS:

    Hallo Hsm,

    I installed the mysticbb forum mpy and I'm getting the following erro HS>>
    PYTHON ERROR (mysticbb.mpy) File "mysticbb.mpy", line 71, in <module HS>> ImportError: No module named mysticbb_cfg
    I don't know it either, but the error message says that it's missing a module named "mysticbb_cfg".
    Do you have such a file, eg. "mysticbb_cfg.py" or "mysticbb_cfg.mpy" or something like that?

    Yep, mysticbb_cfg resides in \mystic\themes\default\scripts\mysticbb, I've also tried moving it to the \scripts directory and get the same results.

    ├HSM─aka─Gary───────────────┐
    ┐│ Mystic.BBSGameTime.com:23 │┌
    ││ ScoobysDoo.ddns.net:2023 ││
    │└───────────────────────────┘│

    --- Mystic BBS v1.12 A47 2021/02/12 (Windows/32)
    * Origin: BBS GameTime - mystic.BBSGameTime.com:23 (21:2/162)
  • From bcw142@21:1/145 to HSM on Saturday, March 27, 2021 10:08:36
    On 23 Mar 2021, HSM said the following...

    PYTHON ERROR (mysticbb.mpy) File "mysticbb.mpy", line 71, in <module ImportError: No module named mysticbb_cfg

    So it's looking for a mysticbb_cfg file, create one with notepad or the like. It can have nothing in it if it's just looking for the file, it might want to write to it (initial configuration).It does sound like a file protection
    issue (attrib +r +w mysticbb_cfg) or more likely issues with mysticbb,mpy ownership. Check Properties on the file for attributes and owner vis mystic.dat for example.

    --- Mystic BBS v1.12 A47 2021/02/12 (Raspberry Pi/32)
    * Origin: Mystic Pi BBS bcw142.zapto.org (21:1/145)