piwheels / packages

Issue tracker for piwheels package issues
https://github.com/piwheels/packages/issues
20 stars 5 forks source link

Missing package: pybluemonday #197

Closed ColdHeat closed 1 year ago

ColdHeat commented 3 years ago

Package name: pybluemonday Link to PyPI page: https://pypi.org/project/pybluemonday/ Link to piwheels page: https://www.piwheels.org/project/pybluemonday/ Version: all Python version: all I am the maintainer: Yes More information: pybluemonday is a Python binding to a Golang library so it needs golang available. I tried to do some bootstrapping in setup.py and install what's needed but it doesn't look like piwheels was able to build the wheel. Is it possible to get golang installed as a dependency or let me know what went wrong so I can debug it?

I'm testing this out on an rPI 3 now and it does work.

Building works

pi@raspberrypi:~/pybluemonday $ python3 setup.py bdist_wheel
uname_result(system='Linux', node='raspberrypi', release='5.10.17-v7+', version='#1403 SMP Mon Feb 22 11:29:51 GMT 2021', machine='armv7l', processor='')
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Downloading arm6vl Golang
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    76  100    76    0     0    608      0 --:--:-- --:--:-- --:--:--   608
100 93.2M  100 93.2M    0     0  2185k      0  0:00:43  0:00:43 --:--:-- 1221k
rm -f bluemonday.so
rm -f bluemonday.o
rm -f bluemonday.h
rm -f bluemonday.c
go get -d
go: downloading github.com/microcosm-cc/bluemonday v1.0.5
go: downloading golang.org/x/net v0.0.0-20181220203305-927f97764cc3
go: downloading github.com/chris-ramon/douceur v0.2.0
go: downloading github.com/gorilla/css v1.0.0
go: downloading github.com/aymerick/douceur v0.2.0
go build -buildmode=c-shared -o bluemonday.so .
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: cffi~=1.1 in /home/pi/.local/lib/python2.7/site-packages (1.14.5)
Requirement already satisfied: pycparser in /home/pi/.local/lib/python2.7/site-packages (from cffi~=1.1) (2.20)
python3 build_ffi.py
generating ./bluemonday.c
the current directory is '/home/pi/pybluemonday'
running build_ext
building 'bluemonday' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c bluemonday.c -o ./bluemonday.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 ./bluemonday.o bluemonday.so -o ./bluemonday.cpython-37m-arm-linux-gnueabihf.so
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/tests
copying tests/test_memory_leaks.py -> build/lib.linux-armv7l-3.7/tests
copying tests/__init__.py -> build/lib.linux-armv7l-3.7/tests
creating build/lib.linux-armv7l-3.7/pybluemonday
copying pybluemonday/__init__.py -> build/lib.linux-armv7l-3.7/pybluemonday
creating build/lib.linux-armv7l-3.7/tests/html_sanitizer
copying tests/html_sanitizer/__init__.py -> build/lib.linux-armv7l-3.7/tests/html_sanitizer
copying tests/html_sanitizer/test_sanitize.py -> build/lib.linux-armv7l-3.7/tests/html_sanitizer
creating build/lib.linux-armv7l-3.7/tests/bluemonday
copying tests/bluemonday/test_policies.py -> build/lib.linux-armv7l-3.7/tests/bluemonday
copying tests/bluemonday/__init__.py -> build/lib.linux-armv7l-3.7/tests/bluemonday
copying tests/bluemonday/test_sanitize.py -> build/lib.linux-armv7l-3.7/tests/bluemonday
running build_ext
{'GOPATH': '/tmp/tmpau78uaij', 'PATH': '/home/pi/.local/bin:/home/pi/.gvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/home/pi/pybluemonday/go/bin:/home/pi/pybluemonday/go/bin'}
$ GOPATH=/tmp/tmpau78uaij PATH=/home/pi/.local/bin:/home/pi/.gvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/home/pi/pybluemonday/go/bin:/home/pi/pybluemonday/go/bin go get -d
{'SHELL': '/bin/bash', 'GVM_VERSION': '1.0.22', 'GVM_PATH_BACKUP': '/home/pi/.gvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games', 'NO_AT_BRIDGE': '1', 'PWD': '/home/pi/pybluemonday', 'LOGNAME': 'pi', 'XDG_SESSION_TYPE': 'tty', 'HOME': '/home/pi', 'LANG': 'en_GB.UTF-8', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'LC_TERMINAL': 'iTerm2', 'GVM_ROOT': '/home/pi/.gvm', 'SSH_CONNECTION': '192.168.0.17 60945 192.168.0.123 22', 'XDG_SESSION_CLASS': 'user', 'TERM': 'xterm-256color', 'USER': 'pi', 'LC_TERMINAL_VERSION': '3.4.3', 'SHLVL': '1', 'XDG_SESSION_ID': '2', 'XDG_RUNTIME_DIR': '/run/user/1000', 'SSH_CLIENT': '192.168.0.17 60945 22', 'LC_ALL': 'en_US.UTF-8', 'PATH': '/home/pi/.local/bin:/home/pi/.gvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/home/pi/pybluemonday/go/bin:/home/pi/pybluemonday/go/bin', 'MAIL': '/var/mail/pi', 'SSH_TTY': '/dev/pts/0', 'TEXTDOMAIN': 'Linux-PAM', '_': '/usr/bin/python3', 'OLDPWD': '/home/pi', 'PLAT': 'linux-armv7l', 'GOPATH': '/tmp/tmpau78uaij'}
go: downloading github.com/microcosm-cc/bluemonday v1.0.5
go: downloading github.com/chris-ramon/douceur v0.2.0
go: downloading golang.org/x/net v0.0.0-20181220203305-927f97764cc3
go: downloading github.com/gorilla/css v1.0.0
go: downloading github.com/aymerick/douceur v0.2.0
/usr/bin/ld: /tmp/ccuRhdLy.o: in function `main':
test.c:(.text+0xc): undefined reference to `f'
collect2: error: ld returned 1 exit status
$ CGO_CFLAGS=-I/usr/include/python3.7m CGO_LDFLAGS=-Wl,--unresolved-symbols=ignore-all GOPATH=/tmp/tmpau78uaij PATH=/home/pi/.local/bin:/home/pi/.gvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/home/pi/pybluemonday/go/bin:/home/pi/pybluemonday/go/bin go build -buildmode=c-shared -o /home/pi/pybluemonday/build/lib.linux-armv7l-3.7/pybluemonday/bluemonday.cpython-37m-arm-linux-gnueabihf.so
{'SHELL': '/bin/bash', 'GVM_VERSION': '1.0.22', 'GVM_PATH_BACKUP': '/home/pi/.gvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games', 'NO_AT_BRIDGE': '1', 'PWD': '/home/pi/pybluemonday', 'LOGNAME': 'pi', 'XDG_SESSION_TYPE': 'tty', 'HOME': '/home/pi', 'LANG': 'en_GB.UTF-8', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'LC_TERMINAL': 'iTerm2', 'GVM_ROOT': '/home/pi/.gvm', 'SSH_CONNECTION': '192.168.0.17 60945 192.168.0.123 22', 'XDG_SESSION_CLASS': 'user', 'TERM': 'xterm-256color', 'USER': 'pi', 'LC_TERMINAL_VERSION': '3.4.3', 'SHLVL': '1', 'XDG_SESSION_ID': '2', 'XDG_RUNTIME_DIR': '/run/user/1000', 'SSH_CLIENT': '192.168.0.17 60945 22', 'LC_ALL': 'en_US.UTF-8', 'PATH': '/home/pi/.local/bin:/home/pi/.gvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/home/pi/pybluemonday/go/bin:/home/pi/pybluemonday/go/bin', 'MAIL': '/var/mail/pi', 'SSH_TTY': '/dev/pts/0', 'TEXTDOMAIN': 'Linux-PAM', '_': '/usr/bin/python3', 'OLDPWD': '/home/pi', 'PLAT': 'linux-armv7l', 'GOPATH': '/tmp/tmpau78uaij', 'CGO_CFLAGS': '-I/usr/include/python3.7m', 'CGO_LDFLAGS': '-Wl,--unresolved-symbols=ignore-all'}
installing to build/bdist.linux-armv7l/wheel
running install
running install_lib
creating build/bdist.linux-armv7l
creating build/bdist.linux-armv7l/wheel
creating build/bdist.linux-armv7l/wheel/tests
copying build/lib.linux-armv7l-3.7/tests/test_memory_leaks.py -> build/bdist.linux-armv7l/wheel/tests
creating build/bdist.linux-armv7l/wheel/tests/html_sanitizer
copying build/lib.linux-armv7l-3.7/tests/html_sanitizer/__init__.py -> build/bdist.linux-armv7l/wheel/tests/html_sanitizer
copying build/lib.linux-armv7l-3.7/tests/html_sanitizer/test_sanitize.py -> build/bdist.linux-armv7l/wheel/tests/html_sanitizer
creating build/bdist.linux-armv7l/wheel/tests/bluemonday
copying build/lib.linux-armv7l-3.7/tests/bluemonday/test_policies.py -> build/bdist.linux-armv7l/wheel/tests/bluemonday
copying build/lib.linux-armv7l-3.7/tests/bluemonday/__init__.py -> build/bdist.linux-armv7l/wheel/tests/bluemonday
copying build/lib.linux-armv7l-3.7/tests/bluemonday/test_sanitize.py -> build/bdist.linux-armv7l/wheel/tests/bluemonday
copying build/lib.linux-armv7l-3.7/tests/__init__.py -> build/bdist.linux-armv7l/wheel/tests
creating build/bdist.linux-armv7l/wheel/pybluemonday
copying build/lib.linux-armv7l-3.7/pybluemonday/__init__.py -> build/bdist.linux-armv7l/wheel/pybluemonday
copying build/lib.linux-armv7l-3.7/pybluemonday/bluemonday.cpython-37m-arm-linux-gnueabihf.h -> build/bdist.linux-armv7l/wheel/pybluemonday
copying build/lib.linux-armv7l-3.7/pybluemonday/bluemonday.cpython-37m-arm-linux-gnueabihf.so -> build/bdist.linux-armv7l/wheel/pybluemonday
running install_egg_info
running egg_info
creating pybluemonday.egg-info
writing pybluemonday.egg-info/PKG-INFO
writing dependency_links to pybluemonday.egg-info/dependency_links.txt
writing requirements to pybluemonday.egg-info/requires.txt
writing top-level names to pybluemonday.egg-info/top_level.txt
writing manifest file 'pybluemonday.egg-info/SOURCES.txt'
reading manifest file 'pybluemonday.egg-info/SOURCES.txt'
writing manifest file 'pybluemonday.egg-info/SOURCES.txt'
Copying pybluemonday.egg-info to build/bdist.linux-armv7l/wheel/pybluemonday-0.0.4.egg-info
running install_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
creating build/bdist.linux-armv7l/wheel/pybluemonday-0.0.4.dist-info/WHEEL
creating 'dist/pybluemonday-0.0.4-cp37-cp37m-linux_armv7l.whl' and adding 'build/bdist.linux-armv7l/wheel' to it
adding 'pybluemonday/__init__.py'
adding 'pybluemonday/bluemonday.cpython-37m-arm-linux-gnueabihf.h'
adding 'pybluemonday/bluemonday.cpython-37m-arm-linux-gnueabihf.so'
adding 'tests/__init__.py'
adding 'tests/test_memory_leaks.py'
adding 'tests/bluemonday/__init__.py'
adding 'tests/bluemonday/test_policies.py'
adding 'tests/bluemonday/test_sanitize.py'
adding 'tests/html_sanitizer/__init__.py'
adding 'tests/html_sanitizer/test_sanitize.py'
adding 'pybluemonday-0.0.4.dist-info/LICENSE'
adding 'pybluemonday-0.0.4.dist-info/METADATA'
adding 'pybluemonday-0.0.4.dist-info/WHEEL'
adding 'pybluemonday-0.0.4.dist-info/top_level.txt'
adding 'pybluemonday-0.0.4.dist-info/RECORD'
removing build/bdist.linux-armv7l/wheel

