lfx-nightly 0.1.12.dev9__py3-none-any.whl → 0.1.12.dev10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of lfx-nightly might be problematic. Click here for more details.

lfx/custom/validate.py CHANGED
@@ -347,13 +347,10 @@ def prepare_global_scope(module):
347
347
 
348
348
  for node in imports:
349
349
  for alias in node.names:
350
- try:
351
- module_name = alias.name
352
- variable_name = alias.asname or alias.name
353
- exec_globals[variable_name] = importlib.import_module(module_name)
354
- except ModuleNotFoundError as e:
355
- msg = f"Module {alias.name} not found. Please install it and try again."
356
- raise ModuleNotFoundError(msg) from e
350
+ module_name = alias.name
351
+ variable_name = alias.asname or alias.name
352
+ # Let importlib.import_module raise its own ModuleNotFoundError with the actual missing module
353
+ exec_globals[variable_name] = importlib.import_module(module_name)
357
354
 
358
355
  for node in import_froms:
359
356
  module_names_to_try = [node.module]
@@ -379,8 +376,11 @@ def prepare_global_scope(module):
379
376
  continue
380
377
 
381
378
  if not success:
379
+ # Re-raise the last error to preserve the actual missing module information
380
+ if last_error:
381
+ raise last_error
382
382
  msg = f"Module {node.module} not found. Please install it and try again"
383
- raise ModuleNotFoundError(msg) from last_error
383
+ raise ModuleNotFoundError(msg)
384
384
 
385
385
  if definitions:
386
386
  combined_module = ast.Module(body=definitions, type_ignores=[])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lfx-nightly
3
- Version: 0.1.12.dev9
3
+ Version: 0.1.12.dev10
4
4
  Summary: Langflow Executor - A lightweight CLI tool for executing and serving Langflow AI flows
5
5
  Author-email: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
6
6
  Requires-Python: <3.14,>=3.10
@@ -16,6 +16,7 @@ Requires-Dist: fastapi>=0.115.13
16
16
  Requires-Dist: httpx[http2]>=0.24.0
17
17
  Requires-Dist: json-repair>=0.30.3
18
18
  Requires-Dist: langchain-core>=0.3.66
19
+ Requires-Dist: langchain~=0.3.23
19
20
  Requires-Dist: loguru>=0.7.3
20
21
  Requires-Dist: nanoid>=2.0.0
21
22
  Requires-Dist: networkx>=3.4.2
@@ -33,6 +34,7 @@ Requires-Dist: tomli>=2.2.1
33
34
  Requires-Dist: typer>=0.16.0
34
35
  Requires-Dist: typing-extensions>=4.14.0
35
36
  Requires-Dist: uvicorn>=0.34.3
37
+ Requires-Dist: validators>=0.34.0
36
38
  Description-Content-Type: text/markdown
37
39
 
38
40
  # lfx - Langflow Executor
@@ -537,7 +537,7 @@ lfx/custom/eval.py,sha256=6iekrFA2xHopjorhU06Je5cksgq9KWCHjr_84ehC58c,378
537
537
  lfx/custom/schema.py,sha256=WwHe0TnNauyiaC17-bKSyEb8K7KJxBtkB32OSbxiICY,678
538
538
  lfx/custom/tree_visitor.py,sha256=sa4j8VTwksN8ejTE9fnnH1TpD6OnnTtlg2KemiI-eQA,601
539
539
  lfx/custom/utils.py,sha256=eFZcNHvpUhb1Fx6Kbvna2wS0coN3Iub8CW0MvrpstMM,35958
540
- lfx/custom/validate.py,sha256=d5bZTeYK64P2mOMPEJgbvgvtBxZ5P7XFuXCNof3dXPg,17074
540
+ lfx/custom/validate.py,sha256=AQEAVNfj5y_CLStk-Z3yrcGU-ksrJUyx_2mHVRrc1sY,17096
541
541
  lfx/custom/code_parser/__init__.py,sha256=qIwZQdEp1z7ldn0z-GY44wmwRaywN3L6VPoPt6lqx1k,62
542
542
  lfx/custom/code_parser/code_parser.py,sha256=QAqsp4QF607319dClK60BsaiwZLV55n0xeGR-DthSoE,14280
543
543
  lfx/custom/custom_component/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -694,7 +694,7 @@ lfx/utils/schemas.py,sha256=NbOtVQBrn4d0BAu-0H_eCTZI2CXkKZlRY37XCSmuJwc,3865
694
694
  lfx/utils/util.py,sha256=xGR32XDRr_TtruhjnXfI7lEWmk-vgywHAy3kz5SBowc,15725
695
695
  lfx/utils/util_strings.py,sha256=nU_IcdphNaj6bAPbjeL-c1cInQPfTBit8mp5Y57lwQk,1686
696
696
  lfx/utils/version.py,sha256=cHpbO0OJD2JQAvVaTH_6ibYeFbHJV0QDHs_YXXZ-bT8,671
697
- lfx_nightly-0.1.12.dev9.dist-info/METADATA,sha256=VnGwRMdIEo5AfuTcNNJIGorW9I7mCJAgyP-QtINPA6U,8000
698
- lfx_nightly-0.1.12.dev9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
699
- lfx_nightly-0.1.12.dev9.dist-info/entry_points.txt,sha256=1724p3RHDQRT2CKx_QRzEIa7sFuSVO0Ux70YfXfoMT4,42
700
- lfx_nightly-0.1.12.dev9.dist-info/RECORD,,
697
+ lfx_nightly-0.1.12.dev10.dist-info/METADATA,sha256=XrIP__1NjLO3AeNC4MExusj2l9Vwtj6_FwdaHXxB5Ho,8068
698
+ lfx_nightly-0.1.12.dev10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
699
+ lfx_nightly-0.1.12.dev10.dist-info/entry_points.txt,sha256=1724p3RHDQRT2CKx_QRzEIa7sFuSVO0Ux70YfXfoMT4,42
700
+ lfx_nightly-0.1.12.dev10.dist-info/RECORD,,