RTEMS | Waf error: cannot import name 'Scripting' from 'waflib' (unknown location) (#5508)

Joel Sherrill (@joel) gitlab at rtems.org
Mon Mar 2 19:26:15 UTC 2026



Joel Sherrill created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5508



## Summary

This is an error that I get occasionally and learned how to resolve without worrying about the underlying cause. The error from _waf configure_ in rtems.git is:

```
Traceback (most recent call last):
  File "/home/joel/rtems-work/rtems/./waf", line 171, in <module>
    from waflib import Scripting
ImportError: cannot import name 'Scripting' from 'waflib' (unknown location)
```

In the top rtems directory, there is a waf created directory:

```
$ ls -al .waf3-2.1.4-72787ce48f227ac42c4b0da24e780694/
total 104
drwxr-xr-x  3 joel joel  4096 Mar  2 09:51 .
drwxr-xr-x 26 joel joel 94208 Mar  2 09:51 ..
drwxr-xr-x  3 joel joel  4096 Mar  2 09:51 waflib
```

In case there is some useful information in the .waflib directory, I have uploaded the directory as [waflib.tar.bz2](/uploads/aef3588ccec8a67024a32c1a0267a291/waflib.tar.bz2)


## Steps to reproduce

I have no idea how to reproduce this but removing the .waf directory fixes the error.

<!-- Pre-set options
- milestone
-->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5508
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260302/b2f720e4/attachment.htm>


More information about the bugs mailing list