[PyInstaller] Re: pyinstaller and tablib

2021-12-17 Thread Samuli L
Sorry, my bad. 
Found the problem by myself. There were a typo in hidden imports

perjantai 17. joulukuuta 2021 klo 12.55.32 UTC+2 Samuli L kirjoitti:

> Hi everyone!
>
> I'm newbie with python, so I don't know every details yet.
> I've done an app that reads data from database and it should write datas 
> to excel by using tablib. It works on my development environment (pycharm)
>
> When wrapping it to exe and moving it to production (windows pc) (with 
> hidden-import 'openpyxl') everything goes ok, but when writing data to 
> execl (dic contains the datas)
>  with open(file, 'wb') as f:
> f.write(dic.export("xlsx"))
>
> No module named 'tablib.formats._xlsx'
>
> How to add that module to the exe.
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/098a35bf-f0c9-4b9a-a2e9-9629d6224c2cn%40googlegroups.com.


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

2021-12-17 Thread 'Chris Barker' via PyInstaller
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': , '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



On Thu, Dec 16, 2021 at 11:35 AM Chris Barker  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':  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(206) 526-6959   voice
> 7600 Sand Point Way NE   (206) 526-6329   fax
> Seattle, WA  98115   (206) 526-6317   main reception
>
> chris.bar...@noaa.gov
>


-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR(206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

chris.bar...@noaa.gov

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/CALGmxEK31BxL9%3D79NccNVHTTHhsQPcdz9gpN9U52zMcQg2SPog%40mail.gmail.com.


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

2021-12-17 Thread 'Chris Barker' via PyInstaller
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': , '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(206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

chris.bar...@noaa.gov

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/CALGmxEJB14GUJ4icoTAwL6vqE63LVwTOjk5RNHpTVHiv%3DAeCwA%40mail.gmail.com.


[PyInstaller] Error with finding files in bundle on OS-X 11 (Big Sur)

2021-12-17 Thread 'Chris Barker - NOAA Federal' via PyInstaller
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': , '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.

On startup, it tries to load an empty default project: 
"default_project.maproom"

Looking in the app bundle, the template is in:

MapRoom.app/Contents/Resources/maproom/templates/default_project.maproom

so I think what's changed is the root for the uri it's using:

 'uri': 'template://default_project.maproom'

As the bundle is exactly the same the newer version of the OS must be doing 
something different with the current working dir, or ???

Another maybe relevant point: this is a wxPython project, so may be using 
some wx magic to find files in the bundle ???

Thanks for any hints,

-CHB


-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/a1026ff1-add7-4baf-a8ca-452738d48fb5n%40googlegroups.com.


[PyInstaller] pyinstaller and tablib

2021-12-17 Thread Samuli L
Hi everyone!

I'm newbie with python, so I don't know every details yet.
I've done an app that reads data from database and it should write datas to 
excel by using tablib. It works on my development environment (pycharm)

When wrapping it to exe and moving it to production (windows pc) (with 
hidden-import 'openpyxl') everything goes ok, but when writing data to 
execl (dic contains the datas)
 with open(file, 'wb') as f:
f.write(dic.export("xlsx"))

No module named 'tablib.formats._xlsx'

How to add that module to the exe.

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/76b9059c-9cb8-4431-b76e-bb1934991266n%40googlegroups.com.