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.

package lacks `__version__`, results installed as version 0.0.0

See original GitHub issue

Hi,

After commit b7601dd0d208602d07a80d9c6ab154f715d8f700, the metadata in setup.cfg lacks the version number resulting in pygls being installed (in Archlinux) as version 0.0.0 when checked with:

from importlib.metadata import version
print(version('pygls'))

or the corresponding method with pkg_resources. This causes conflicts with other packages requiring some pygls versions (e.g. anakin-language-server).

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
cinghiopinghiocommented, May 10, 2021

Ohh, this is weird.

I reproduced the steps used on the PKGBUILD to build the package in Archlinux and now I magically have the right version.

So to conclude: using any installation method (pip or setup.py, local or global, with or without your suggestions) it works. It has to be something to do with the packaging process. I’ll open an issue there

0reactions
eli-schwartzcommented, May 10, 2021

Not quite. setuptools_scm doesn’t support configuration in setup.cfg

Sorry, by “the setuptools_scm stuff” I was referring to “the requirements list” in build-system.requires.

Read more comments on GitHub >

github_iconTop Results From Across the Web

path.py installed as version 0.0.0 · Issue #809 - GitHub
After some searching, I came across a similar problem here. The problem is that when setuptools_scm is used, github package does not contain...
Read more >
Package lacks a "Version" or "Package-Version" error, even if ...
I want to use my elisp through cask . But it failed with error: Dependency pinyin-mode failed to install: Package lacks a "Version"...
Read more >
How can I get the version defined in setup.py (setuptools) in ...
Interrogate version string of already-installed distribution. To retrieve the version from inside your package at runtime (what your question appears to ...
Read more >
ODAC 19c Release 1 Installation Instructions, Setup, and ...
ODAC 19c Release 1 (19.3.0.0.0) Installation Instructions, Setup, and Notes. December 2019. Download includes the following products:.
Read more >
Fix list for IBM MQ Version 9.0.0 LTS
IBM MQ provides periodic fixes for release 9.0. The following is a complete listing of available and scheduled fixes for Version 9.0 with...
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