Wheel installs

pi@raspberrypi:~/pybluemonday $ pip3 install --force-reinstall dist/pybluemonday-0.0.4-cp37-cp37m-linux_armv7l.whl
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing ./dist/pybluemonday-0.0.4-cp37-cp37m-linux_armv7l.whl
Collecting cffi~=1.1 (from pybluemonday==0.0.4)
  Using cached https://www.piwheels.org/simple/cffi/cffi-1.14.5-cp37-cp37m-linux_armv7l.whl
Collecting pycparser (from cffi~=1.1->pybluemonday==0.0.4)
  Using cached https://files.pythonhosted.org/packages/ae/e7/d9c3a176ca4b02024debf82342dab36efadfc5776f9c8db077e8f6e71821/pycparser-2.20-py2.py3-none-any.whl
Installing collected packages: pycparser, cffi, pybluemonday
  Found existing installation: pycparser 2.20
    Uninstalling pycparser-2.20:
      Successfully uninstalled pycparser-2.20
  Found existing installation: cffi 1.14.5
    Uninstalling cffi-1.14.5:
      Successfully uninstalled cffi-1.14.5
  Found existing installation: pybluemonday 0.0.3
    Uninstalling pybluemonday-0.0.3:
      Successfully uninstalled pybluemonday-0.0.3
