module 'lpeg_patterns.http' not found but lua-lpeg-patterns installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lua-http (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Using Lua 5.3 and lua-lpeg-patterns 0.4-1
Steps to reproduce:
$ lua <<<"local hr = require 'http.request'"
Expected outcome: no output (success)
Seen outcome:
lua: /usr/share/
no field package.
no file '/usr/local/
no file '/usr/local/
no file '/usr/local/
no file '/usr/local/
no file '/usr/share/
no file '/usr/share/
no file './lpeg_
no file './lpeg_
no file '/usr/local/
no file '/usr/lib/
no file '/usr/lib/
no file '/usr/local/
no file './lpeg_
no file '/usr/local/
no file '/usr/lib/
no file '/usr/lib/
no file '/usr/local/
no file './lpeg_
stack traceback:
[C]: in function 'require'
/usr/share/
[C]: in function 'require'
stdin:1: in main chunk
[C]: in ?
This may be a problem in lua-lpeg-patterns missing code for lua 5.3 , but I don't know whether to file a bug with that package or with this package; I'm filing a bug with this package since it's what's throwing the error.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: lua-http 0.1-3
ProcVersionSign
Uname: Linux 4.15.0-33-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.3
Architecture: amd64
CurrentDesktop: XFCE
Date: Tue Sep 11 20:13:42 2018
InstallationDate: Installed on 2016-06-05 (828 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
PackageArchitec
SourcePackage: lua-http
UpgradeStatus: Upgraded to bionic on 2018-04-27 (137 days ago)
A year later and this is still an obstacle. I resorted to ph,err = io.popen("curl " .. URL , "r")