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

prosper_version forgets version on reinstall #15

Closed
lockefox opened this issue Nov 3, 2017 · 2 comments
Closed

prosper_version forgets version on reinstall #15

lockefox opened this issue Nov 3, 2017 · 2 comments

Comments

@lockefox
Copy link
Contributor

lockefox commented Nov 3, 2017

Though prosper_version tools work fine for clean installs, reinstall causes issues. Git checking is causing problems in dependent Travis jobs where it looks up the "current running version" rather than version.txt

Running ProsperCommon-1.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-fokg7r3h/ProsperCommon-1.1.1/egg-dist-tmp-wx98dp8f
package init file 'prosper/__init__.py' not found (or not a regular file)
zip_safe flag not set; analyzing archive contents...
prosper.common.__pycache__._version.cpython-35: module references __file__
prosper.common.__pycache__.prosper_config.cpython-35: module references __file__
prosper.common.__pycache__.prosper_logging.cpython-35: module references __file__
creating /home/travis/build/EVEprosper/ProsperBots/.eggs/ProsperCommon-0.1.0-py3.5.egg
Extracting ProsperCommon-0.1.0-py3.5.egg to /home/travis/build/EVEprosper/ProsperBots/.eggs
Installed /home/travis/build/EVEprosper/ProsperBots/.eggs/ProsperCommon-0.1.0-py3.5.egg
Traceback (most recent call last):
  File "setup.py", line 165, in <module>
    'fast': QuickTest
  File "/opt/python/3.5.3/lib/python3.5/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/opt/python/3.5.3/lib/python3.5/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/opt/python/3.5.3/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/setuptools/command/test.py", line 203, in run
    installed_dists = self.install_dists(self.distribution)
  File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/setuptools/command/test.py", line 194, in install_dists
    ir_d = dist.fetch_build_eggs(dist.install_requires)
  File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/setuptools/dist.py", line 446, in fetch_build_eggs
    replace_conflicting=True,
  File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/pkg_resources/__init__.py", line 858, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'ProsperCommon~=1.1.1' distribution was not found and is required by the application
@lockefox
Copy link
Contributor Author

lockefox commented Nov 3, 2017

maybe add something like

if 'site-packages' in HERE:
    version = file_version

@lockefox
Copy link
Contributor Author

lockefox commented Nov 8, 2017

Fixed in v1.1.2

@lockefox lockefox closed this as completed Nov 8, 2017
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