question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The wrong VERSION file can be read on a system with several kolibri installations

See original GitHub issue

Observed 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:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
indirectlylitcommented, Jan 31, 2018

I’d prefer not to delay 0.7.1 for this

0reactions
benjaomingcommented, Apr 12, 2020

Cannot reproduce on a system with a system-wide Kolibri installed.

➜  ~ ./kolibri-0.13.2b1.dev0_git.96.g348dfbb1.pex --version
INFO     Option RUN_MODE in section [Deployment] being overridden by environment variable KOLIBRI_RUN_MODE
kolibri-0.13.2b1.dev0_git.96.g348dfbb1.pex, version 0.13.2b1.dev0+git.96.g348dfbb1
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found