Skip to content

Python2/3 on El Capitain 10.11.6 #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
khofstadter opened this issue Jul 4, 2018 · 0 comments
Open

Python2/3 on El Capitain 10.11.6 #80

khofstadter opened this issue Jul 4, 2018 · 0 comments

Comments

@khofstadter
Copy link

hello!

I am trying to run both, test_log.py and user.py in Python 2 and 3 on El Capitain, but have some issues :)

As far as I can tell all dependencies are installed and the same list is posted with pip list and pip3 list

Package          Version  
---------------- ---------
certifi          2018.4.16
chardet          3.0.4    
idna             2.7      
numpy            1.14.5   
pip              10.0.1   
pylsl            1.10.5   
pyserial         3.4      
python-osc       1.6.8    
requests         2.19.1   
setuptools       39.2.0   
six              1.11.0   
socketIO-client  0.7.2    
urllib3          1.23     
websocket-client 0.48.0   
wheel            0.31.1   
xmltodict        0.11.0   
Yapsy            1.11.223 

Some dependencies have higher versions than required and I hope this is OK.
Is this normal than Python 2 and 3 use the same library of dependencies?

When I run which pip I get this:
/Library/Frameworks/Python.framework/Versions/3.6/bin/pip

user.py errors:

When I run python user.py -p /dev/tty.OpenBCI-DM00DRM0 I get this:

Traceback (most recent call last):
  File "user.py", line 12, in <module>
    from yapsy.PluginManager import PluginManager
ImportError: No module named yapsy.PluginManager

When I run the python3 version of this, python3 user.py -p /dev/tty.OpenBCI-DM00DRM0 , I get this:

------------user.py-------------
WARNING: no plugin selected, you will only be able to communicate with the board. You should select at least one plugin with '--add [plugin_name]'. Use '--list' to show available plugins or '--info [plugin_name]' to get more information.
Board type: OpenBCI Cyton (v3 API)
Port:  /dev/tty.OpenBCI-DM00DRM0

------------SETTINGS-------------
Notch filtering:True
user.py: Logging Disabled.

-------INSTANTIATING BOARD-------
Traceback (most recent call last):
  File "user.py", line 114, in <module>
    board = bci.OpenBCIGanglion(port=args.port,
AttributeError: module 'openbci.cyton' has no attribute 'OpenBCIGanglion'

test_log.py

When I run python test_log.py I get this:

Traceback (most recent call last):
  File "test_log.py", line 2, in <module>
    from openbci import cyton as bci
  File "/Users/tedor2/Dropbox/python/OpenBCI/OpenBCI_Python-master/openbci/__init__.py", line 4, in <module>
    from .plugins import *
  File "/Users/tedor2/Dropbox/python/OpenBCI/OpenBCI_Python-master/openbci/plugins/__init__.py", line 2, in <module>
    from .csv_collect import *
  File "/Users/tedor2/Dropbox/python/OpenBCI/OpenBCI_Python-master/openbci/plugins/csv_collect.py", line 5, in <module>
    import plugin_interface as plugintypes
  File "/Users/tedor2/Dropbox/python/OpenBCI/OpenBCI_Python-master/plugin_interface.py", line 21, in <module>
    from yapsy.IPlugin import IPlugin
ImportError: No module named yapsy.IPlugin

When running python3 test_log.py, here the post:

Connecting to V3 at port /dev/tty.OpenBCI-DM00DRM0
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/serial/serialposix.py", line 265, in open
    self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/tty.OpenBCI-DM00DRM0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "test_log.py", line 21, in <module>
    board = bci.OpenBCICyton(port=port, scaled_output=False, log=True)
  File "/Users/tedor2/Dropbox/python/OpenBCI/OpenBCI_Python-master/openbci/cyton.py", line 82, in __init__
    self.ser = serial.Serial(port= port, baudrate = baud, timeout=timeout)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/serial/serialutil.py", line 240, in __init__
    self.open()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/serial/serialposix.py", line 268, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/tty.OpenBCI-DM00DRM0: [Errno 2] No such file or directory: '/dev/tty.OpenBCI-DM00DRM0'

Any recommendations?

Thanks, k

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant