Python snaps
Dustin Kirkland
kirkland at canonical.com
Fri Apr 3 18:57:52 UTC 2015
On Fri, Apr 3, 2015 at 1:52 PM, Barry Warsaw <barry at ubuntu.com> wrote:
> Hi Dustin. Really glad you're giving it a try. More examples will no doubt
> expose areas for improvement.
>
> On Apr 03, 2015, at 01:32 PM, Dustin Kirkland wrote:
>
>>$ ./snap.py ssh-import-id/ssh-import-id.ini
>>Cloning into 'upstream'...
>>remote: Counting objects: 780, done.
>>remote: Total 780 (delta 0), reused 0 (delta 0), pack-reused 780
>>Receiving objects: 100% (780/780), 327.37 KiB | 0 bytes/s, done.
>>Resolving deltas: 100% (559/559), done.
>>Checking connectivity... done.
>>Traceback (most recent call last):
>> File "setup.py", line 19, in <module>
>> from setuptools import setup
>>ImportError: No module named 'setuptools'
>>Traceback (most recent call last):
>> File "./snap.py", line 288, in <module>
>> sys.exit(main())
>> File "./snap.py", line 278, in main
>> package = GitPackage(name, url, dirs)
>> File "./snap.py", line 205, in __init__
>> shell=True)
>> File "/usr/lib/python3.4/subprocess.py", line 561, in check_call
>> raise CalledProcessError(retcode, cmd)
>>subprocess.CalledProcessError: Command 'python3 setup.py bdist_wheel
>>--universal' returned non-zero exit status 1
>
> Do you have the python3-wheel pacakge installed?
>
> You can test this at the shell by cd'ing into your git repo and doing:
>
> $ python3 setup.py bdist_wheel --universal
>
> That subcommand is only available once python3-wheel is installed.
I didn't, but I do now, and the error was the same:
kirkland at x230:~/src/pysnap/pysnap⟫ sudo apt-get install python3-wheel
[sudo] password for kirkland:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
xchat-gnome-common
Use 'apt-get autoremove' to remove it.
Suggested packages:
python3-setuptools
The following NEW packages will be installed:
python3-wheel
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 44.6 kB of archives.
After this operation, 229 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ vivid/main python3-wheel
all 0.24.0-1 [44.6 kB]
Fetched 44.6 kB in 0s (147 kB/s)
Selecting previously unselected package python3-wheel.
(Reading database ... 192591 files and directories currently installed.)
Preparing to unpack .../python3-wheel_0.24.0-1_all.deb ...
Unpacking python3-wheel (0.24.0-1) ...
Setting up python3-wheel (0.24.0-1) ...
kirkland at x230:~/src/pysnap/pysnap⟫ ./snap.py
ssh-import-id/ssh-import-id.ini
Cloning into 'upstream'...
remote: Counting objects: 780, done.
remote: Total 780 (delta 0), reused 0 (delta 0), pack-reused 780
Receiving objects: 100% (780/780), 327.37 KiB | 0 bytes/s, done.
Resolving deltas: 100% (559/559), done.
Checking connectivity... done.
Traceback (most recent call last):
File "setup.py", line 19, in <module>
from setuptools import setup
ImportError: No module named 'setuptools'
Traceback (most recent call last):
File "./snap.py", line 288, in <module>
sys.exit(main())
File "./snap.py", line 278, in main
package = GitPackage(name, url, dirs)
File "./snap.py", line 205, in __init__
shell=True)
File "/usr/lib/python3.4/subprocess.py", line 561, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'python3 setup.py bdist_wheel
--universal' returned non-zero exit status 1
More information about the snappy-devel
mailing list