1

I have installed pymindwave in the following directory:

C:\Python27\Lib\site-packages

However when I run another code which depends on it it says it can't find pymindwave. What's the solution?

enter image description here

Here's the first few lines of the code that gives the error:

#!/usr/bin/env python
# -*- coding:utf-8 -*-

import platform
import sys, time
from pymindwave import headset
import httplib, urllib, urllib2
import json

And I have taken the code and python_mindwave from these links.

P.S.: I am not a Windows person but MindWave doesn't get recognized in OSX so I am forcefully using Windows 8.1 enterprise edition!

Jaqueline Vanek
  • 1,100
  • 10
  • 20
Mona Jalal
  • 34,860
  • 64
  • 239
  • 408

1 Answers1

2

Try importing mindwave instead of pymindwave.

pushkin
  • 9,575
  • 15
  • 51
  • 95
  • When I do so, it says "ImportError: cannot import name headset" any idea what I should do? Thanks – Mona Jalal Dec 08 '15 at 23:09
  • Hey thank you that fixed that error but I wonder if you are looking at an API? Now it tells me no module named Bluetooth in bluetooth_headset.py is there a correct version of mindwave for python I should have download? – Mona Jalal Dec 08 '15 at 23:24
  • @MonaJalal I'm just looking at the Github link you posted. In there you will see a hierarchy: `python-mindwave/mindwave/bluetooth_headset.py`. That's how I knew. – pushkin Dec 08 '15 at 23:25
  • can you please take a look at here http://stackoverflow.com/questions/34168384/after-installing-pybluez-on-windows8-1-i-get-dll-1-not-valid-win32-app – Mona Jalal Dec 08 '15 at 23:57