I´m trying to install the xblock SDK but the installation instructions are a bit vague (or I know too little about virtual environments for Python). I don´t know what I need to do on step 4. When I´ve activated the virtual environment and run “make install” I get an error saying
make: *** No rule to make target ‘install’. Stop.
How do I set the Xblock entry points?
Installation
This code runs on Python 3.5 or newer.
Install standard development libraries. Here’s how you do it on Ubuntu or Debian:
Alternately, for the non-docker approach, the commands you need are as follows, but may not work if you don’t have the correct version of python or the correct system dependencies installed. However, I just tried these commands on my mac and they worked without issue.
git clone git@github.com:edx/xblock-sdk.git
cd xblock-sdk
python3 -m venv venv
source venv/bin/activate
make install
python3 manage.py migrate
python3 manage.py runserver
It’s probably worth mentioning that as an XBlock developer, I personally don’t use the XBlock SDK anymore, and just develop and test my XBlock directly in Studio+LMS. The XBlock SDK is useful for learning XBlocks and testing very simple XBlocks but for anything complex it acts differently than the LMS so is less useful.
You are using an old version of python - that’s why it’s not working. Create the virtual environment using Python 3.8 and it should work. Or follow the docker instructions which take care of those details.