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

Can't install device_detector from pip #7

Closed
AlexeyPetroff opened this issue Sep 26, 2018 · 0 comments
Closed

Can't install device_detector from pip #7

AlexeyPetroff opened this issue Sep 26, 2018 · 0 comments

Comments

@AlexeyPetroff
Copy link
Contributor

  Using cached https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz
Obtaining device-detector from git+git://github.com/AlexeyPetroff/device_detector.git@aea8e5d2033eb02389c014692e73a36e74994ab7#egg=device-detector (from -r rrrr.txt (line 2))
  Cloning git://github.com/AlexeyPetroff/device_detector.git (to revision aea8e5d2033eb02389c014692e73a36e74994ab7) to /home/al/venv/proj/project/srcdevice-detector
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/al/venv/proj/project/srcdevice-detector/setup.py", line 5, in <module>
        import device_detector
      File "/home/al/venv/proj/project/srcdevice-detector/device_detector/__init__.py", line 3, in <module>
        from .parser import *
      File "/home/al/venv/proj/project/srcdevice-detector/device_detector/parser/__init__.py", line 1, in <module>
        from .client import *
      File "/home/al/venv/proj/project/srcdevice-detector/device_detector/parser/client/__init__.py", line 1, in <module>
        from .base import *
      File "/home/al/venv/proj/project/srcdevice-detector/device_detector/parser/client/base.py", line 1, in <module>
        from ..parser import Parser
      File "/home/al/venv/proj/project/srcdevice-detector/device_detector/parser/parser.py", line 5, in <module>
        import yaml
    ModuleNotFoundError: No module named 'yaml'
    
    ----------------------------------------

From what I see the problem is that you are trying to import version from a file, where other imports are executed and they import pyYAML prematurely.

AlexeyPetroff pushed a commit to AlexeyPetroff/device_detector that referenced this issue Sep 26, 2018
AlexeyPetroff pushed a commit to AlexeyPetroff/device_detector that referenced this issue Sep 26, 2018
AlexeyPetroff pushed a commit to AlexeyPetroff/device_detector that referenced this issue Sep 26, 2018
AlexeyPetroff pushed a commit to AlexeyPetroff/device_detector that referenced this issue Sep 26, 2018
AlexeyPetroff pushed a commit to AlexeyPetroff/device_detector that referenced this issue Sep 26, 2018
AlexeyPetroff pushed a commit to AlexeyPetroff/device_detector that referenced this issue Sep 26, 2018
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