PyInstaller does not include the kivy.garden.mapview package.What is the workaround?












0















  • Python Version: 3.6.7(Anaconda Environment)

  • Kivy Version: 1.10.1


So I installed mapview with the command garden install mapview and my python file easily detects it and runs it.But when I make exe with PyInstaller it showed the following error ModuleNotFoundError: No module named garden.mapview



I somehow found a solution to install all garden things by adding --kivy in the end.



I used matplotlib of garden with command garden install matplotlib --kivy and it works after making exe with PyInstaller using method shown here kivy Page for making exe



But when I installed mapview with the command garden install mapview --kivy which makes it appear in site-packages of my Anaconda Environment, it shows following error- ModuleNotFoundError: No module named 'mapview.types'



So it seems like adding --kivy improved the situation but didn't completely solved it.
So how to do it? Any workaounds will also be appreciated.



For more clarity mapview's directory(in site-packages of my environment) contains another mapview folder which have a file types.py



I know it will be a bad practice but can I copy the whole code of mapview package line by line and paste it in my python file and use it's functions and classes directly? and yes by editing lines like import blah from blah.










share|improve this question






















  • The documentation says to use garden install --app package.
    – John Anderson
    yesterday










  • @JohnAnderson garden install --app package does not work either.
    – 5cube
    yesterday
















0















  • Python Version: 3.6.7(Anaconda Environment)

  • Kivy Version: 1.10.1


So I installed mapview with the command garden install mapview and my python file easily detects it and runs it.But when I make exe with PyInstaller it showed the following error ModuleNotFoundError: No module named garden.mapview



I somehow found a solution to install all garden things by adding --kivy in the end.



I used matplotlib of garden with command garden install matplotlib --kivy and it works after making exe with PyInstaller using method shown here kivy Page for making exe



But when I installed mapview with the command garden install mapview --kivy which makes it appear in site-packages of my Anaconda Environment, it shows following error- ModuleNotFoundError: No module named 'mapview.types'



So it seems like adding --kivy improved the situation but didn't completely solved it.
So how to do it? Any workaounds will also be appreciated.



For more clarity mapview's directory(in site-packages of my environment) contains another mapview folder which have a file types.py



I know it will be a bad practice but can I copy the whole code of mapview package line by line and paste it in my python file and use it's functions and classes directly? and yes by editing lines like import blah from blah.










share|improve this question






















  • The documentation says to use garden install --app package.
    – John Anderson
    yesterday










  • @JohnAnderson garden install --app package does not work either.
    – 5cube
    yesterday














0












0








0








  • Python Version: 3.6.7(Anaconda Environment)

  • Kivy Version: 1.10.1


So I installed mapview with the command garden install mapview and my python file easily detects it and runs it.But when I make exe with PyInstaller it showed the following error ModuleNotFoundError: No module named garden.mapview



I somehow found a solution to install all garden things by adding --kivy in the end.



I used matplotlib of garden with command garden install matplotlib --kivy and it works after making exe with PyInstaller using method shown here kivy Page for making exe



But when I installed mapview with the command garden install mapview --kivy which makes it appear in site-packages of my Anaconda Environment, it shows following error- ModuleNotFoundError: No module named 'mapview.types'



So it seems like adding --kivy improved the situation but didn't completely solved it.
So how to do it? Any workaounds will also be appreciated.



For more clarity mapview's directory(in site-packages of my environment) contains another mapview folder which have a file types.py



I know it will be a bad practice but can I copy the whole code of mapview package line by line and paste it in my python file and use it's functions and classes directly? and yes by editing lines like import blah from blah.










share|improve this question














  • Python Version: 3.6.7(Anaconda Environment)

  • Kivy Version: 1.10.1


So I installed mapview with the command garden install mapview and my python file easily detects it and runs it.But when I make exe with PyInstaller it showed the following error ModuleNotFoundError: No module named garden.mapview



I somehow found a solution to install all garden things by adding --kivy in the end.



I used matplotlib of garden with command garden install matplotlib --kivy and it works after making exe with PyInstaller using method shown here kivy Page for making exe



But when I installed mapview with the command garden install mapview --kivy which makes it appear in site-packages of my Anaconda Environment, it shows following error- ModuleNotFoundError: No module named 'mapview.types'



So it seems like adding --kivy improved the situation but didn't completely solved it.
So how to do it? Any workaounds will also be appreciated.



For more clarity mapview's directory(in site-packages of my environment) contains another mapview folder which have a file types.py



I know it will be a bad practice but can I copy the whole code of mapview package line by line and paste it in my python file and use it's functions and classes directly? and yes by editing lines like import blah from blah.







python package kivy site-packages






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked yesterday









5cube

84




84












  • The documentation says to use garden install --app package.
    – John Anderson
    yesterday










  • @JohnAnderson garden install --app package does not work either.
    – 5cube
    yesterday


















  • The documentation says to use garden install --app package.
    – John Anderson
    yesterday










  • @JohnAnderson garden install --app package does not work either.
    – 5cube
    yesterday
















The documentation says to use garden install --app package.
– John Anderson
yesterday




The documentation says to use garden install --app package.
– John Anderson
yesterday












@JohnAnderson garden install --app package does not work either.
– 5cube
yesterday




@JohnAnderson garden install --app package does not work either.
– 5cube
yesterday

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53944397%2fpyinstaller-does-not-include-the-kivy-garden-mapview-package-what-is-the-workaro%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53944397%2fpyinstaller-does-not-include-the-kivy-garden-mapview-package-what-is-the-workaro%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Monofisismo

Angular Downloading a file using contenturl with Basic Authentication

Olmecas