Comments (1)
For anyone else who stumbles upon this, the easiest way to sidestep having shinylive
attempt to load packages in a requirements.txt
is to rename the file to either requirements-dev.txt
or another name. You can see an example app using requirements-dev.txt
working.
Alternatively, feel free to check out a demo app using requirements.txt
instead of requirements-dev.txt
failing if just shinylive
is present due its dependency on the lzstring
package, which lacks a Pyodide-compiled Python package wheel available.
ValueError: Can't find a pure Python 3 wheel for 'lzstring>=1.0.4'.
Traceback (most recent call last):
File "<exec>", line 368, in _start_app
File "<exec>", line 302, in _install_requirements_from_dir
File "/lib/python3.10/site-packages/micropip/_micropip.py", line 573, in install
await transaction.gather_requirements(requirements)
File "/lib/python3.10/site-packages/micropip/_micropip.py", line 333, in gather_requirements
await gather(*requirement_promises)
File "/lib/python3.10/asyncio/futures.py", line 284, in __await__
yield self # This tells Task to wait for completion.
File "/lib/python3.10/asyncio/tasks.py", line 304, in __wakeup
future.result()
File "/lib/python3.10/asyncio/futures.py", line 201, in result
raise self._exception
File "/lib/python3.10/asyncio/tasks.py", line 234, in __step
result = coro.throw(exc)
File "/lib/python3.10/site-packages/micropip/_micropip.py", line 340, in add_requirement
return await self.add_requirement_inner(Requirement(req))
File "/lib/python3.10/site-packages/micropip/_micropip.py", line 448, in add_requirement_inner
await self.add_wheel(wheel, req.extras)
File "/lib/python3.10/site-packages/micropip/_micropip.py", line 463, in add_wheel
await self.gather_requirements(wheel.requires(extras))
File "/lib/python3.10/site-packages/micropip/_micropip.py", line 333, in gather_requirements
await gather(*requirement_promises)
File "/lib/python3.10/asyncio/futures.py", line 284, in __await__
yield self # This tells Task to wait for completion.
File "/lib/python3.10/asyncio/tasks.py", line 304, in __wakeup
future.result()
File "/lib/python3.10/asyncio/futures.py", line 201, in result
raise self._exception
File "/lib/python3.10/asyncio/tasks.py", line 232, in __step
result = coro.send(None)
File "/lib/python3.10/site-packages/micropip/_micropip.py", line 337, in add_requirement
return await self.add_requirement_inner(req)
File "/lib/python3.10/site-packages/micropip/_micropip.py", line 435, in add_requirement_inner
wheel = find_wheel(metadata, req)
File "/lib/python3.10/site-packages/micropip/_micropip.py", line 303, in find_wheel
raise ValueError(
ValueError: Can't find a pure Python 3 wheel for 'lzstring>=1.0.4'.
See: https://pyodide.org/en/stable/usage/faq.html#micropip-can-t-find-a-pure-python-wheel
You can use `micropip.install(..., keep_going=True)`to get a list of all packages with missing wheels.
from py-shinylive.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-shinylive.