• Python not Detected

    From Nugax@21:1/107 to All on Monday, May 15, 2017 19:38:05
    I am running Ubuntu. Python 2.7 installed. I run BBSLink.py it says Python
    not detected (python error in mystic).

    I CAN run the script from CL and it works fine so I guess I dont have my environment settings right.

    Anyone know what I could be missing? I set PYTHONHOME and PYTHONPATH in /etc/environment but I guess I didnt get it right.

    Thanks,



    -Nugax

    --- Mystic BBS v1.12 A33 (Linux/64)
    * Origin: -=The ByteXchange BBS : bbs.thebytexchange.com=- (21:1/107)
  • From Avon@21:1/101 to Nugax on Tuesday, May 16, 2017 17:26:47
    On 05/15/17, Nugax pondered and said...

    I am running Ubuntu. Python 2.7 installed. I run BBSLink.py it says
    Python not detected (python error in mystic).

    I CAN run the script from CL and it works fine so I guess I dont have my environment settings right.

    Anyone know what I could be missing? I set PYTHONHOME and PYTHONPATH in /etc/environment but I guess I didnt get it right.

    I don't know the answer to this, I did see a similar request in the Fidonet MYSTIC echo recently... I figure g00r00 may be able to comment about any
    linux specific stuff related to Python setup.

    Did you look at the Wiki and see the notes there?

    Best, Paul

    --- Mystic BBS v1.12 A33 (Windows/32)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (21:1/101)
  • From Nugax@21:1/107 to All on Tuesday, May 16, 2017 06:08:57
    I did, Avon. I did see it saying you needed two variables, which I tried, but it was vague information and I wasn't able to get I working.

    On 12:26 16/05 , Avon wrote:
    On 05/15/17, Nugax pondered and said...

    I am running Ubuntu. Python 2.7 installed. I run BBSLink.py it says Python not detected (python error in mystic).

    I CAN run the script from CL and it works fine so I guess I dont have my environment settings right.

    Anyone know what I could be missing? I set PYTHONHOME and PYTHONPATH in /etc/environment but I guess I didnt get it right.

    I don't know the answer to this, I did see a similar request in the Fidonet >MYSTIC echo recently... I figure g00r00 may be able to comment about any >linux specific stuff related to Python setup.

    Did you look at the Wiki and see the notes there?

    Best, Paul

    --- Mystic BBS v1.12 A33 (Windows/32)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (21:1/101)


    --
    yrNews Usenet Reader for iOS
    http://appstore.com/yrNewsUsenetReader

    --- Mystic BBS/NNTP v1.12 A33 (Linux/64)
    * Origin: -=The ByteXchange BBS : bbs.thebytexchange.com=- (21:1/107)
  • From g00r00@21:1/108 to Nugax on Tuesday, May 16, 2017 11:37:26
    I am running Ubuntu. Python 2.7 installed. I run BBSLink.py it says
    Python not detected (python error in mystic).

    Can you run "python --version" from a terminal to see if it says "Python 2.7" and then also take a look at the output of this command:

    ldconfig -p | grep libpython

    You should see a "libpython2.7.so.1.0" as a result. If you don't, we may
    have to create a symlink to whatever file you have installed

    --- Mystic BBS v1.12 A34 (Windows/64)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)
  • From Nugax@21:1/107 to g00r00 on Tuesday, May 16, 2017 20:20:51
    It shows version 2.7.12


    The other command shows /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0


    Someting seems wrong...



    -Nugax

    --- Mystic BBS v1.12 A33 (Linux/64)
    * Origin: -=The ByteXchange BBS : bbs.thebytexchange.com=- (21:1/107)
  • From Nugax@21:1/107 to g00r00 on Thursday, May 18, 2017 12:57:34
    On 05/16/17, g00r00 said the following...

    I am running Ubuntu. Python 2.7 installed. I run BBSLink.py it says Python not detected (python error in mystic).

    Can you run "python --version" from a terminal to see if it says "Python 2.7" and then also take a look at the output of this command:

    ldconfig -p | grep libpython

    You should see a "libpython2.7.so.1.0" as a result. If you don't, we may have to create a symlink to whatever file you have installed

    --- Mystic BBS v1.12 A34 (Windows/64)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)

    g00r00

    I now have it giving this on output:

    python --version = Python 2.7.12

    ldconfig command = libpython2.7_dso.1.0 => /usr/lib/x86_64-linux-gnu/libpython2.7_d.sp.1.0

    It also has a few more, all now are python 2.7 links.

    I think my python is correct. I AM able to run BBSLink from the command line using Python. However, I now DO NOT get an error saying python not detected, but it will not run the python command line (which is correct.)It just
    returns with no errors.

    Any ideas?

    Thanks



    -Nugax

    --- Mystic BBS v1.12 A33 (Linux/64)
    * Origin: -=The ByteXchange BBS : bbs.thebytexchange.com=- (21:1/107)
  • From Nugax@21:1/107 to All on Thursday, May 18, 2017 15:08:36
    On 05/18/17, Nugax said the following...

    On 05/16/17, g00r00 said the following...

    I am running Ubuntu. Python 2.7 installed. I run BBSLink.py it s Python not detected (python error in mystic).

    Can you run "python --version" from a terminal to see if it says "Pyt 2.7" and then also take a look at the output of this command:

    ldconfig -p | grep libpython

    You should see a "libpython2.7.so.1.0" as a result. If you don't, we have to create a symlink to whatever file you have installed


    Well,

    I got it working, BBSLink that is, using the BASH script. Python worked
    always from the command line, but i never got it to work in Mystic.

    I was able to get MRC working, python and all, in Mystic and command line. So my python is working. I completely re-istalled.

    I still think something isnt right with Python and Linux/Mystic though.



    -Nugax

    --- Mystic BBS v1.12 A33 (Linux/64)
    * Origin: -=The ByteXchange BBS : bbs.thebytexchange.com=- (21:1/107)
  • From g00r00@21:1/108 to Nugax on Thursday, May 18, 2017 18:51:51
    You should see a "libpython2.7.so.1.0" as a result. If you don't, we have to create a symlink to whatever file you have installed

    ldconfig command = libpython2.7_dso.1.0 => /usr/lib/x86_64-linux-gnu/libpython2.7_d.sp.1.0

    It also has a few more, all now are python 2.7 links.

    Does it have to one I mentioned? It has to be exact otherwise you'll need to make a symolic link of your library to "libpython2.7.so.1.0"

    --- Mystic BBS v1.12 A34 (Windows/64)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)
  • From g00r00@21:1/108 to Nugax on Thursday, May 18, 2017 18:58:38
    I still think something isnt right with Python and Linux/Mystic though.

    Please see my last message to you with instructions to see if its not
    installed correctly. From what I am seeing its not.

    --- Mystic BBS v1.12 A34 (Windows/64)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)
  • From Nugax@21:1/107 to g00r00 on Saturday, May 20, 2017 08:11:34
    g00r00,

    Thanks for the help.

    I was able to get BBSLink working, but I never got Python module to work. I got it working but using the BASH script. I could connect using the command line and python but never through mystic. Not sure why. I re-installed all of python,
    and to answer your question, I did end up with the exact files i needed.

    I did not get the python error from mystic anymore. BBSLink never worked though from python.

    I know python worked, as I got MRC working through Mystic and python as well.

    But, at last, I was never able to call the python script, inside Mystic, and connect
    to the BBSLink server. Worked fine using bash.

    Not sure why.

    Thanks,


    g00r00 wrote to Nugax <=-

    I still think something isnt right with Python and Linux/Mystic though.

    Please see my last message to you with instructions to see if its not installed correctly. From what I am seeing its not.

    --- Mystic BBS v1.12 A34 (Windows/64)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)

    ... MultiMail, the new multi-platform, multi-format offline reader!
    ___ MultiMail/Linux v0.50

    --- Mystic BBS/QWK v1.12 A33 (Linux/64)
    * Origin: -=The ByteXchange BBS : bbs.thebytexchange.com=- (21:1/107)