langflow icon indicating copy to clipboard operation
langflow copied to clipboard

ModuleNotFoundError: No module named 'langflow.processing'

Open radiantone opened this issue 1 year ago • 1 comments

Describe the bug Installing the pre-release per the README and running the sample code also in the README produces error.

>>> from langflow.load import run_flow_from_json
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "...snipped.../venv/lib/python3.10/site-packages/langflow/load.py", line 1, in <module>
    from langflow.processing.load import load_flow_from_json, run_flow_from_json  # noqa: F401
ModuleNotFoundError: No module named 'langflow.processing'
>>> 

Browser and Version

  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

radiantone avatar Apr 10 '24 12:04 radiantone

Hey @radiantone

How are you?

Could you try installing using python -m pip install langflow --pre --force-reinstall?

I'm pushing some changes to this function and I'm positive it works on version 1.0.0a13, we'll release it really soon

ogabrielluiz avatar Apr 10 '24 14:04 ogabrielluiz

[!NOTE] Since python -m pip install langflow --pre --force-reinstall didn't do the trick for us, I had to manually delete the langflow packages (see screenshot). After that, everything looked fine and I was able run run_flow_from_json.

Screenshot:

image

pixelass avatar May 21 '24 16:05 pixelass