geemap package not being included in pyinstaller

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

geemap package not being included in pyinstaller

Olivier H.
I am trying to use pyinstaller to compile a script, but no matter what I do I cannot get it to be included. The package in question is geemap

The package is an import in my script, but is not included. I also tried using a --hiddenimport but it was still not included.

Really hope someone can help out! :)

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/5854f75b-1814-4539-9b9e-3754d0619f6bn%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: geemap package not being included in pyinstaller

bwoodsend

Sounds like you’re just mixing up virtual environments. Try running from a terminal:

python your-code.py

and (note case-sensitive):

python -m PyInstaller your-code.py

Either the 1st one should fail with ModuleNotFoundError: geemap, in which case either pip install geemap into your current environment or track down and activate the virtual environment that geemap is already installed in.
Or the 2nd one should fail with python: No module named PyInstaller, in which case PyInstaller is not installed in this environment and you should pip install pyinstaller.

On Tuesday, May 4, 2021 at 5:06:35 PM UTC+1 Olivier H. wrote:
I am trying to use pyinstaller to compile a script, but no matter what I do I cannot get it to be included. The package in question is geemap

The package is an import in my script, but is not included. I also tried using a --hiddenimport but it was still not included.

Really hope someone can help out! :)

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/e36b0d5c-4c0d-48cc-9eb3-0006a05ce940n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: geemap package not being included in pyinstaller

Olivier H.
I am avoiding virtual environments. I have geemap installed in my global environment, and I run PyInstaller from there! 

But I need this to work on a PC without a geemap installation.

After running PyInstaller, I pip uninstall geemap and then run the executable. But I then get the geemap import error, even though the package should be included in the executable setup by PyInstaller, correct?


On Tuesday, 4 May 2021 at 19:40:25 UTC+2 bwoodsend wrote:

Sounds like you’re just mixing up virtual environments. Try running from a terminal:

python your-code.py

and (note case-sensitive):

python -m PyInstaller your-code.py

Either the 1st one should fail with ModuleNotFoundError: geemap, in which case either pip install geemap into your current environment or track down and activate the virtual environment that geemap is already installed in.
Or the 2nd one should fail with python: No module named PyInstaller, in which case PyInstaller is not installed in this environment and you should pip install pyinstaller.

On Tuesday, May 4, 2021 at 5:06:35 PM UTC+1 Olivier H. wrote:
I am trying to use pyinstaller to compile a script, but no matter what I do I cannot get it to be included. The package in question is geemap

The package is an import in my script, but is not included. I also tried using a --hiddenimport but it was still not included.

Really hope someone can help out! :)

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/db7f23a3-c6e8-4d1e-b486-f9749b9375c8n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: geemap package not being included in pyinstaller

bwoodsend
> I am avoiding virtual environments. I have geemap installed in my global environment, and I run PyInstaller from there!

Can you check that by running the commands I gave you? A lot of people think that they are using the global environment but don't realize that PyCharm/conda/umpteen other editors create virtual environments for you by default.

And yes, PyInstaller will include geemap if its available when it builds the executable. The fact that geemap wasn't included indicates that it couldn't find it during setup.

On Wednesday, May 5, 2021 at 9:00:35 AM UTC+1 Olivier H. wrote:
I am avoiding virtual environments. I have geemap installed in my global environment, and I run PyInstaller from there! 

But I need this to work on a PC without a geemap installation.

After running PyInstaller, I pip uninstall geemap and then run the executable. But I then get the geemap import error, even though the package should be included in the executable setup by PyInstaller, correct?


On Tuesday, 4 May 2021 at 19:40:25 UTC+2 bwoodsend wrote:

Sounds like you’re just mixing up virtual environments. Try running from a terminal:

python your-code.py

and (note case-sensitive):

python -m PyInstaller your-code.py

Either the 1st one should fail with ModuleNotFoundError: geemap, in which case either pip install geemap into your current environment or track down and activate the virtual environment that geemap is already installed in.
Or the 2nd one should fail with python: No module named PyInstaller, in which case PyInstaller is not installed in this environment and you should pip install pyinstaller.

On Tuesday, May 4, 2021 at 5:06:35 PM UTC+1 Olivier H. wrote:
I am trying to use pyinstaller to compile a script, but no matter what I do I cannot get it to be included. The package in question is geemap

The package is an import in my script, but is not included. I also tried using a --hiddenimport but it was still not included.

Really hope someone can help out! :)

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/5b18bae5-199d-4b53-855c-a6e8c3331a70n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: geemap package not being included in pyinstaller

Olivier H.
Running your commands shows no errors for either. I tried running PyInstaller from a custom geemap Anaconda environment, but still geemap is not packaged when running PyInstaller. No clue what is going on!

On Wednesday, 5 May 2021 at 11:19:00 UTC+2 bwoodsend wrote:
> I am avoiding virtual environments. I have geemap installed in my global environment, and I run PyInstaller from there!

Can you check that by running the commands I gave you? A lot of people think that they are using the global environment but don't realize that PyCharm/conda/umpteen other editors create virtual environments for you by default.

And yes, PyInstaller will include geemap if its available when it builds the executable. The fact that geemap wasn't included indicates that it couldn't find it during setup.

On Wednesday, May 5, 2021 at 9:00:35 AM UTC+1 Olivier H. wrote:
I am avoiding virtual environments. I have geemap installed in my global environment, and I run PyInstaller from there! 

But I need this to work on a PC without a geemap installation.

After running PyInstaller, I pip uninstall geemap and then run the executable. But I then get the geemap import error, even though the package should be included in the executable setup by PyInstaller, correct?


On Tuesday, 4 May 2021 at 19:40:25 UTC+2 bwoodsend wrote:

Sounds like you’re just mixing up virtual environments. Try running from a terminal:

python your-code.py

and (note case-sensitive):

python -m PyInstaller your-code.py

Either the 1st one should fail with ModuleNotFoundError: geemap, in which case either pip install geemap into your current environment or track down and activate the virtual environment that geemap is already installed in.
Or the 2nd one should fail with python: No module named PyInstaller, in which case PyInstaller is not installed in this environment and you should pip install pyinstaller.

On Tuesday, May 4, 2021 at 5:06:35 PM UTC+1 Olivier H. wrote:
I am trying to use pyinstaller to compile a script, but no matter what I do I cannot get it to be included. The package in question is geemap

The package is an import in my script, but is not included. I also tried using a --hiddenimport but it was still not included.

Really hope someone can help out! :)

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/999dd822-a39a-478d-a334-2c75d6cce159n%40googlegroups.com.