Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: DLL load failed #209

Open
DJStompZone opened this issue Oct 28, 2024 · 0 comments
Open

ImportError: DLL load failed #209

DJStompZone opened this issue Oct 28, 2024 · 0 comments

Comments

@DJStompZone
Copy link

Describe the bug

Upon installation of the together package, it cannot be imported as expected.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install with pip
    pip install together
  2. Start a python REPL
    python.exe # Have not yet tested on POSIX or Darwin
  3. Import Together module from package together
    >>> from together import Together

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant