Error with mimetype on OS-X 11 (Big Sur)

Chris Barker via Pythonmac-SIG <[email protected]> Thu, 16 Dec 2021 11:21:49 -0800
Newsgroups gmane.comp.python.apple
Message-ID <CALGmxEKu-iskL8G0gN9kwxLG=xK8dK9DEYXicVKtY9ZJti-gtQ@mail.gmail.com>
--===============7722356285559991389==
Content-Type: multipart/alternative; boundary="000000000000ac819805d348575d"

--000000000000ac819805d348575d
Content-Type: text/plain; charset="UTF-8"

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]

--000000000000ac819805d348575d
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I&#39;ve just=C2=A0got a new mac with OS-X 11.6 (still Int=
el).<div><br></div><div>But when I try to run a PyInstaller built applicati=
on, I get this error:</div><div><br></div><div>No document available for {&=
#39;mime&#39;: &#39;application/x-maproom-project-zip&#39;, &#39;loader&#39=
;: &lt;maproom.loaders.project.ZipProjectLoader object at 0x7f9669ce6e10&gt=
;, &#39;uri&#39;: &#39;template://default_project.maproom&#39;}</div><div><=
br></div><div>And the app won&#39;t start.</div><div><br></div><div>This ha=
s worked just=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 lon=
ger with us, so it&#39;ll take b e a bit to get up to speed, and I don&#39;=
t even know where to start! Is this a PyInstaller issue? or a code issue, o=
r ???</div><div><br></div><div>Hints:</div><div><br></div><div>The applicat=
ion is called MapRoom (maproom) it works with &quot;projects&quot; that are=
 essentially=C2=A0a zip file with all the info required in it.</div><div><b=
r></div><div>I think, on startup, it loads a empty default project, presuma=
bly &quot;default_project.maproom&quot;</div><div><br></div><div>So I think=
 that&#39;s where the app startup=C2=A0code is barfing, not having the mime=
 type registered=C2=A0properly. But where / how am I supposed to do that?</=
div><div><br></div><div>or maybe it&#39;s not a mime type registration issu=
e, but simply that the template can&#39;t be found -- so a path issue in th=
e App bundle??</div><div><br></div><div>Anyway, I&#39;ll be digging into th=
is deeper in the source code, but if anyone has seen anything like this, an=
y hints would be appreciated!</div><div><br></div><div>Thanks,</div><div><b=
r></div><div>-CHB</div><div><br></div><div><br></div><div><br></div><div><b=
r></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" class=3D"gmail_signature" d=
ata-smartmail=3D"gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanogr=
apher<br><br>Emergency Response Division<br>NOAA/NOS/OR&amp;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>

--000000000000ac819805d348575d--

--===============7722356285559991389==
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

--===============7722356285559991389==--