pebble-slides icon indicating copy to clipboard operation
pebble-slides copied to clipboard

"Missing dependency, could not import this module: pyHook"

Open JVimes opened this issue 10 years ago • 14 comments

When installing the requirements I get the error, "Missing dependency, could not import this module: pyHook". After entering IP and Port into the phone app and restarting the watch app, watch doesn't control slides.

Manually installed pyHook from the official installer and reinstalled the requirements (no error this time) but the app still didn't seem to work. Uninstalled and reinstalled requirements, still no effect.

Phone was on same WiFi network as computer. Using PowerPoint on Windows 8.1, Active Python 2.7 (tried 32 and 64-bit).

Let me know if I can help debug.

JVimes avatar Mar 08 '14 05:03 JVimes

What was the output in your computer after running the Slides server?

luisivan avatar Mar 10 '14 18:03 luisivan

It said "Pebble Slides started. Your address <IP Address>:

Where <IP Address> is the IP address and is as it says, a random number.

onlinedyer avatar Mar 10 '14 19:03 onlinedyer

It said "Pebble Slides started. Your address : ipaddress:random number

Where "ipaddress" is the IP address and "random number" is as it says, a random number.

onlinedyer avatar Mar 10 '14 19:03 onlinedyer

I just realized your question was not for me, but for JVimes

Hopefully you can help me too.

onlinedyer avatar Mar 10 '14 19:03 onlinedyer

It did the same for me as for onlinedyer. It gave an ip and port number and that was it. It looked like it was running.

JVimes avatar Mar 12 '14 22:03 JVimes

Any guidance you can give would be greatly appreciated. I'm anxious to get this working. Would love to get a "that's cool" response when I give my presentation next week.

onlinedyer avatar Mar 14 '14 01:03 onlinedyer

Are your PC and your phone on the same IP?

luisivan avatar Mar 14 '14 20:03 luisivan

Different network IP addresses.

But you may have pointed me in a good direction. The IP address shown is for the wrong network adapter (not my WiFi card). I disabled all network adapters except the WiFi card and it still didn't work.

I looked in a debugger and the Server object seems to be using IP address 0.0.0.0: 2014-03-14_16h37_20

I tried passing my WiFi IP address into the first parameter of make_server(...) and it showed up in the debugger, but still didn't work.

Server.py is not launching PowerPoint (I saw "Command Line : powerpoint" in the interpreter output in PyScripter), so I'm launching manually.

Does the script just hit arrow keys to change slides, or is it using a PowerPoint hook?

Let me know if there's anything else I can try on my end. I'm a developer, but haven't used Python or its APIs before.

JVimes avatar Mar 14 '14 22:03 JVimes

I tried pinging my iPhone address from the laptop to see if could communicate and it pinged fine.

onlinedyer avatar Mar 14 '14 23:03 onlinedyer

The script just triggers the arrow keys. It's been like 5 years since I last used Windows for development, so I'm not quite sure of what to say

luisivan avatar Mar 18 '14 11:03 luisivan

Well, this is GitHub. Maybe a Windows dev will have some time one of these days. Thanks for a bit of your time, luisivan.

JVimes avatar Mar 19 '14 00:03 JVimes

I hope so! You're welcome :)

luisivan avatar Mar 22 '14 11:03 luisivan

Should we leave this open until someone fixes it?

JVimes avatar Mar 22 '14 16:03 JVimes

Ok, yeah, I don't know if this is happening to other Windows users but anyway

luisivan avatar Mar 22 '14 16:03 luisivan