Nice to see you active again. Welcome back, trust things are going well for you.
I tried out Ubuntu Server 18.04 instead, which has Python 3.x out of the box, but not 2.7. I compiled 2.7.16 per the wiki instruxtions and ran ldconfig. Lo and behold, it worked perfectly! I was able to run the interbbs oneliner script without issue.
I may do some more testing with Debian, and will report back if I have
any luck.
I don't know anything about python but I wonder if the scripts can be changed to work with the current version of python being deployed?
Seriously, I thought the version you compile against is libpython 2.7
and it should make no difference if you have libpython 2.7.13 or 2.7.16 installed.
I don't know anything about python but I wonder if the scripts can be changed to work with the current version of python being deployed?
Python 3 is an entirely different language than Python 2, its not compatible.
I haven't tested all possible combinations yesterday. Today I tried
Python 2.7.16 compiled from source on Ubuntu 18.04 and indeed it works fine. But it gets even funnier: on Ubuntu 19.04 I had no success at all with any version. Something else is going on. Maybe it is related to the gcc version or to some library that is used by Python. I have no idea.
Thanks for the additional info - good to know at what point it's
crashing out. It has now been solid for me on Ubuntu Server 18.04 with
the packaged version of python 2.7.15. I wonder if there is the
potential for g00r00 to implement a fix for this to make is less
dependent on specific python builds etc. It doesn't appear to be due to the "enable shared" compiling option as was originally suspected.
Yep, agreed. Seems Debian and Ubuntu 18.04 have enable-shared on by default in their packaged based python implementations anyhow.
Seriously, I thought the version you compile against is libpython
2.7 and it should make no difference if you have libpython 2.7.13
or 2.7.16 installed.
This is true. Any 2.7 version released in the last X (X being a long
time that I am unsure of exactly without researching) should work
fine.
The issue only is that the operating systems that come with 2.7 by
default seem to often compile it with the ability to embed it
disabled. This makes it not worth no only with Mythic, but lots of
other applications that use a Python subsystem. I don't know why the operating systems do this, I've seen plenty of people complaining
about it over the years.
Yep, agreed. Seems Debian and Ubuntu 18.04 have enable-shared on
by default in their packaged based python implementations anyhow.
From my experience this is not true. The defaults were absolutely not compiled that way, at least not at the time I had tested (which was
the final 18 LTS).
I have sent my comments to Avon who I think will share them with you but
I am never far away and can give comments or help with testing / discovering if that would help in any way.
I haven't tested all possible combinations yesterday. Today I
tried Python 2.7.16 compiled from source on Ubuntu 18.04 and
indeed it works fine. But it gets even funnier: on Ubuntu 19.04 I
had no success at all with any version. Something else is going
on. Maybe it is related to the gcc version or to some library
that is used by Python. I have no idea.
Did you read the wiki on mysticbbs.com by chance? Its not just the enabled_shared option its also the character encoding that may
different from system to system. I wonder if that could be factor in
any of this?
Things have been pretty hectic for me lately but I am still very slowly working on things. I've been meaning to dial out for a while now I just never seem to get around to having a big enough window of time that I
feel should be spent trying to catch up on 6 months of messages :)
I am sure he will pass them along! I haven't had time to get my BBS
back up and see where I am with that, so Avon may be waiting for me to
get more organized to share what he has collected, assuming he has collected things :)
On 10-25-19 20:54, g00r00 wrote to Avon <=-
Nice to see you active again. Welcome back, trust things are going well for you.
Things have been pretty hectic for me lately but I am still very slowly working on things. I've been meaning to dial out for a while now I
just never seem to get around to having a big enough window of time
that I feel should be spent trying to catch up on 6 months of messages
:)
I am sure he will pass them along! I haven't had time to get my BBS
As the wiki notes, there are two issues (that I found anyway) that can cause issues one is the shared option and the other is the codepage the RTL is compiled using or something like that, it has to match the operating system.
Its also possible there is a bug of course, but I have very much
struggled to find issues with the actual Mystic functions. In theory if it works in Windows it should work in Linux assuming whatever environmental requirements are met.
From my experience this is not true. The defaults were absolutely not compiled that way, at least not at the time I had tested (which was the final 18 LTS).
[1]import sysconfig
sysconfig.get_config_vars('Py_ENABLE_SHARED')
problemsFrom my experience this is not true. The defaults were absolutely not
compiled that way, at least not at the time I had tested (which was the
final 18 LTS).
Interesting - I wonder if this is because I'm using Amazon EC2 AMIs instead of the usual ISO based images. Here is the output from my BBS VM with the OOTB version of 2.7.15:
Python 2.7.15+ (default, Oct 7 2019, 17:39:04)
[GCC 7.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
[1]import sysconfig
sysconfig.get_config_vars('Py_ENABLE_SHARED')
I'll see if I can check this with Debian 9/10, which was giving the
earlier as well.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 764 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 07:43:42 |
| Calls: | 12,752 |
| Calls today: | 6 |
| Files: | 15,355 |
| Messages: | 6,556,532 |