Release patch 1.0.1 with torch install_requires fix
See original GitHub issueThanks for creating this useful library. We recently included it as part of our low code toolkit, Ludwig. However, we ran into an issue whereby if the user does not have torch already installed before installing entmax, it raises an exception:
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-xasbhx2w/entmax_64da4068d2414a04a5c3adc7187695b4/setup.py", line 2, in <module>
from entmax import __version__
File "/tmp/pip-install-xasbhx2w/entmax_64da4068d2414a04a5c3adc7187695b4/entmax/__init__.py", line 3, in <module>
from entmax.activations import sparsemax, entmax15, Sparsemax, Entmax15
File "/tmp/pip-install-xasbhx2w/entmax_64da4068d2414a04a5c3adc7187695b4/entmax/activations.py", line 13, in <module>
import torch
ModuleNotFoundError: No module named 'torch'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Looks like this was fixed some time back here, but this change was made after the v1.0
release, meaning the current production release has this bug. Can you create a patch release v1.0.1
that includes this fix?
Thanks.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
Issues · deep-spin/entmax - GitHub
Release patch 1.0.1 with torch install_requires fix. #26 opened on Mar 1 ; Index -1 is out of bounds. #21 opened on Jan...
Read more >How does one install PyTorch and related tools from within the ...
I was trying to test the pip install -e . on my library ultimate-utils after changing laptops but I keep getting errors of...
Read more >Update version in setup.py before uploading package to ...
I am automating the deployment of my python packages to pypicloud. For this I need to update the setup.
Read more >torch - PyPI
PyTorch is a Python package that provides two high-level features: Tensor computation (like NumPy) with strong GPU acceleration; Deep neural networks built ...
Read more >Changelog - pip documentation v22.3.1
Fix an issue where the output saying that a package was installed would report the old version instead of the new version during...
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
Fixed via #25.
@bpopeters (or @vene) please merge one of the above and release a new version.