Re: Error with mimetype on OS-X 11 (Big Sur)
Chris Barker via Pythonmac-SIG <[email protected]> Thu, 6 Jan 2022 10:57:27 -0800
| Newsgroups | gmane.comp.python.apple |
|---|---|
| Message-ID | <CALGmxELHN_MO3VumnwYuWtdaCRaR2Ty1SvmQfE8-jv9zb93oVQ@mail.gmail.com> |
--===============2236544835842277293==
Content-Type: multipart/alternative; boundary="00000000000034919005d4ee73d7"
--00000000000034919005d4ee73d7
Content-Type: text/plain; charset="UTF-8"
OK,
I've gotten a bit farther into debugging this.
Turns out it's not about that particular error, it's probably about the
fact that modules couldn't be loaded at start up due to security checks in
the new OS.
We've signed the app but that's not fixing it :-(
Starting the app at the command line at least gets me output, and I see a
lot of errors like this:
File
"PyInstaller-3.4-py3.6.egg/PyInstaller/loader/pyiboot01_bootstrap.py", line
149, in __init__
File "ctypes/__init__.py", line 348, in __init__
OSError: dlopen(OpenGL, 10): no suitable image found. Did find:
file system relative paths not allowed in hardened programs
I am really confused as to how they could disallow relative paths -- how
else could you bundle a library?
though maybe it's a lib outside the bundle that's using relative paths ?
More digging needed, but if anyone has any ideas, I'm all ears.
Also:
- Has anyone gotten a PyInstaller App to work on OS-X 11 ?
- Even better, one that uses OpenGL?
Thanks,
-CHB
On Thu, Dec 16, 2021 at 11:21 AM Chris Barker <[email protected]> wrote:
> I've just got a new mac with OS-X 11.6 (still Intel).
>
> But when I try to run a PyInstaller built application, I get this error:
>
> No document available for {'mime': 'application/x-maproom-project-zip',
> 'loader': <maproom.loaders.project.ZipProjectLoader object at
> 0x7f9669ce6e10>, 'uri': 'template://default_project.maproom'}
>
> And the app won't start.
>
> This has worked just fine on numerous previous OS-X versions.
>
> I have the source code, but the developer that built it is no longer with
> us, so it'll take b e a bit to get up to speed, and I don't even know where
> to start! Is this a PyInstaller issue? or a code issue, or ???
>
> Hints:
>
> The application is called MapRoom (maproom) it works with "projects" that
> are essentially a zip file with all the info required in it.
>
> I think, on startup, it loads a empty default project, presumably
> "default_project.maproom"
>
> So I think that's where the app startup code is barfing, not having the
> mime type registered properly. But where / how am I supposed to do that?
>
> or maybe it's not a mime type registration issue, but simply that the
> template can't be found -- so a path issue in the App bundle??
>
> Anyway, I'll be digging into this deeper in the source code, but if anyone
> has seen anything like this, any hints would be appreciated!
>
> Thanks,
>
> -CHB
>
>
>
>
>
>
>
>
>
> --
>
> Christopher Barker, Ph.D.
> Oceanographer
>
> Emergency Response Division
> NOAA/NOS/OR&R (206) 526-6959 voice
> 7600 Sand Point Way NE (206) 526-6329 fax
> Seattle, WA 98115 (206) 526-6317 main reception
>
> [email protected]
>
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[email protected]
--00000000000034919005d4ee73d7
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">OK,<div><br></div><div>I've gotten=C2=A0a bit farther =
into debugging this.</div><div><br></div><div>Turns out it's not about =
that particular error, it's probably about the fact that modules couldn=
't be loaded at start up due to security checks in the new OS.</div><di=
v><br></div><div>We've signed the app but that's not fixing it :-(=
=C2=A0</div><div><br></div><div>Starting the app at the command line at lea=
st gets me output, and I see a lot of errors like this:</div><div><br></div=
><div><font face=3D"monospace">=C2=A0 File "PyInstaller-3.4-py3.6.egg/=
PyInstaller/loader/pyiboot01_bootstrap.py", line 149, in __init__<br>=
=C2=A0 File "ctypes/__init__.py", line 348, in __init__<br>OSErro=
r: dlopen(OpenGL, 10): no suitable image found.=C2=A0 Did find:<br>=C2=A0 =
=C2=A0 file system relative paths not allowed in hardened programs<br></fon=
t></div><div><br></div><div>I am really confused as to how they could disal=
low relative paths -- how else could you bundle a library?</div><div><br></=
div><div>though maybe it's a lib outside the bundle that's using re=
lative paths ?</div><div><br></div><div>More digging needed, but if anyone =
has any ideas, I'm all ears.</div><div><br></div><div>Also:</div><div><=
br></div><div>- Has anyone gotten a PyInstaller App to work on OS-X 11 ?</d=
iv><div><br></div><div>- Even better, one that uses OpenGL?</div><div><br><=
/div><div>Thanks,</div><div><br></div><div>-CHB</div><div><br></div><div><b=
r></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmai=
l_attr">On Thu, Dec 16, 2021 at 11:21 AM Chris Barker <<a href=3D"mailto=
:[email protected]" target=3D"_blank">[email protected]</a>> wro=
te:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px =
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"=
ltr">I've just=C2=A0got a new mac with OS-X 11.6 (still Intel).<div><br=
></div><div>But when I try to run a PyInstaller built application, I get th=
is error:</div><div><br></div><div>No document available for {'mime'=
;: 'application/x-maproom-project-zip', 'loader': <mapro=
om.loaders.project.ZipProjectLoader object at 0x7f9669ce6e10>, 'uri&=
#39;: 'template://default_project.maproom'}</div><div><br></div><di=
v>And the app won't start.</div><div><br></div><div>This has worked jus=
t=C2=A0fine on numerous previous OS-X versions.</div><div><br></div><div>I =
have the source code, but the developer that built it is no longer with us,=
so it'll take b e a bit to get up to speed, and I don't even know =
where to start! Is this a PyInstaller issue? or a code issue, or ???</div><=
div><br></div><div>Hints:</div><div><br></div><div>The application is calle=
d MapRoom (maproom) it works with "projects" that are essentially=
=C2=A0a zip file with all the info required in it.</div><div><br></div><div=
>I think, on startup, it loads a empty default project, presumably "de=
fault_project.maproom"</div><div><br></div><div>So I think that's =
where the app startup=C2=A0code is barfing, not having the mime type regist=
ered=C2=A0properly. But where / how am I supposed to do that?</div><div><br=
></div><div>or maybe it's not a mime type registration issue, but simpl=
y that the template can't be found -- so a path issue in the App bundle=
??</div><div><br></div><div>Anyway, I'll be digging into this deeper in=
the source code, but if anyone has seen anything like this, any hints woul=
d be appreciated!</div><div><br></div><div>Thanks,</div><div><br></div><div=
>-CHB</div><div><br></div><div><br></div><div><br></div><div><br></div><div=
><br></div><div><br></div><div><br></div><div>=C2=A0<br clear=3D"all"><div>=
<br></div>-- <br><div dir=3D"ltr"><br>Christopher Barker, Ph.D.<br>Oceanogr=
apher<br><br>Emergency Response Division<br>NOAA/NOS/OR&R =C2=A0 =C2=A0=
=C2=A0 =C2=A0 =C2=A0 =C2=A0(206) 526-6959=C2=A0=C2=A0 voice<br>7600 Sand P=
oint Way NE =C2=A0=C2=A0(206) 526-6329=C2=A0=C2=A0 fax<br>Seattle, WA =C2=
=A098115 =C2=A0 =C2=A0 =C2=A0=C2=A0(206) 526-6317=C2=A0=C2=A0 main receptio=
n<br><br><a href=3D"mailto:[email protected]" target=3D"_blank">Chris.B=
[email protected]</a></div></div></div>
</blockquote></div><br clear=3D"all"><div><br></div>-- <br><div dir=3D"ltr"=
><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response D=
ivision<br>NOAA/NOS/OR&R =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(206)=
526-6959=C2=A0=C2=A0 voice<br>7600 Sand Point Way NE =C2=A0=C2=A0(206) 526=
-6329=C2=A0=C2=A0 fax<br>Seattle, WA =C2=A098115 =C2=A0 =C2=A0 =C2=A0=C2=A0=
(206) 526-6317=C2=A0=C2=A0 main reception<br><br><a href=3D"mailto:Chris.Ba=
[email protected]" target=3D"_blank">[email protected]</a></div>
--00000000000034919005d4ee73d7--
--===============2236544835842277293==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Pythonmac-SIG maillist - [email protected]
https://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG
--===============2236544835842277293==--