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.

No version property

See original GitHub issue
>>> import autogluon
>>> autogluon.__version__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'autogluon' has no attribute '__version__'

For most python packages, the above should print out the version number. This is useful for quick version checking and automation in CI pipelines.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
Innixmacommented, May 19, 2021

Ah, you are correct, it is under:

from autogluon.tabular.version import __version__
print(__version__)
2reactions
Innixmacommented, May 19, 2021

AutoGluon is a namespace package, which means you cannot perform any imports at the autogluon level as it is not technically a package.

Instead, you will need to get the version of a particular submodule of autogluon, such as:

from autogluon.core import __version__
from autogluon.tabular import __version__
from autogluon.text import __version__
from autogluon.vision import __version__
# etc...
Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom version property · Issue #263 · researchgate/gradle ...
I tried setting this: versionProperties = ['myVersion'] But plugin seems to still require 'version' to be defined: contains no 'version' ...
Read more >
Maven version with a property - java - Stack Overflow
Better follow the other answers, using mvn versions:set - the amout of trouble you're going to run into with versions as properties is...
Read more >
docker-compose.yml file not recognized when no version ...
But: When I remove the version property, the docker-compose file is no longer recognized as a docker-compose file (the icon shows a "normal...
Read more >
PM44500: JAVA.VERSION PROPERTY WHEN RUNNING ...
This property is used as output only and has no effect on JVM initialization. Is NOT ignored and is the root cause of...
Read more >
package.json - npm Docs
The version range is a string which has one or more space-separated descriptors. Dependencies can also be identified with a tarball or git...
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