Successfully installed cffi-1.14.5 pybluemonday-0.0.4 pycparser-2.20

Code runs

pi@raspberrypi:/ $ python3
Python 3.7.3 (default, Jan 22 2021, 20:04:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pybluemonday
>>> p = pybluemonday.UGCPolicy()
>>> p.sanitize("<script>alert()</script>")
''
>>>
bennuttall commented 3 years ago

It it possible to apt install the requirements? Ideally we would just add something to the deploy script and rebuild this package.

ColdHeat commented 3 years ago

Yeah I think you can apt install golang. The version is beneath the specified required version but I don't think that actually matters. I think the code should still build and I just tried the 1.11 version of golang which apt show told me is what Raspbian provides.

Is there a way to requeue the build or would I have to push a new version?

bennuttall commented 3 years ago

I can install that and kick off another build. I'll try it locally first though.

ColdHeat commented 3 years ago

Hi there, did that build work?

ColdHeat commented 3 years ago

@bennuttall anything I can do to help out here?

ColdHeat commented 3 years ago

@bennuttall would a PR for the deploy script help get this out?

bennuttall commented 3 years ago

Yes, thanks

bennuttall commented 3 years ago

I'll install this later and kick off another build

ColdHeat commented 3 years ago

Thanks! Sorry I didn't mean for this to close.

bennuttall commented 3 years ago

The latest version built on cp37 but the rest failed. Does that sound right?

https://www.piwheels.org/project/pybluemonday/

ColdHeat commented 3 years ago

Hmm no it should build on everything. Are there any logs or anything that you can share so I can take a look? I was able to build wheels myself with Dockerfiles on a Pi3: https://github.com/ColdHeat/pybluemonday/blob/master/Dockerfile.

My only hunch would be maybe the go version matters more than I think but I can fix that.

bennuttall commented 3 years ago

Here you go:

0.0.4 cp37m: https://paste.debian.net/1195134/ 0.0.3 cp35m: https://paste.debian.net/1195135/

ColdHeat commented 3 years ago

The setup.py requires >=3.6 but I can change that. Can you share the errors on the other Python versions?

EDIT: Sorry I see you only build on 3.7 and 3.5 right?

ColdHeat commented 3 years ago

It looks like supporting 3.5 is a little trickier than it would seem. I'll try to get that supported and hopefully it won't take too long.

bennuttall commented 3 years ago

EDIT: Sorry I see you only build on 3.7 and 3.5 right?

We only build for Python versions in Debian - and stop when a version of Debian goes EOL (like Jessie with Python 3.4 did last year.

Python 3.5 is officially EOL as far as Python is concerned, however it is still in support in Debian, but only for another year, and usage is quite small:

So if it's nontrivial I wouldn't bother.

ColdHeat commented 3 years ago

Yeah it's a nightmare. This should be all good afaik so thanks for all your help!

ColdHeat commented 3 years ago

Sorry to bother one more time but I just pushed a new version and it looks like that build failed on 3.7 as well. Is there just a delay or is there an error?

bennuttall commented 3 years ago

They both failed

cp35m: https://paste.debian.net/1195195/ cp37m: https://paste.debian.net/1195196/

ColdHeat commented 3 years ago

This is failing because go can’t download dependencies from GitHub? This error looks nonsensical, is it possible this is a piwheels issue? Or perhaps a transient one, could you requeue?

$ GOPATH=/tmp/tmpvfo9y2m3 go get -d 2021-04-25T22:08:37,232 package github.com/microcosm-cc/bluemonday: cannot download, https://github.com/microcosm-cc/bluemonday uses insecure protocol

Using https but still insecure?

On Mon, Apr 26, 2021 at 6:43 AM Ben Nuttall @.***> wrote:

cp35m: https://paste.debian.net/1195195/ cp37m: https://paste.debian.net/1195196/

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/piwheels/packages/issues/197#issuecomment-826728383, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABITPNYHVDE2PLSQFEFW5TTKU7WBANCNFSM42KSJ7IQ .

bennuttall commented 3 years ago

The initial failure seems to be here:

sh: 1: ./scripts/setup-arm6vl.sh: not found
ColdHeat commented 3 years ago

Oh thanks, I didn’t notice that. That’s some code to bootstrap a go environment. I see the make calls are also failing. That could be an issue but I don’t think it explains why the installed go can’t download over HTTPS?

On Mon, Apr 26, 2021 at 10:37 AM Ben Nuttall @.***> wrote:

The initial failure seems to be here:

sh: 1: ./scripts/setup-arm6vl.sh: not found

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/piwheels/packages/issues/197#issuecomment-826887136, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABITPJKTJ4QLVJMOUSDXR3TKV3CRANCNFSM42KSJ7IQ .

ColdHeat commented 3 years ago

I put up another release which looks like it also failed :(

Lmk if there's anything I can do to get this to build properly.

bennuttall commented 3 years ago

git clones are not permitted in piwheels builds. Is this a hacky workaround or is this just the way go package management works? If go-implemented packages require cloning git repositories that seems problematic for piwheels :/

ColdHeat commented 3 years ago

I'm not completely sure but it does seem like go get runs git clone internally: https://nanxiao.gitbooks.io/golang-101-hacks/content/posts/go-get-command.html

From my research it seems like there's no way to work around the usage of git in go get. Is there any kind of workaround here other than that? It seems like go get has a -insecure flag that might fix the above HTTPS error. But I'm not particularly sure if that is the best approach.

Would you probably just recommend pushing the package to pypi?

Why are git cloned disabled?