Hi folks, I'm trying to test a fresh venv-based install from this procedure:
https://docs.mailman3.org/en/latest/install/virtualenv.html
Platform is SmartOS (Solaris 11) with Python 3.10. The installation goes fine, but initial startup bombs with:
ImportError: cannot import name 'path' from 'importlib_resources' (/opt/mailman/venv/lib/python3.10/site-packages/importlib_resources/__init__.py)
I assume this is related to importlib_resources moving into stdlib at some point. Is there a reasonable way around this?
Thanks,
-Dave
-- Dave McGuire, AK4HZ New Kensington, PA
On 8/14/23 15:29, Dave McGuire wrote:
Hi folks, I'm trying to test a fresh venv-based install from this procedure:
https://docs.mailman3.org/en/latest/install/virtualenv.html
Platform is SmartOS (Solaris 11) with Python 3.10. The installation goes fine, but initial startup bombs with:
ImportError: cannot import name 'path' from 'importlib_resources' (/opt/mailman/venv/lib/python3.10/site-packages/importlib_resources/__init__.py)
I assume this is related to importlib_resources moving into stdlib at some point. Is there a reasonable way around this?
[yeah, yeah, I know, replying to my own mail]
I've worked out how to get past this. There may be a better way (I'd appreciate the info if so), but I found this:
https://gitlab.com/mailman/mailman/-/issues/1093
...and noted Mark's patch at the bottom. Of course that meant downloading the tarball, when I had wanted to do a nice clean install via pip. So, I downloaded the 3.3.8 tarball, extracted it, edited that line in setup.py, tarred it back up again, and did "pip install <tarball>" after installing the other dependencies (wheel and pymysql).
A bunch of other stuff blew up...it required the cryptography module, which in turn requires rust, which in turn requires a lot of swap. Oh, and pkg-config. I dealt with all of that, and mailman-core starts up, after complaining about not being able to find postmap. That program lives in /opt/local/sbin under SmartOS, so I've got to find out where to fix the paths, but first I'll see if I can get the front end built. (Remember, this is all a test; if I can get everything working smoothly and replicably I'll do it on the real server.)
On to the front-end..
-Dave
-- Dave McGuire, AK4HZ New Kensington, PA
On 8/14/23 5:18 PM, Dave McGuire wrote:
...and noted Mark's patch at the bottom. Of course that meant downloading the tarball, when I had wanted to do a nice clean install via pip. So, I downloaded the 3.3.8 tarball, extracted it, edited that line in setup.py, tarred it back up again, and did "pip install <tarball>" after installing the other dependencies (wheel and pymysql).
You could have just done
pip install importlib_resources>=1.1.0,<6.0
in your virtualenv.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Dave McGuire
-
Mark Sapiro