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

Bug #1737959 reported by Martin Wimpress 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

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/__init__.py", 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/__init__.py", line 2751, in load_entry_point
    return ep.load()
  File "/home/martin/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2405, in load
    return self.resolve()
  File "/home/martin/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2411, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/snapcraft/cli/__main__.py", line 19, in <module>
    run(prog_name='snapcraft')
  File "/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/snapcraft/cli/store.py", line 118, in push
    snapcraft.push(snap_file, channel_list)
  File "/usr/lib/python3/dist-packages/snapcraft/_store.py", line 423, in push
    result = _push_snap(snap_name, snap_filename)
  File "/usr/lib/python3/dist-packages/snapcraft/_store.py", line 444, in _push_snap
    result = tracker.track()
  File "/usr/lib/python3/dist-packages/snapcraft/storeapi/__init__.py", line 808, in track
    progress_indicator.update(indicator_count)
  File "/home/martin/.local/lib/python3.6/site-packages/progressbar/bar.py", 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.