Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • O Onionperf
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 19
    • Issues 19
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Network Health
  • Metrics
  • Onionperf
  • Issues
  • #34352
Closed
Open
Created May 30, 2020 by Ana Custura@acute🚀Maintainer

Bump OP version in setup.py

I ran into a weird bug where installing the latest OP on a system that already has an installation from a version prior to commit de26da3 results in the following error message:

$ onionperf
Traceback (most recent call last):
  File "/usr/local/bin/onionperf", line 4, in <module>
    __import__('pkg_resources').run_script('OnionPerf==0.2rc0', 'onionperf')
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 667, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1452, in run_script
    raise ResolutionError(
pkg_resources.ResolutionError: Script 'scripts/onionperf' not found in metadata at None

It looks like setuptools is renaming the OnionPerf version from 0.2.pre (as it is currently specified in setup.py) to 0.2rc0 when installing, and they somehow conflict. I've tested this can be solved by bumping the version to 0.3 in setup.py (patch attached).

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking