[BUG] pyparsing version in py-env tag is ignored
See original GitHub issueDescribe the bug Adding this entry in the py-env tag does not get the desired version of pyparsing:
- pyparsing==3.0.9
Still get version 3.0.7.
To Reproduce Use this HTML:
<html>
<head>
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
<py-env>
- pyparsing==3.0.9
</py-env>
</head>
<body>
<py-script>
import pyparsing as pp
print(pp.__version__)
</py-script>
</body>
</html>
Expected behavior Display of 3.0.9
Screenshots Browser shows
3.0.7
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Local pyenv python version ignored - virtualenv - Stack Overflow
I want to use Notebook with a previous python version as Pytorch works with 3.8. I have installed 2 python version : $...
Read more >Managing Version, Virtual Environments and Dependencies ...
pyenv manages different versions of Python on the same machine; poetry manages ... If no file is found, then an error message is...
Read more >pipenv Documentation - Read the Docs
Automatically install required Python version when pyenv is available. • Automatically finds your project home, recursively, by looking for a Pipfile.
Read more >pipenv Documentation
If you do not have Python, please install the latest 3.x version from ... Pipenv will now ignore hashes when installing with --skip-lock....
Read more >Not Able to Build Some Versions of Python on M1 at 12.3.1
I trying to build older version of python such as 3.6, 3.7, 3.8 using pyenv and having build failures. I am on apple...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The issue is that micropip requires pyparsing, and loads
3.0.7
. So when you install a different version, it’s already imported and what you see is the previously imported version,you need to explicitly reload the module to update it,
And this is what likely happens in pyscript since it uses micropip internally.
So overall it’s likely the expected behavior.
This will soon be outdated by https://github.com/pyscript/pyscript/pull/775, I believe.