The wrong VERSION file can be read on a system with several kolibri installations
See original GitHub issueObserved behavior
Seems this happens with the .pex:
python3 code/kolibri/dist/kolibri-0.7.1b1.dev+git-2-gfd48a7a.pex --version
WARNING:root:No C Extensions available for this platform.
0.7.1b1
I have that version installed as a system-wide Python module from the .deb, so it seems that the VERSION file in the .pex is overruled.
python3
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pkgutil
>>> pkgutil.get_data('kolibri', 'VERSION').decode('utf-8')
'0.7.1b1\n'
Implementation looks like this
def get_version_file():
"""
Looks for a file VERSION in the package data and returns the contents in
this. Does not check consistency.
"""
return pkgutil.get_data('kolibri', 'VERSION').decode('utf-8')
Expected behavior
Use VERSION file from Pex
User-facing consequences
Confusion
Errors and logs
…
Steps to reproduce
See above
Context
After https://github.com/learningequality/kolibri/pull/3136 is merged
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Troubleshooting — Kolibri User Guide - Read the Docs
--version from command line. If your database is corrupted but your SQLite3 is too old to run ;.recover , consider copying your ;...
Read more >Failed 0.15 beta installation - Kolibri
I installed 0.15 via the downloaded deb file and then via the apt install command on RPi OS. I have installed the RPi...
Read more >Install and test report on Debian 9 · Issue #8 - GitHub
I installed preview package kolibri-network-layer_0.1-1_all.deb on Debian with difficulties (instructions in kolibri docs seem to assume Ubuntu, ...
Read more >Kolibri User Guide - Read the Docs
Download the Windows installer9 for Kolibri version . ... Note: If you choose to install Kolibri as a system service, you will not...
Read more >My Kolibri OS Hard Drive Installation - YouTube
Let me begin with this:I apologize for the fact that I don't have a pro-grade camera or some sort of video capture card;...
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
I’d prefer not to delay 0.7.1 for this
Cannot reproduce on a system with a system-wide Kolibri installed.