<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi,<br></div><div><br></div><div>The wheels at <a href="https://pypi.org/project/mapscript/">https://pypi.org/project/mapscript/</a> are only available for Windows [1]. There is also a source distribution, but it would also require the MapServer soource and dependencies to build. <br></div><div><br></div><div>Universal Wheels for Linux would only be possible by using manylinux [2], but I've not been able to compile MapServer with this. <br></div><div>For other options (including creating your own Linux Wheels for your MapServer builds that can be installed in a virtual environment) see the sections "Installation on Unix" and "Building the Mapscript Module" at <a href="https://pypi.org/project/mapscript/">https://pypi.org/project/mapscript/</a></div><div><br></div><div>Seth<br></div><div><br></div><div><br></div><div>[1] <a href="https://pypi.org/project/mapscript/#files">https://pypi.org/project/mapscript/#files</a><br></div><div>[2] <a href="https://github.com/pypa/manylinux">https://github.com/pypa/manylinux</a></div><div id="sig62266145"><div class="signature">--<br></div><div class="signature">web:<a href="https://geographika.net">https://geographika.net</a><br></div><div class="signature">twitter: @geographika<br></div></div><div><br></div><div><br></div><div>On Thu, Apr 14, 2022, at 10:39 AM, Marco Beri wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="ltr"><div class="qt-gmail_default" style="font-family:arial, sans-serif;font-size:small;">Dear Mapserver Users,<br></div><div class="qt-gmail_quote"><div dir="ltr"><div class="qt-gmail_quote"><div dir="ltr"><div style="font-family:arial, sans-serif;font-size:small;">I was not able to find a way to open an issue with this project <a href="https://pypi.org/project/mapscript/7.6.0/" target="_blank">https://pypi.org/project/mapscript/7.6.0/</a><br></div><div style="font-family:arial, sans-serif;font-size:small;"><br></div><div style="font-family:arial, sans-serif;font-size:small;"><div style="font-family:arial, sans-serif;font-size:small;">If you try to import the current mapserver module with Python 3 version major than 3.6 (which already reached his end of life) you encounter this error:<br></div><div style="font-family:arial, sans-serif;font-size:small;"><br></div></div></div></div><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:40px;border-top-color:currentcolor;border-top-style:none;border-top-width:medium;border-right-color:currentcolor;border-right-style:none;border-right-width:medium;border-bottom-color:currentcolor;border-bottom-style:none;border-bottom-width:medium;border-left-color:currentcolor;border-left-style:none;border-left-width:medium;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;"><div class="qt-gmail_quote"><div dir="ltr"><div style="font-family:arial, sans-serif;font-size:small;"><div style="font-family:arial, sans-serif;font-size:small;">ImportError: cannot import name '_mapscript' from partially initialized module 'mapscript' (most likely due to a circular import) <br></div></div></div></div></blockquote><div class="qt-gmail_quote"><div dir="ltr"><div style="font-family:arial, sans-serif;font-size:small;"><div style="font-family:arial, sans-serif;font-size:small;"><br></div></div><div style="font-family:arial, sans-serif;font-size:small;">Would you help me find a way to open a ticket or to do a pull request or whatever is the best way to help <span class="qt-gmail_default" style=""><span class="font" style="font-family:arial, sans-serif;"><span class="size" style="font-size:small;">the developers to</span></span></span> fix this problem?<br></div><div style="font-family:arial, sans-serif;font-size:small;"><div><br></div><div>Thanks a lot.<br></div></div><div style="font-family:arial, sans-serif;font-size:small;"><br></div><div style="font-family:arial, sans-serif;font-size:small;"><div>Ciao.<br></div><div>Marco.<br></div></div><div style="font-family:arial, sans-serif;font-size:small;">P.S. You can easily reproduce it with these 3 <span class="qt-gmail_default" style=""><span class="font" style="font-family:arial, sans-serif;"><span class="size" style="font-size:small;">simple </span></span></span>steps<span class="qt-gmail_default" style=""><span class="font" style="font-family:arial, sans-serif;"><span class="size" style="font-size:small;"> (and a Python version 3.8 or greater)</span></span></span>:<br></div><div style="font-family:arial, sans-serif;font-size:small;"><br></div><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:40px;border-top-color:currentcolor;border-top-style:none;border-top-width:medium;border-right-color:currentcolor;border-right-style:none;border-right-width:medium;border-bottom-color:currentcolor;border-bottom-style:none;border-bottom-width:medium;border-left-color:currentcolor;border-left-style:none;border-left-width:medium;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;"><div style="font-size:small;"><span class="font" style="font-family:monospace;">pip install mapscript</span><br></div><div style="font-size:small;"><span class="font" style="font-family:monospace;">python</span><br></div><div style="font-size:small;"><span class="font" style="font-family:monospace;">>>> <span style="background-color:rgb(255, 255, 0);">import mapscript</span></span><br></div><div style="font-size:small;"><span class="font" style="font-family:monospace;">Traceback (most recent call last):</span><br></div><div style="font-size:small;"><span class="font" style="font-family:monospace;"> File "<stdin>", line 1, in <module></span><br></div><div style="font-size:small;"><span class="font" style="font-family:monospace;"> File "/home/marcob/.virtualenvs/mapscript/lib/python3.9/site-packages/mapscript/__init__.py", line 2, in <module></span><br></div><div style="font-size:small;"><span class="font" style="font-family:monospace;"> from .mapscript import *</span><br></div><div style="font-size:small;"><span class="font" style="font-family:monospace;"> File "/home/marcob/.virtualenvs/mapscript/lib/python3.9/site-packages/mapscript/mapscript.py", line 13, in <module></span><br></div><div style="font-size:small;"><span class="font" style="font-family:monospace;"> from . import _mapscript</span><br></div><div style="font-size:small;"><span class="font" style="font-family:monospace;">ImportError: cannot import name '_mapscript' from partially initialized module 'mapscript' (most likely due to a circular import) (/home/marcob/.virtualenvs/mapscript/lib/python3.9/site-packages/mapscript/__init__.py)</span><br></div><div style="font-size:small;"><span class="font" style="font-family:monospace;">>>> </span><br></div></blockquote></div></div></div></div></div><div>_______________________________________________<br></div><div>MapServer-users mailing list<br></div><div><a href="mailto:MapServer-users@lists.osgeo.org">MapServer-users@lists.osgeo.org</a><br></div><div><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></div><div><br></div></blockquote><div><br></div></body></html>