Emotiv / cortex-example

Example with Cortex V2/V3 API
https://emotiv.com
MIT License
194 stars 113 forks source link

ModuleNotFoundError: No module named 'lib.cortex' #172

Closed rmwvamp closed 2 years ago

rmwvamp commented 2 years ago

I executed the following code `import asyncio import time import sys import os import threading from pynput import keyboard from pynput.mouse import Button, Controller from lib.cortex import Cortex from datetime import datetime

mouse = Controller() terminated = False`

I have installed pypnut, web sockets, websocket-client,cortex-cli,cortex,cortex2

bchaperon commented 2 years ago

Hi @rmwvamp

I suppose it should be from cortex import Cortex instead of from lib.cortex import Cortex.

rmwvamp commented 2 years ago

On doing the same. It shows the following error: C:\Users\User>python -u "c:\Users\User\Desktop\experiment\main.py" Traceback (most recent call last): File "c:\Users\User\Desktop\experiment\main.py", line 8, in from cortex import Cortex ImportError: cannot import name 'Cortex' from 'cortex' (C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\cortex__init__.py)