• python on raspberry pi

    From Marty Taylor@1:226/30 to All on Sat Nov 21 06:11:50 2020
    Hey guys,

    I am getting this error when running bbslink.py from a (GY) menu. ---------------------
    PYTHON ERROR (bbslink.py)

    File "bbslink.py", line 85, in <module>
    AttributeError: 'module' object has no attribute 'argv'
    ---------------------

    python 2.7.16 is installed, when I run the script from a bash prompt it works with no errors.

    any ideas?

    --- Mystic BBS v1.12 A47 2020/10/23 (Raspberry Pi/32)
    * Origin: Freeside BBS (1:226/30)
  • From Ron Lauzon@1:275/89 to Marty Taylor on Sun Nov 22 12:26:00 2020
    Marty Taylor wrote to All <=-

    Hey guys,

    I am getting this error when running bbslink.py from a (GY) menu. ---------------------
    PYTHON ERROR (bbslink.py)

    File "bbslink.py", line 85, in <module>
    AttributeError: 'module' object has no attribute 'argv' ---------------------

    python 2.7.16 is installed, when I run the script from a bash prompt it works with no errors.

    any ideas?

    Environment problem. When you run it from the menu, something's not set the same way (ex: missing entry in the PATH).
    Similar problem when you develop a python program but then want it to run when the system boots up (i.e. not in your
    environment).


    ... In an attempt to kill a fly, I drove into a pole.
    === MultiMail/Linux v0.52
    --- SBBSecho 3.11-Win32
    * Origin: Diamond Mine Online BBS - bbs.dmine.net:24 (1:275/89)
  • From Lance Vavricka@1:106/987 to Marty Taylor on Mon Nov 23 15:12:19 2020
    Re: python on raspberry pi
    By: Marty Taylor to All on Sat Nov 21 2020 06:11 am

    I am getting this error when running bbslink.py from a (GY) menu.

    I have python 2.7.18 installed and I get:
    Python 2.7 64-bit not detected, press a key

    I use Command DD with Data: python bbslink.py %# which works, I don't know if this is the proper way to do this or not though, or how to fix my error above from a GY Command.
    --- SBBSecho 3.11-Linux
    * Origin: Athelstan - athelstan.org (1:106/987)
  • From Lance Vavricka@1:106/987 to Marty Taylor on Mon Nov 23 15:16:19 2020
    Re: python on raspberry pi
    By: Lance Vavricka to Marty Taylor on Mon Nov 23 2020 03:12 pm

    I use Command DD with Data: python bbslink.py %# which works, I don't know

    Sorry, that would be 'python bbslink.py door_code %#'
    --- SBBSecho 3.11-Linux
    * Origin: Athelstan - athelstan.org (1:106/987)
  • From Jay Harris@1:229/664 to Lance Vavricka on Mon Nov 23 18:52:44 2020
    On 23 Nov 2020, Lance Vavricka said the following...

    Sorry, that would be 'python bbslink.py door_code %#'

    May not be the answer to your question, but I've been using the bbslink bash script which has been working quite well on my Pi install.

    Jay

    ... Why was dumbo sad? He felt irrelephant

    --- Mystic BBS v1.12 A47 2020/11/17 (Windows/64)
    * Origin: Northern Realms (1:229/664)