Another Q: Was trying to install Dagster on anoth...
# announcements
j
Another Q: Was trying to install Dagster on another machine, followed the guide on the site, got the following message after
pip install dagster dagit
Copy code
ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/m_/wf6sq5_d3xx7x1gd5b2xpfwm0000gn/T/pip-install-191_6L/dagster/setup.py'"'"'; __file__='"'"'/private/var/folders/m_/wf6sq5_d3xx7x1gd5b2xpfwm0000gn/T/pip-install-191_6L/dagster/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
         cwd: /private/var/folders/m_/wf6sq5_d3xx7x1gd5b2xpfwm0000gn/T/pip-install-191_6L/dagster/
    Complete output (3 lines):
    /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
      warnings.warn(msg)
    error in dagster setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected ',' or end-of-list in pathlib2>=2.3.4; python_version<"3" at ; python_version<"3"
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
What am I doing wrong here?
m
What version of python is running on that machine?
python --version
Also, what version of pip?
pip --version
?
j
Figured it out -- had to back up to 0.5.7!
pip install dagster==0.5.7
@max python --version = Python 2.7.10 pip --version = pip 19.2.3 from /Library/Python/2.7/site-packages/pip-19.2.3-py2.7.egg/pip (python 2.7)
1
m
can i see the whole stacktrace you got? i can install using
pip install dagster
on python 2.7.15 and pip 19.2.3
j
Copy code
(dagster) Johns-MacBook-Pro:dagster_learning johnstory$ pip install dagster==0.5.9 --user
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at <https://pip.pypa.io/en/latest/development/release-process/#python-2-support>
Collecting dagster==0.5.9
  Using cached <https://files.pythonhosted.org/packages/11/97/7981c7d7e21875bed99b2934cc71424d8b59273b6f9b66aecb2d31c8b31f/dagster-0.5.9.tar.gz>
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/m_/wf6sq5_d3xx7x1gd5b2xpfwm0000gn/T/pip-install-WqGG5F/dagster/setup.py'"'"'; __file__='"'"'/private/var/folders/m_/wf6sq5_d3xx7x1gd5b2xpfwm0000gn/T/pip-install-WqGG5F/dagster/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
         cwd: /private/var/folders/m_/wf6sq5_d3xx7x1gd5b2xpfwm0000gn/T/pip-install-WqGG5F/dagster/
    Complete output (3 lines):
    /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
      warnings.warn(msg)
    error in dagster setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected ',' or end-of-list in pathlib2>=2.3.4; python_version<"3" at ; python_version<"3"
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
m
very strange, my best guess is this is an old version of distutils or setuptools and that this would be resolved by running
pip install -U pip distutils setuptools
j
I'll look into it. Hitting that pip command returned the same error on the install retry.