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

Ronald Oussoren via Pythonmac-SIG <[email protected]> Thu, 16 Dec 2021 20:56:49 +0100
Newsgroups gmane.comp.python.apple
Message-ID <[email protected]>
--===============4282532652388719226==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_53717100-208A-4F35-B941-32EAC76777F4"


--Apple-Mail=_53717100-208A-4F35-B941-32EAC76777F4
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8



> On 16 Dec 2021, at 20:21, Chris Barker via Pythonmac-SIG =
<[email protected]> wrote:
>=20
> I've just got a new mac with OS-X 11.6 (still Intel).
>=20
> But when I try to run a PyInstaller built application, I get this =
error:
>=20
> No document available for {'mime': =
'application/x-maproom-project-zip', 'loader': =
<maproom.loaders.project.ZipProjectLoader object at 0x7f9669ce6e10>, =
'uri': 'template://default_project.maproom'}
>=20
> And the app won't start.
>=20
> This has worked just fine on numerous previous OS-X versions.
>=20
> 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 =
???
>=20
> Hints:
>=20
> The application is called MapRoom (maproom) it works with "projects" =
that are essentially a zip file with all the info required in it.
>=20
> I think, on startup, it loads a empty default project, presumably =
"default_project.maproom"
>=20
> 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?
>=20
> 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??
>=20
> 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!

I=E2=80=99m afraid you=E2=80=99ll have to dig in.   The error message =
seems to indicate that mime type itself works, there is a (non-standard) =
mime type in the error message.

Does running the application from the terminal give you more clues?

How is the application normally installed, it is just an app or does it =
use an installer that may install more files? I=E2=80=99ve had issues in =
the past when copying an app bundle to a new machine and forgetting to =
copy some resource files that weren=E2=80=99t in the app bundle.

Ronald

>=20
> Thanks,
>=20
> -CHB
>=20
>=20
>=20
>=20
>=20
>=20
>=20
> =20
>=20
> --=20
>=20
> Christopher Barker, Ph.D.
> Oceanographer
>=20
> 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
>=20
> [email protected] =
<mailto:[email protected]>____________________________________________=
___
> Pythonmac-SIG maillist  -  [email protected]
> https://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG

=E2=80=94

Twitter / micro.blog: @ronaldoussoren
Blog: https://blog.ronaldoussoren.net/


