Skip to content
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

ImportError: No module named IN #4

Closed
HamAndChris opened this issue Jan 11, 2019 · 1 comment
Closed

ImportError: No module named IN #4

HamAndChris opened this issue Jan 11, 2019 · 1 comment
Assignees
Labels

Comments

@HamAndChris
Copy link

HamAndChris commented Jan 11, 2019

Running this on Windows with 64-bit Anaconda 2.7, I get the following error message:

Traceback (most recent call last):
  File "connect.py", line 18, in <module>
    from tobiiglassesctrl.controller import TobiiGlassesController
  File "C:\ProgramData\Anaconda2\lib\site-packages\tobiiglassesctrl\controller.py", line 29, in <module>
    import IN
ImportError: No module named IN

It seems to be a somewhat common problem. The module is only used on line 110 (mksock) to import a constant, so it could easily be replaced with the numeric value which is 25.

try:
	if iptype == socket.AF_INET6 and sys.platform == "linux2":
		sock.setsockopt(socket.SOL_SOCKET, IN.SO_BINDTODEVICE, self.iface_name+'\0')
@ddetommaso ddetommaso self-assigned this Jan 14, 2019
@ddetommaso ddetommaso added the bug label Jan 14, 2019
@ddetommaso
Copy link
Owner

Hi @HamAndChris,

thank you for reporting this issue.
I modified the code to import the module IN only in linux systems, so it should work fine for you and other Windows systems as well.

Please download and check the updated version 2.0.2.

Best,

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

No branches or pull requests

2 participants