langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Langflow installtion Error

Open AliNaqvi110 opened this issue 1 year ago β€’ 4 comments

Hi how are you. I have been trying to install Langflow in my local system. I tried to install with Python 3.9, and Python 3.11. It does not install at all with Python 3.11. With Python 3.9, it install but when I run the langflow using command "python -m langflow", it shows me error. "from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions ImportError: DLL load failed while importing _rust: The specified procedure could not be found. ".

I have Python 3.9.1 Rustc 1.75.0 Node js v20.11.0 cryptgraphy 42.0.2

please help me how can I overcome this issue

AliNaqvi110 avatar Feb 04 '24 06:02 AliNaqvi110

πŸ€–

Hey @AliNaqvi110, nice to see you back here! Hope you're doing great. 😊

The error you're encountering, ImportError: DLL load failed while importing _rust: The specified procedure could not be found, is typically due to a mismatch between the Python version and the installed packages.

In your case, you mentioned that you have Python 3.9.1, Rustc 1.75.0, Node js v20.11.0, and cryptography 42.0.2 installed. The issue might be with the cryptography package.

The cryptography package has binary wheels available on PyPI for Python 3.9. However, the version you have installed (42.0.2) does not exist. The latest version of cryptography, as of this writing, is 3.4.7.

To resolve this issue, you should uninstall the current cryptography package and then install the correct version. Here's how you can do it:

pip uninstall cryptography
pip install cryptography

This will uninstall the current version of cryptography and then install the latest version that is compatible with your Python version.

If you still encounter the issue after doing this, it might be due to a problem with your Python installation. In that case, you might want to consider reinstalling Python.

As for the Python versions that are compatible with the latest version of Langflow, they are Python 3.9 up to, but not including, Python 3.11. This is indicated in the pyproject.toml file under the [tool.poetry.dependencies] section with the line python = ">=3.9,<3.11". This means that Langflow requires a Python version that is greater than or equal to 3.9 and less than 3.11.

You can refer to the pyproject.toml and src/backend/langflow/main.py files for more information.

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a πŸ‘ if this is helpful and πŸ‘Ž if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

dosubot[bot] avatar Feb 04 '24 06:02 dosubot[bot]

Wow, So quick response, Thanks for help it really helped me.

AliNaqvi110 avatar Feb 04 '24 07:02 AliNaqvi110

But I can't see components in my left menu??

AliNaqvi110 avatar Feb 04 '24 07:02 AliNaqvi110

are you using python 3.10?

anovazzi1 avatar Mar 21 '24 15:03 anovazzi1