Skip to content

Conversation

@treytomes
Copy link

This was required for me to successfully complete the build process in an Ubuntu system running under VirtualBox.

@ajh123
Copy link
Contributor

ajh123 commented Dec 2, 2022

For me this dosen't quite work on a Raspiberry Pi; I get the following error

scons: Reading SConscript files ...
NameError: name 'os' is not defined:
  File "/mnt/data_all/projects/gtmos/SConstruct", line 50:
    HOST_ENVIRONMENT = Environment(variables=VARS,
  File "/usr/lib/python3/dist-packages/SCons/Environment.py", line 982:
    variables.Update(self)
  File "/usr/lib/python3/dist-packages/SCons/Variables/__init__.py", line 187:
    exec(contents, {}, values)
  File "<string>", line 8:

However, the SConscript file can be read now!

@treytomes
Copy link
Author

I don't have a Raspberry Pi to test on right now. Interesting that the os package would be missing there; I thought it would be standardized across processors.

@ajh123
Copy link
Contributor

ajh123 commented Dec 3, 2022

I'm able to import os inside a normal python program. It might be how scons do things.

@ajh123
Copy link
Contributor

ajh123 commented Jun 6, 2023

Also on an Ubuntu VM inside WSL2 the process seems fine. Probably just a bug in Raspberry Pi python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants