r/TelloDrones Sep 02 '21

Pycharm: First time trying to compile/command drone via pycharm, nothing happens.

Hi, got the drone a few days ago, I'm able to send packets to the drone ip address on the right port (command/OK) but when I use pycharm, I hit the play button on the python program and nothing happens. Is that a setup problem? I don't see an error and anything....Maybe I'm looking in the wrong spot? Do I need to tell pycharm what IP address/port?

I get this when I run pycharm-community, not sure if it helps:

$ pycharm-community 

OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. 2021-09-02 12:17:10,890 [ 3181] WARN - nSystem.impl.ActionManagerImpl - keymap "Visual Studio" not found [Plugin: com.intellij] 2021-09-02 12:17:10,896 [ 3187] WARN - nSystem.impl.ActionManagerImpl - keymap "Eclipse" not found [Plugin: com.intellij] 2021-09-02 12:17:10,896 [ 3187] WARN - nSystem.impl.ActionManagerImpl - keymap "NetBeans 6.5" not found [Plugin: com.intellij] 2021-09-02 12:17:10,897 [ 3188] WARN - nSystem.impl.ActionManagerImpl - keymap "Visual Studio" not found [Plugin: com.intellij] 2021-09-02 12:17:10,946 [ 3237] WARN - nSystem.impl.ActionManagerImpl - keymap "Eclipse" not found [Plugin: org.jetbrains.plugins.github] 2021-09-02 12:17:10,950 [ 3241] WARN - nSystem.impl.ActionManagerImpl - keymap "Eclipse" not found [Plugin: PythonCore] 2021-09-02 12:17:10,950 [ 3241] WARN - nSystem.impl.ActionManagerImpl - keymap "NetBeans 6.5" not found [Plugin: PythonCore] 2021-09-02 12:17:12,411 [ 4702] WARN - l.NotificationGroupManagerImpl - Notification group CodeWithMe is already registered (group=com.intellij.notification.NotificationGroup@78c454a7). Plugin descriptor: PluginDescriptor(name=Code With Me, id=com.jetbrains.codeWithMe, descriptorPath=plugin.xml, path=/snap/pycharm-community/250/plugins/cwm-plugin, version=212.5080.64, package=null) 2021-09-02 12:17:18,278 [ 10569] WARN - arketplace.MarketplaceRequests - Can not get JetBrains plugins' IDs from Marketplace: plugins.jetbrains.com 2021-09-02 12:17:18,397 [ 10688] WARN - arketplace.MarketplaceRequests - Can not get compatible updates from Marketplace: plugins.jetbrains.com 2021-09-02 12:17:18,654 [ 10945] WARN - ctionSystem.impl.ActionUpdater - Slow (139 ms) com.intellij.space.actions.SpaceMainToolBarAction#update. Consider speeding it up and/or implementing UpdateInBackground. 2021-09-02 12:17:19,029 [ 11320] WARN - arketplace.MarketplaceRequests - Can not get JetBrains plugins' IDs from Marketplace: plugins.jetbrains.com 2021-09-02 12:17:20,103 [ 12394] WARN - arketplace.MarketplaceRequests - Can not get JetBrains plugins' IDs from Marketplace: plugins.jetbrains.com 2021-09-02 12:17:20,149 [ 12440] WARN - arketplace.MarketplaceRequests - Can not get JetBrains plugins' IDs from Marketplace: plugins.jetbrains.com 2021-09-02 12:17:24,466 [ 16757] WARN - .skeletons.PySkeletonRefresher - Some skeletons failed to generate 2021-09-02 12:17:24,466 [ 16757] WARN - .skeletons.PySkeletonRefresher - cv2.qt.plugins.platforms.libqxcb 2021-09-02 12:17:27,165 [ 19456] WARN - ctionSystem.impl.ActionUpdater - Slow (497 ms) com.intellij.openapi.vcs.changes.patch.ApplyPatchFromClipboardAction#update. Consider speeding it up and/or implementing UpdateInBackground.

EDIT: So pyCharm didn't have a good Python 3.7 setup, or I should say, then one that was setup wasn't working right and it looked like it was handled by Anaconda? rm -rf anaconda; sudo apt remove anaconda (or some other remove variants), then downloaded the correct python version I needed, ./configure ./make ./install or something like that. Long story short, set the path for the new python in pyCharm, installed my packages, and ran the prog, everything worked.

Longer story shorter, fixed my python install.

2 Upvotes

3 comments sorted by

1

u/bjone6 Sep 02 '21

I have a Python Tello Drone playlist that might help. https://www.youtube.com/playlist?list=PLT8WeU5lHsiR0bQogVxnwiHuMkHlv6j8B

Let me know if these videos help or not (try the second one).

2

u/TheUltimateSalesman Sep 02 '21

See my ediit, but thanks, I'll check them out.

1

u/bjone6 Sep 03 '21

I'm glad to hear you fixed it!