Open Msiavashi opened 5 months ago
Looks like an issue for Python 3.8
Hi, I encountered the same problem on Python 3.9 and 3.10. It seems that your method works with a little fixup.
def _is_neuron() -> bool:
torch_neuronx_installed = True
try:
subprocess.run(["neuron-ls"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True)
except (FileNotFoundError, PermissionError, subprocess.CalledProcessError, NotADirectoryError):
torch_neuronx_installed = False
return torch_neuronx_installed or VLLM_TARGET_DEVICE == "neuron"
This issue has been automatically marked as stale because it has not had any activity within 90 days. It will be automatically closed if no further activity occurs within 30 days. Leave a comment if you feel this issue should remain open. Thank you!
Your current environment
🐛 Describe the bug
While attempting to build/install the source code using
pip install -e .
, I encountered two issues:Dependency Mismatch: There was a dependency mismatch between two packages regarding the
urllib3
version. This issue was resolved by fixing the dependency version oftypes-requests==2.31.0
in therequirements-dev.txt
file.Installation Exception: During the
pip install -e .
process, the following exception was raised:This was resolved by modifying the
_is_neuron()
function in thesetup.py
to the following:These changes resolved the build issues, allowing the build to progress successfully.
If anyone else has encountered these issues or can confirm them, I can submit a pull request with the proposed fixes.