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

10 views
Skip to first unread message

Chris Barker

unread,
Dec 17, 2021, 5:56:53 AM12/17/21
to pyins...@googlegroups.com
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'm not sure what version of PyInstaller was used, but it was built in May 2019.

I have the source code, but the developer that built it is no longer with us, so it'll take me 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 tries to load an 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

Chris....@noaa.gov

Chris Barker

unread,
Dec 17, 2021, 5:57:02 AM12/17/21
to pyins...@googlegroups.com
Another hint:

I found the default_project.maproom template in:

MapRoom.app/Contents/Resources/maproom/templates

So maybe it's simply a.matter of getting that on the search path somehow. But how?

Here's the error again:

No document available for {'mime': 'application/x-maproom-project-zip', 'loader': <maproom.loaders.project.ZipProjectLoader object at 0x7f9669ce6e10>, 'uri': 'template://default_project.maproom'}

so how do I set the root dir for that uri? what is it now? how can I tell?

-CHB
Reply all
Reply to author
Forward
0 new messages