building seamonkey - python setup - imp module

Riccardo Mottola riccardo.mottola at libero.it
Tue Sep 10 20:02:06 UTC 2024


Hi,

I would like to try to build SeaMonkey on 10.9 Mavericks. A decent browser and a good email client. Officially not supported on 10.9, but it works on 10.11, so I have some hope it can be convinced to run. Maybe some of you want to help?

Biggest issue is getting it to run. Latest version requires python3 and also somehow wants an internal python?

$ MACH_USE_SYSTEM_PYTHON=1 ./mach build

should convince it to use system python, which should be python3, so almost easier as the legacy python2.7 for ArcticFox and similar.

I did use python select and so now I have:

$ python3 --version
Python 3.12.6

but when I run I get:
/Users/multix/code/seamonkey-2.53.19/./mach:12: SyntaxWarning: invalid escape sequence '\ '
  ''':'
Traceback (most recent call last):
  File "/Users/multix/code/seamonkey-2.53.19/./mach", line 270, in <module>
    main(sys.argv[1:])
  File "/Users/multix/code/seamonkey-2.53.19/./mach", line 262, in main
    mach = get_mach()
           ^^^^^^^^^^
  File "/Users/multix/code/seamonkey-2.53.19/./mach", line 252, in get_mach
    mach = check_and_get_mach(dir_path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/multix/code/seamonkey-2.53.19/./mach", line 208, in check_and_get_mach
    return load_mach(dir_path, mach_path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/multix/code/seamonkey-2.53.19/./mach", line 196, in load_mach
    return mach_bootstrap.bootstrap(dir_path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/multix/code/seamonkey-2.53.19/build/mach_bootstrap.py", line 189, in bootstrap
    import mach.main
  File "/Users/multix/code/seamonkey-2.53.19/python/mach/mach/main.py", line 13, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'

I understand it is not finding module “imp”. I wonder if my python 3.12 misses some module to isntall? any python expert here?

Riccardo

-- 
Sent with GNUMail on MacBook Pro running Mavericks



More information about the macports-users mailing list