You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon installation of the together package, it cannot be imported as expected.
Steps To Reproduce
Steps to reproduce the behavior:
Install with pip
pip install together
Start a python REPL
python.exe # Have not yet tested on POSIX or Darwin
Import Together module from package together
>>>fromtogetherimportTogether
Expected behavior
▢ Together is imported without error
Observed Behavior
Import fails, see below
Screenshots
Click here to reveal
Python 3.12.3 | packaged by conda-forge | (main, Apr 15 2024, 18:20:11) [MSC v.1938 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from together import Together
ImportError: DLL load failed while importing _multiarray_umath: The specified module could not be found.
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\desco\miniconda3\Lib\site-packages\together\__init__.py", line 6, in
from together import (
File "C:\Users\desco\miniconda3\Lib\site-packages\together\client.py", line 6, in
from together import resources
File "C:\Users\desco\miniconda3\Lib\site-packages\together\resources\__init__.py", line 1, in
from together.resources.chat import AsyncChat, Chat
File "C:\Users\desco\miniconda3\Lib\site-packages\together\resources\chat\__init__.py", line 3, in
from together.resources.chat.completions import AsyncChatCompletions, ChatCompletions
File "C:\Users\desco\miniconda3\Lib\site-packages\together\resources\chat\completions.py", line 5, in
from together.abstract import api_requestor
File "C:\Users\desco\miniconda3\Lib\site-packages\together\abstract\api_requestor.py", line 33, in
from together import error, utils
File "C:\Users\desco\miniconda3\Lib\site-packages\together\utils\__init__.py", line 3, in
from together.utils.files import check_file
File "C:\Users\desco\miniconda3\Lib\site-packages\together\utils\files.py", line 9, in
from pyarrow import ArrowInvalid, parquet
File "C:\Users\desco\miniconda3\Lib\site-packages\pyarrow\__init__.py", line 65, in
import pyarrow.lib as _lib
File "pyarrow\\lib.pyx", line 41, in init pyarrow.lib
ImportError: numpy._core.multiarray failed to import
>>>
>>> client = Together()
Traceback (most recent call last):
File "", line 1, in
NameError: name 'Together' is not defined
Environment
Desktop
OS: Windows 11, build 22631
Browser: Entirely Irrelevant
together-python version: 1.3.3 (via pip)
Python version: Python 3.12.3 (Conda) [MSC v.1938 64 bit (AMD64)]
Additional context
I suspect this issue is related to the use of Conda (miniconda3). I intend to investigate this issue, and I will submit a PR if a fix is found. Please comment below with any additional information that could expedite this process. I'll respond below with any further information as well.
Kind regards,
DJ
The text was updated successfully, but these errors were encountered:
Describe the bug
Upon installation of the
together
package, it cannot be imported as expected.Steps To Reproduce
Steps to reproduce the behavior:
python.exe # Have not yet tested on POSIX or Darwin
Together
module from packagetogether
Expected behavior
Observed Behavior
Screenshots
Click here to reveal
Environment
Desktop
together-python
version:1.3.3
(via pip)Additional context
I suspect this issue is related to the use of Conda (miniconda3). I intend to investigate this issue, and I will submit a PR if a fix is found. Please comment below with any additional information that could expedite this process. I'll respond below with any further information as well.
Kind regards,
DJ
The text was updated successfully, but these errors were encountered: