GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — build0.sh: ModuleNotFoundError: No module named 'asdl' · Issue #2855 · lcompilers/lpython

build0.sh: ModuleNotFoundError: No module named 'asdl' #2855

New issue
Copy link
New issue
Copy link
Closed
#2856
Closed
build0.sh: ModuleNotFoundError: No module named 'asdl'#2855
#2856
Copy link

Description

@moreati
moreati
opened on Jun 5, 2025
Issue body actions

The build/installation instructions in README.sh do no mention that the libasr submodule also needs to be populated. So running build0.sh in a freshly cloned lpython repo fails as follows

(lp) ➜  lpython git:(main) ./build0.sh 
+ ci/version.sh
++ git describe --tags --dirty
+ version=v0.22.0-116-g5880e96d2
+ version=0.22.0-116-g5880e96d2
+ echo 0.22.0-116-g5880e96d2
+ python grammar/asdl_py.py
Traceback (most recent call last):
  File "/Users/alex/src/py_wasm_play/lpython/grammar/asdl_py.py", line 9, in <module>
    import asdl
ModuleNotFoundError: No module named 'asdl'

Populating the submodule resolves the error

(lp) ➜  lpython git:(main) git submodule init 
Submodule 'libasr' (https://github.com/lfortran/lfortran.git) registered for path 'libasr'
(lp) ➜  lpython git:(main) git submodule update 
Cloning into '/Users/alex/src/py_wasm_play/lpython/libasr'...
Submodule path 'libasr': checked out '3916a0d3d8d82bcfe7b53a7c3392e80b0531b167'
(lp) ➜  lpython git:(main) ./build0.sh             
+ ci/version.sh
++ git describe --tags --dirty
+ version=v0.22.0-116-g5880e96d2
+ version=0.22.0-116-g5880e96d2
+ echo 0.22.0-116-g5880e96d2
+ python grammar/asdl_py.py
Assuming default values of Python.asdl and python_ast.py
+ python libasr/src/libasr/asdl_cpp.py grammar/Python.asdl src/lpython/python_ast.h
+ python libasr/src/libasr/asdl_cpp.py libasr/src/libasr/ASR.asdl libasr/src/libasr/asr.h
+ python libasr/src/libasr/wasm_instructions_visitor.py
Assuming default values of wasm_instructions.txt and wasm_visitor.h
+ python libasr/src/libasr/intrinsic_func_registry_util_gen.py
Assuming default values of intrinsic_function_registry_util.h
+ cd src/lpython/parser
+ re2c -W -b tokenizer.re -o tokenizer.cpp
+ cd src/lpython/parser
+ bison -Wall -d -r all parser.yy
+ python -c 'file = '\''src/lpython/parser/parser.tab.cc'\''
with open(file, '\''r'\'') as f: text = f.read()
with open(file, '\''w'\'') as f:
    f.write('\''[[maybe_unused]] int yynerrs'\''.join(text.split('\''int yynerrs'\'')))'
+ grep -n ''\''' src/lpython/parser/parser.yy
+ echo OK
OK

Activity

  1. moreati
    added 2 commits that reference this issue on Jun 5, 2025

    docs: Fix ModuleNotFoundError: No module named 'asdl'

    This issue will close once commit 9f35f90 is merged into the 'main' branch.
    9f35f90

    docs: Fix ModuleNotFoundError: No module named 'asdl'

    This issue will close once commit 178317f is merged into the 'main' branch.
    178317f
  2. namannimmo10
    closed this as completedin #2856on Jul 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.