Value out of range error when pushing a snap to the store

Bug #1737959 reported by Martin Wimpress 
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

I am attempting to upload a snap to the store using Ubuntu 18.04 daily which results in a ValueError traceback. This issue affects snapcraft 2.34+17.10 from the archive and all currently published versions of snapcraft from the snap store:

  stable: 2.35 (794) 53MB classic
  candidate: ↑
  beta: 2.37 (924) 53MB classic
  edge: 2.37+git3.1a7a4f7 (938) 53MB classic

This is how I'm attempting to upload the ~170MB snap.

    snapcraft push thing_v0.19.113_amd64.snap --release edge

Here is the traceback:

Traceback (most recent call last):
  File "/usr/bin/snapcraft", line 11, in <module>
    load_entry_point('snapcraft==2.34+17.10', 'console_scripts', 'snapcraft')()
  File "/home/martin/.local/lib/python3.6/site-packages/pkg_resources/", line 570, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/home/martin/.local/lib/python3.6/site-packages/pkg_resources/", line 2751, in load_entry_point
    return ep.load()
  File "/home/martin/.local/lib/python3.6/site-packages/pkg_resources/", line 2405, in load
    return self.resolve()
  File "/home/martin/.local/lib/python3.6/site-packages/pkg_resources/", line 2411, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/snapcraft/cli/", line 19, in <module>
  File "/usr/lib/python3/dist-packages/click/", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/snapcraft/cli/", line 118, in push
    snapcraft.push(snap_file, channel_list)
  File "/usr/lib/python3/dist-packages/snapcraft/", line 423, in push
    result = _push_snap(snap_name, snap_filename)
  File "/usr/lib/python3/dist-packages/snapcraft/", line 444, in _push_snap
    result = tracker.track()
  File "/usr/lib/python3/dist-packages/snapcraft/storeapi/", line 808, in track
  File "/home/martin/.local/lib/python3.6/site-packages/progressbar/", line 497, in update
    % (self.min_value, self.max_value))
ValueError: Value out of range, should be between 0 and 100

Revision history for this message
Martin Wimpress  (flexiondotorg) wrote :

I had pip installed `progressbar3` which was available in ~/.local/lib. snapcraft is a classic snaps and therefore was picking up the pip installed version which causes this issues. Removing the pip install progressbar3 resolves the issue.

summary: - Value out of range error when push a snap to the store
+ Value out of range error when pushing a snap to the store
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.