Lab 2.1 Development Environment set up
I am finding a lot of problems setting upt hte environment because the files are obsoleted. The last that I founs and I can´t solve is with : ./network.sh up createChannel -ca -s couchdb
This is the error:
from distutils.spawn import find_executable
ModuleNotFoundError: No module named 'distutils'
Can someone help me? Is there another tutorial that I can follow to set up the environment?
Answers
-
Hello @Tisa
Let's see if we can get to the bottom of this issue. It seems like you're encountering issues because distutils is not installed. This module is required by the Hyperledger Fabric sample scripts. Here's some suggestions to resolve this issue:
1. Install distutils:
If you're using Ubuntu, you can install distutils by running: sudo apt-get install python3-distutilsEnsure You Have Python Installed:
Make sure you have Python 3 installed: python3 --versionRe-run the Network Script: ./network.sh up createChannel -ca -s couchdb
Here are some additional resources, Fabric Development Environment Setup Guide for the latest best practices.
Please keep me posted on your progress, Bobbi
0 -
Hi Bobbijn,
I tried to run sudo apt-get install python3-distutils and got:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python3-distutils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another sourceE: Package 'python3-distutils' has no installation candidate
0 -
Hello @Tisa,
It looks like the package python3-distutils is not directly available in your package manager, which can happen depending on the version of Ubuntu you're using or your system's package sources. Here are a few alternative steps you can take to resolve the issue:
- Alternative Package Installation:
On some versions of Ubuntu,** python3-distutils** is included in the python3-lib2to3 package. You can try installing it by running:
bash
Copy code
sudo apt-get update
sudo apt-get install python3-lib2to3
If that doesn’t work, another method is to ensure that you have the universe repository enabled, which contains additional packages not included in the main repository:
bash
Copy code
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install python3-distutils- Verify Python Installation:
Double-check which version of Python 3 is installed:
bash
Copy code
python3 --version
Ensure that it’s Python 3.6 or newer, as older versions might not support all features needed for Hyperledger Fabric.
- Re-run the Network Script:
After setting up the environment, try to run the network script again:
bash
Copy code
./network.sh up createChannel -ca -s couchdb
If you continue to have issues, it might be helpful to consult the official Hyperledger Fabric documentation (https://hyperledger-fabric.readthedocs.io/) for updated instructions on setting up the development environment.
Hope This Helps, Bobbi0 - Alternative Package Installation:
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 750 Linux Foundation IT Professional Programs
- 373 Cloud Engineer IT Professional Program
- 169 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 4 DevOps & GitOps IT Professional Program
- 99 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 1 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 4 Cloud & Containers Training
- 1 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 2 Open Source Best Practice Training
- 1 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 792 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 87 Storage
- 769 Linux Distributions
- 81 Debian
- 68 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 106 Mobile Computing
- 18 Android
- 73 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 392 Off Topic
- 121 Introductions
- 181 Small Talk
- 29 Study Material
- 955 Programming and Development
- 310 Kernel Development
- 627 Software Development
- 984 Software
- 376 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)