--Apple-Mail=_53717100-208A-4F35-B941-32EAC76777F4
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><br =
class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 16 Dec 2021, at 20:21, Chris Barker via Pythonmac-SIG =
&lt;<a href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" =
class=3D"">I've just&nbsp;got a new mac with OS-X 11.6 (still =
Intel).<div class=3D""><br class=3D""></div><div class=3D"">But when I =
try to run a PyInstaller built application, I get this error:</div><div =
class=3D""><br class=3D""></div><div class=3D"">No document available =
for {'mime': 'application/x-maproom-project-zip', 'loader': =
&lt;maproom.loaders.project.ZipProjectLoader object at =
0x7f9669ce6e10&gt;, 'uri': '<a href=3D"template://default_project.maproom"=
 class=3D"">template://default_project.maproom</a>'}</div><div =
class=3D""><br class=3D""></div><div class=3D"">And the app won't =
start.</div><div class=3D""><br class=3D""></div><div class=3D"">This =
has worked just&nbsp;fine on numerous previous OS-X versions.</div><div =
class=3D""><br class=3D""></div><div class=3D"">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></div></blockquote><blockquote type=3D"cite" =
class=3D""><div class=3D""><div dir=3D"ltr" class=3D""><div class=3D""><br=
 class=3D""></div><div class=3D"">Hints:</div><div class=3D""><br =
class=3D""></div><div class=3D"">The application is called MapRoom =
(maproom) it works with "projects" that are essentially&nbsp;a zip file =
with all the info required in it.</div><div class=3D""><br =
class=3D""></div><div class=3D"">I think, on startup, it loads a empty =
default project, presumably "default_project.maproom"</div><div =
class=3D""><br class=3D""></div><div class=3D"">So I think that's where =
the app startup&nbsp;code is barfing, not having the mime type =
registered&nbsp;properly. But where / how am I supposed to do =
that?</div><div class=3D""><br class=3D""></div><div class=3D"">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??</div><div =
class=3D""><br class=3D""></div><div class=3D"">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!</div></div></div></blockquote><div><br class=3D""></div>I=E2=80=
=99m afraid you=E2=80=99ll have to dig in. &nbsp; The error message =
seems to indicate that mime type itself works, there is a (non-standard) =
mime type in the error message.</div><div><br class=3D""></div><div>Does =
running the application from the terminal give you more =
clues?</div><div><br class=3D""></div><div>How is the application =
normally installed, it is just an app or does it use an installer that =
may install more files? I=E2=80=99ve had issues in the past when copying =
an app bundle to a new machine and forgetting to copy some resource =
files that weren=E2=80=99t in the app bundle.</div><div><br =
class=3D""></div><div>Ronald</div><div><br =
class=3D""></div><div><blockquote type=3D"cite" class=3D""><div =
class=3D""><div dir=3D"ltr" class=3D""><div class=3D""><br =
class=3D""></div><div class=3D"">Thanks,</div><div class=3D""><br =
class=3D""></div><div class=3D"">-CHB</div><div class=3D""><br =
class=3D""></div><div class=3D""><br class=3D""></div><div class=3D""><br =
class=3D""></div><div class=3D""><br class=3D""></div><div class=3D""><br =
class=3D""></div><div class=3D""><br class=3D""></div><div class=3D""><br =
class=3D""></div><div class=3D"">&nbsp;<br clear=3D"all" class=3D""><div =
class=3D""><br class=3D""></div>-- <br class=3D""><div dir=3D"ltr" =
class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><br =
class=3D"">Christopher Barker, Ph.D.<br class=3D"">Oceanographer<br =
class=3D""><br class=3D"">Emergency Response Division<br =
class=3D"">NOAA/NOS/OR&amp;R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;(206) 526-6959&nbsp;&nbsp; voice<br class=3D"">7600 Sand Point Way =
NE &nbsp;&nbsp;(206) 526-6329&nbsp;&nbsp; fax<br class=3D"">Seattle, WA =
&nbsp;98115 &nbsp; &nbsp; &nbsp;&nbsp;(206) 526-6317&nbsp;&nbsp; main =
reception<br class=3D""><br class=3D""><a =
href=3D"mailto:[email protected]" target=3D"_blank" =
class=3D"">[email protected]</a></div></div></div>
_______________________________________________<br =
class=3D"">Pythonmac-SIG maillist &nbsp;- &nbsp;<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a><br class=3D""><a =
href=3D"https://mail.python.org/mailman/listinfo/pythonmac-sig" =
class=3D"">https://mail.python.org/mailman/listinfo/pythonmac-sig</a><br =
class=3D"">unsubscribe: =
https://mail.python.org/mailman/options/Pythonmac-SIG<br =
class=3D""></div></blockquote></div><br class=3D""><div class=3D"">
<div dir=3D"auto" style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; line-break: after-white-space;" class=3D""><div =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;">=E2=80=94</div><div style=3D"caret-color: rgb(0, 0, 0); color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant-caps: normal; font-weight: normal; letter-spacing: =
normal; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><br class=3D""></div><div style=3D"caret-color: =
rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;">Twitter / =
micro.blog: @ronaldoussoren</div><div style=3D"caret-color: rgb(0, 0, =
0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;">Blog: <a =
href=3D"https://blog.ronaldoussoren.net/" =
class=3D"">https://blog.ronaldoussoren.net/</a></div></div>
</div>
<br class=3D""></body></html>=

--Apple-Mail=_53717100-208A-4F35-B941-32EAC76777F4--

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

--===============4282532652388719226==--