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

ModuleNotFoundError: No module named 'defaults #13

Open
arkangel-dev opened this issue Jun 7, 2019 · 2 comments
Open

ModuleNotFoundError: No module named 'defaults #13

arkangel-dev opened this issue Jun 7, 2019 · 2 comments

Comments

@arkangel-dev
Copy link

Cannot import defaults

Keeps throwing this error

C:\Users\Central>webcam-streamer
-----------------------------------------------
--------------- webcam-streamer ---------------
-----------------------------------------------
webcam-streamer: Checking requirements...
webcam-streamer: Reading config...
Traceback (most recent call last):
  File "c:\users\central\appdata\local\programs\python\python37-32\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\central\appdata\local\programs\python\python37-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Central\AppData\Local\Programs\Python\Python37-32\Scripts\webcam-streamer.exe\__main__.py", line 9, in <module>
  File "c:\users\central\appdata\local\programs\python\python37-32\lib\site-packages\webcamstreamer\launcher.py", line 38, in main
    from .streamer.defaults import defaults
  File "c:\users\central\appdata\local\programs\python\python37-32\lib\site-packages\webcamstreamer\streamer\__init__.py", line 23, in <module>
    from defaults import defaults
ModuleNotFoundError: No module named 'defaults'```

@DomicidalDesigns
Copy link

DomicidalDesigns commented Nov 19, 2019

@arkangel-dev
I believe this is due to using Python3 rather than Python2. In Python3 you can no longer do:

from defaults import defaults

it now has to be

from .defaults import defaults

Try installing/running with python 2.

Edit: Gunicorn is only designed for Linux so this won't work on Windows anyway.

@arkangel-dev
Copy link
Author

Thanks. Will check that out soon

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

2 participants