question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make build error in MacOs

See original GitHub issue

I am following the instructions of installing from source in MacOs and when i run make build got this error:

python -c "import aw_server; print(aw_server.__version__)"
Traceback (most recent call last):
 File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'aw_server'
make: *** [build] Error 1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:45 (26 by maintainers)

github_iconTop GitHub Comments

2reactions
michaeljellycommented, Dec 23, 2021

Uninstalled poetry via curl, reinstalled it via pip3 install poetry, which meant I had the same python version between poetry and the virtualenv (when I ran poetry debug).

AND

I added a 3 to the Makefile python command (i.e. python3 -c "import aw_server; print(aw_server.__version__)")

and it seems to have worked!!

So future humans:

  1. try adding a 3 to the python command first
  2. make sure you install poetry using pip3, and check that when you run poetry debug it seems to be using the same python version
  3. disable poetry’s creating of new environments locally in the project with poetry config virtualenvs.create false --local
  4. if you have an M1 mac, make sure you run the make command with arch -x86_64

Hopefully if you do these things you don’t run into any of these problems! Thanks for your help @ErikBjare !

Maybe we should add the 3 to the Makefile? What do you think Erik?

2reactions
utkarshdalalcommented, Aug 25, 2020

@ErikBjare I had the same problem - sip wasn’t installing with python 3.8. After I read your previous comment and tried with python 3.7, it worked.

Can we document that somewhere so that future users running make build know they have to use <= python 3.7? What would an appropriate place to document this be?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using 'make' on OS X - Stack Overflow
I have a program I want to build, and when I went to use make to build it, I got a "command not...
Read more >
Clang linking error MacOS Big Sur | Apple Developer Forums
Hi All, I am trying to build my helloworld.cpp, but I am having problem since I updated to Big Sur. Below a verbose...
Read more >
[SOLVED] Build failing: Mac OS - Unix Makefiles - Ogre Forums
Attempting a terminal build. Building Unix Makefiles using homebrew for 3rd party libraries. After some simple issues (needing to run git ...
Read more >
Build Error on macOS Big Sur - RosettaCommons
Build Error on macOS Big Sur. #1. Top. Hi,. I am trying to build rosetta 3.12 on macOS Big Sur but I receive...
Read more >
Compiling and Building - Visual Studio for Mac - Microsoft Learn
This article describes how to compile and build projects and solutions ... for Mac can be used to build applications and create assemblies ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found