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

Fix ./setup develop #27

Closed
dmpop opened this issue Feb 26, 2017 · 0 comments
Closed

Fix ./setup develop #27

dmpop opened this issue Feb 26, 2017 · 0 comments
Assignees
Labels

Comments

@dmpop
Copy link
Owner

dmpop commented Feb 26, 2017

./setup develop throws the following error:

running develop
running egg_info
creating src/sonnenhut.egg-info
writing src/sonnenhut.egg-info/PKG-INFO
writing dependency_links to src/sonnenhut.egg-info/dependency_links.txt
writing requirements to src/sonnenhut.egg-info/requires.txt
writing top-level names to src/sonnenhut.egg-info/top_level.txt
writing manifest file 'src/sonnenhut.egg-info/SOURCES.txt'
reading manifest file 'src/sonnenhut.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'travis_requirements.txt'
warning: no previously-included files matching '*.py[cod]' found anywhere in distribution
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.dylib' found anywhere in distribution
no previously-included directories found matching 'docs/build'
writing manifest file 'src/sonnenhut.egg-info/SOURCES.txt'
running build_ext
Creating /home/dmpop/GitHub/sonnenhut/.env/lib/python3.6/site-packages/sonnenhut.egg-link (link to src)
Adding sonnenhut 1.3.0 to easy-install.pth file
Installing sonnenhut script to /home/dmpop/GitHub/sonnenhut/.env/bin

Installed /home/dmpop/GitHub/sonnenhut/src
Processing dependencies for sonnenhut==1.3.0
Searching for bottle
Reading https://pypi.python.org/simple/bottle/
Downloading https://pypi.python.org/packages/bd/99/04dc59ced52a8261ee0f965a8968717a255ea84a36013e527944dbf3468c/bottle-0.12.13.tar.gz#md5=d2fe1b48c1d49217e78bf326b1cad437
Best match: bottle 0.12.13
Processing bottle-0.12.13.tar.gz
Writing /tmp/easy_install-3_wx506k/bottle-0.12.13/setup.cfg
Running bottle-0.12.13/setup.py -q bdist_egg --dist-dir /tmp/easy_install-3_wx506k/bottle-0.12.13/egg-dist-tmp-clgxhxab
warning: no files found matching 'LICENSE.txt'
zip_safe flag not set; analyzing archive contents...
__pycache__.bottle.cpython-36: module references __file__
creating /home/dmpop/GitHub/sonnenhut/.env/lib/python3.6/site-packages/bottle-0.12.13-py3.6.egg
Extracting bottle-0.12.13-py3.6.egg to /home/dmpop/GitHub/sonnenhut/.env/lib/python3.6/site-packages
Adding bottle 0.12.13 to easy-install.pth file
Installing bottle.py script to /home/dmpop/GitHub/sonnenhut/.env/bin

Installed /home/dmpop/GitHub/sonnenhut/.env/lib/python3.6/site-packages/bottle-0.12.13-py3.6.egg
Searching for pyowm
Reading https://pypi.python.org/simple/pyowm/
Downloading https://pypi.python.org/packages/c3/5a/69f178e564b5dbf1440d40be12fb6f308344ea4de240469bd11387f97a51/pyowm-2.6.1-py3.6.egg#md5=d19738c8d8c5fc90c0ab2263c4c3e887
Best match: pyowm 2.6.1
Processing pyowm-2.6.1-py3.6.egg
Moving pyowm-2.6.1-py3.6.egg to /home/dmpop/GitHub/sonnenhut/.env/lib/python3.6/site-packages
Adding pyowm 2.6.1 to easy-install.pth file

Installed /home/dmpop/GitHub/sonnenhut/.env/lib/python3.6/site-packages/pyowm-2.6.1-py3.6.egg
Searching for pytz
Reading https://pypi.python.org/simple/pytz/
Downloading https://pypi.python.org/packages/d0/e1/aca6ef73a7bd322a7fc73fd99631ee3454d4fc67dc2bee463e2adf6bb3d3/pytz-2016.10.tar.bz2#md5=88b1d6c50c764579292edce3493c8a3a
Best match: pytz 2016.10
Processing pytz-2016.10.tar.bz2
Writing /tmp/easy_install-x41yc84w/pytz-2016.10/setup.cfg
Running pytz-2016.10/setup.py -q bdist_egg --dist-dir /tmp/easy_install-x41yc84w/pytz-2016.10/egg-dist-tmp-615juk2m
Moving pytz-2016.10-py3.6.egg to /home/dmpop/GitHub/sonnenhut/.env/lib/python3.6/site-packages
Adding pytz 2016.10 to easy-install.pth file

Installed /home/dmpop/GitHub/sonnenhut/.env/lib/python3.6/site-packages/pytz-2016.10-py3.6.egg
Searching for astral
Reading https://pypi.python.org/simple/astral/
Downloading https://pypi.python.org/packages/a4/d6/c309f266677372964c6002a56a7bec2a90875338a71325e20b24d6d1e187/astral-1.4.zip#md5=140499d213a234cb216e6b7fe36ee3c7
Best match: astral 1.4
Processing astral-1.4.zip
Writing /tmp/easy_install-feq_2yav/astral-1.4/setup.cfg
Running astral-1.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-feq_2yav/astral-1.4/egg-dist-tmp-1g9iwiv8
Traceback (most recent call last):
  File "src/astral.py", line 75, in <module>
ModuleNotFoundError: No module named 'pytz'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/sandbox.py", line 157, in save_modules
    yield saved
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/sandbox.py", line 198, in setup_context
    yield
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/sandbox.py", line 255, in run_setup
    DirectorySandbox(setup_dir).run(runner)
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/sandbox.py", line 285, in run
    return func()
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/sandbox.py", line 253, in runner
    _execfile(setup_script, ns)
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/sandbox.py", line 47, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-feq_2yav/astral-1.4/setup.py", line 11, in <module>
    :rtype: list
  File "src/astral.py", line 77, in <module>
ImportError: The astral module requires the pytz module to be available.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./setup.py", line 38, in <module>
    'Topic :: Utilities'],
  File "/usr/lib64/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib64/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/command/develop.py", line 36, in run
    self.install_for_development()
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/command/develop.py", line 150, in install_for_development
    self.process_distribution(None, self.dist, not self.no_deps)
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/command/easy_install.py", line 747, in process_distribution
    [requirement], self.local_index, self.easy_install
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 851, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 1123, in best_match
    return self.obtain(req, installer)
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 1135, in obtain
    return installer(requirement)
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/command/easy_install.py", line 674, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/command/easy_install.py", line 700, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/command/easy_install.py", line 881, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/command/easy_install.py", line 1120, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/command/easy_install.py", line 1106, in run_setup
    run_setup(setup_script, args)
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/sandbox.py", line 258, in run_setup
    raise
  File "/usr/lib64/python3.6/contextlib.py", line 100, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/sandbox.py", line 198, in setup_context
    yield
  File "/usr/lib64/python3.6/contextlib.py", line 100, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/sandbox.py", line 169, in save_modules
    saved_exc.resume()
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/sandbox.py", line 144, in resume
    six.reraise(type, exc, self._tb)
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/sandbox.py", line 157, in save_modules
    yield saved
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/sandbox.py", line 198, in setup_context
    yield
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/sandbox.py", line 255, in run_setup
    DirectorySandbox(setup_dir).run(runner)
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/sandbox.py", line 285, in run
    return func()
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/sandbox.py", line 253, in runner
    _execfile(setup_script, ns)
  File "/home/dmpop/GitHub/sonnenhut/.env/lib64/python3.6/site-packages/setuptools/sandbox.py", line 47, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-feq_2yav/astral-1.4/setup.py", line 11, in <module>
    :rtype: list
  File "src/astral.py", line 77, in <module>
ImportError: The astral module requires the pytz module to be available.

Running the command again fixes the issue

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