load' 10: from /Users/robin/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/fpm-1.15.0/bin/fpm:7:in
<top (required)>'
9: from /Users/robin/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/clamp-1.0.1/lib/clamp/command.rb:133:in run' 8: from /Users/robin/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/fpm-1.15.0/lib/fpm/command.rb:591:in
run'
7: from /Users/robin/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/clamp-1.0.1/lib/clamp/command.rb:68:in run' 6: from /Users/robin/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/fpm-1.15.0/lib/fpm/command.rb:367:in
execute'
5: from /Users/robin/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/fpm-1.15.0/lib/fpm/command.rb:367:in each' 4: from /Users/robin/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/fpm-1.15.0/lib/fpm/command.rb:368:in
block in execute'
3: from /Users/robin/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/fpm-1.15.0/lib/fpm/package/python.rb:111:in input' 2: from /Users/robin/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/fpm-1.15.0/lib/fpm/package/python.rb:255:in
load_package_info'
1: from /Users/robin/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/json-2.3.1/lib/json/common.rb:263:in parse' /Users/robin/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/json-2.3.1/lib/json/common.rb:263:in
parse': 784: unexpected token at '' (JSON::ParserError)
`
I'm struggling to figure out how to debug this.
In #1962, I found that I get an error when attempting to package a python package as a deb:
I'm struggling to figure out how to debug this.
I notice that this is trying to parse the output of
setup.py get_metadata
. When I try to run that command in the directory, it fails:If I try the same command with the package with which
fpm -s python -t deb .
works, I get the same thing.Any idea where I should look next?