Chialisp setup tutorial, programing on chia blockchain, starting by first installing Atom on windows


chialisp win 10 setup tutorial

This tutorial is for those with very little or no experience in programming, but would like to start learning Chialisp.

Since I started learning it just recently, by watching the tutorials on chialisp.com I noticed that all the tutorials were created for people who already have an experience in Python programing, which makes sense, since blockchain programing is really complex regardless Chialisp, and I would not think that any newbies would want to meddle in to this.

But in case there are people who are thinking about learning Chialisp and Chia Blockchain, but have never wrote a single line of code, when you start with the Chialisp tutorials you will have a problem setting up tools for Python, before you even touch Chialisp.

So, do not despair, I hope this article finds you, or you find it, and helps you configure Atom for Windows 10 operating system so that you may start learning Chialisp.

Chialisp

1. Enable execution of PowerShell scripts?

  1. Start Windows PowerShell with the “Run as Administrator” option. Only members of the Administrators group on the computer can change the execution policy.
  2. Enable running unsigned scripts by entering:

    set-executionpolicy remotesigned

Link: https://winbuzzer.com/2020/07/10/how-to-enable-powershell-scripts-in-windows-10-via-powershell-execution-policy-xcxwbt/

 

2. Enable Windows Long Path (Windows 10 – 1803 build)

Click Window key and type gpedit. msc, then press the Enter key. …

Navigate to Local Computer Policy > Computer Configuration > Administrative Templates > System > Filesystem.

Double click Enable NTFS long paths.

Select Enabled, then click OK.

 

3. Install node.js for windows, link: https://nodejs.org/en

Without it you wont be able to install language-chialisp 1.0.4 on Atom without this.

 

4. Install Atom text editor, link: https://atom.io

All chialisp video tutorials are made on this tool. Then go to “File” >”Settings” > “Install”, then type “chialisp”.

You will get “language-chialisp 1.0.4” as a result, install that package.

 

5. Create an environment to work on Chia BlockChain in a specific selected folder.

  1. Open Powershell, go to desired folder you created, ex. “Chiatesting” and type “
    py -m venv venv

    , this command will create a virtual Python environment in desired folder

  2. Type
    .\venv\Scripts\activate

    to activate scripts

  3. Type
    pip install chia-dev-tools

    to install Chia dev tools

You need to do all these steps before starting a chialisp project in your Atom text editor.

Here is the URL for the complete Chialisp setup: https://chialisp.com/docs/tutorials/tools_and_setup

 

While installing chia-dev-tools, if you get an error like this:

 ERROR: Command errored out with exit status 1:

   command: ‘F:\chiadev\venv\Scripts\python.exe’ ‘F:\chiadev\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py’ get_requires_for_build_wheel ‘C:\Users\ADMINI~1\AppData\Local\Temp\tmpwp7luqc4’

       cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-jg8yu80r\chiavdf_56811d61ef004d39893b66bbf49798c5

  Complete output (47 lines):

  C:\Users\Administrator\AppData\Local\Temp\pip-build-env-151qksrf\overlay\Lib\site-packages\setuptools\_distutils\dist.py:275: UserWarning: Unknown distribution option: ‘build_requires’

    warnings.warn(msg)

  running egg_info

  writing chiavdf.egg-info\PKG-INFO

  writing dependency_links to chiavdf.egg-info\dependency_links.txt

  writing top-level names to chiavdf.egg-info\top_level.txt

  reading manifest file ‘chiavdf.egg-info\SOURCES.txt’

  Traceback (most recent call last):

    File “F:\chiadev\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py”, line 349, in <module>

      main()

    File “F:\chiadev\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py”, line 331, in main

      json_out[‘return_val’] = hook(**hook_input[‘kwargs’])

    File “F:\chiadev\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py”, line 117, in get_requires_for_build_wheel

      return hook(config_settings)

    File “C:\Users\Administrator\AppData\Local\Temp\pip-build-env-151qksrf\overlay\Lib\site-packages\setuptools\build_meta.py”, line 161, in get_requires_for_build_wheel

      return self._get_build_requires(

    File “C:\Users\Administrator\AppData\Local\Temp\pip-build-env-151qksrf\overlay\Lib\site-packages\setuptools\build_meta.py”, line 142, in _get_build_requires

      self.run_setup()

    File “C:\Users\Administrator\AppData\Local\Temp\pip-build-env-151qksrf\overlay\Lib\site-packages\setuptools\build_meta.py”, line 157, in run_setup

      exec(compile(code, __file__, ‘exec’), locals())

    File “setup.py”, line 247, in <module>

      setup(

    File “C:\Users\Administrator\AppData\Local\Temp\pip-build-env-151qksrf\overlay\Lib\site-packages\setuptools\__init__.py”, line 155, in setup

      return distutils.core.setup(**attrs)

    File “C:\Users\Administrator\AppData\Local\Temp\pip-build-env-151qksrf\overlay\Lib\site-packages\setuptools\_distutils\core.py”, line 148, in setup

      return run_commands(dist)

    File “C:\Users\Administrator\AppData\Local\Temp\pip-build-env-151qksrf\overlay\Lib\site-packages\setuptools\_distutils\core.py”, line 163, in run_commands

      dist.run_commands()

    File “C:\Users\Administrator\AppData\Local\Temp\pip-build-env-151qksrf\overlay\Lib\site-packages\setuptools\_distutils\dist.py”, line 967, in run_commands

      self.run_command(cmd)

    File “C:\Users\Administrator\AppData\Local\Temp\pip-build-env-151qksrf\overlay\Lib\site-packages\setuptools\_distutils\dist.py”, line 986, in run_command

      cmd_obj.run()

    File “C:\Users\Administrator\AppData\Local\Temp\pip-build-env-151qksrf\overlay\Lib\site-packages\setuptools\command\egg_info.py”, line 295, in run

      self.find_sources()

    File “C:\Users\Administrator\AppData\Local\Temp\pip-build-env-151qksrf\overlay\Lib\site-packages\setuptools\command\egg_info.py”, line 302, in find_sources

      mm.run()

    File “C:\Users\Administrator\AppData\Local\Temp\pip-build-env-151qksrf\overlay\Lib\site-packages\setuptools\command\egg_info.py”, line 537, in run

      self.add_defaults()

    File “C:\Users\Administrator\AppData\Local\Temp\pip-build-env-151qksrf\overlay\Lib\site-packages\setuptools\command\egg_info.py”, line 581, in add_defaults

      self.read_manifest()

    File “C:\Users\Administrator\AppData\Local\Temp\pip-build-env-151qksrf\overlay\Lib\site-packages\setuptools\command\sdist.py”, line 195, in read_manifest

      self.filelist.append(line)

    File “C:\Users\Administrator\AppData\Local\Temp\pip-build-env-151qksrf\overlay\Lib\site-packages\setuptools\command\egg_info.py”, line 479, in append

      path = convert_path(item)

    File “C:\Users\Administrator\AppData\Local\Temp\pip-build-env-151qksrf\overlay\Lib\site-packages\setuptools\_distutils\util.py”, line 130, in convert_path

      raise ValueError(“path ‘%s’ cannot end with ‘/'” % pathname)

  ValueError: path ‘./’ cannot end with ‘/’

  —————————————-

WARNING: Discarding https://files.pythonhosted.org/packages/ed/68/57df6c7e70139bcdef51f75e7020345197064a5a1814c228d61c12057d9f/chiavdf-1.0.2.tar.gz#sha256=6121b8023f6077bd8d3a00d2614d243e7fe7673f4fcdaf4513d5a81bf1f83d6c (from https://pypi.org/simple/chiavdf/) (requires-python:>=3.7). Command errored out with exit status 1: ‘F:\chiadev\venv\Scripts\python.exe’ ‘F:\chiadev\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py’ get_requires_for_build_wheel ‘C:\Users\ADMINI~1\AppData\Local\Temp\tmpwp7luqc4’ Check the logs for full command output.

Collecting chia-dev-tools

  Downloading chia_dev_tools-1.0.2-py3-none-any.whl (32 kB)

  Downloading chia_dev_tools-1.0.1-py3-none-any.whl (28 kB)

Collecting clvm-rs>=0.1.1

  Downloading clvm_rs-0.1.20-cp37-abi3-win_amd64.whl (272 kB)

     |████████████████████████████████| 272 kB 6.8 MB/s

Collecting chia-dev-tools

  Downloading chia_dev_tools-0.1.0-py3-none-any.whl (28 kB)

ERROR: Could not find a version that satisfies the requirement chiavdf==1.0.2 (from chia-blockchain) (from versions: 0.2b1, 0.2b2, 0.2b3, 0.2b4, 0.2b6, 0.3b1, 0.3b2, 0.3b3, 0.3b4, 0.3b5, 0.3b6, 0.3b7, 0.3b8, 0.3b9, 0.3b10, 0.3b11, 0.3b12, 0.9, 0.12, 0.12.1, 0.12.2, 0.12.3, 0.12.4, 0.12.5, 0.12.6, 0.12.7, 0.12.8, 0.12.9, 0.12.10, 0.12.11, 0.12.12, 0.12.13, 0.12.14, 0.12.15, 0.12.16, 0.12.17, 0.12.18, 0.12.19, 0.12.20, 0.12.21, 0.12.22, 0.12.23, 0.12.24, 0.12.25b0, 0.12.25, 0.12.26, 0.12.27, 0.12.28, 0.13.0b0, 0.13.0b1, 0.13.0b2, 0.13.0b3, 0.13.0b4, 0.13.0b5, 0.13.0b6, 0.13.0, 0.13.1b1, 0.13.1b2, 0.13.1, 0.13.2b1, 0.13.2, 0.13.3, 0.13.4b0, 0.13.4, 0.13.5b0, 0.14.0, 0.14.1b0, 0.15.0, 0.15.1b0, 0.15.1, 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.4rc1)

ERROR: No matching distribution found for chiavdf==1.0.2

 

You can solve it by manually installing  https://pypi.org/project/chiavdf/

In your powershell type:

pip install wheel setuptools_scm pybind11

 

If this was of any help, write us a comment.

Best Regards

 

 

 

Rating: 5.00/5. From 4 votes.
Please wait...

2 comments on “Chialisp setup tutorial, programing on chia blockchain, starting by first installing Atom on windows

ldds

This is great, and it is also a particularly important introductory document. It would be better if there was forum support.

Rating: 5.00/5. From 3 votes.
Please wait...
Reply

There is a forum support at https://chiaforum.com/ 🙂

Rating: 5.00/5. From 2 votes.
Please wait...
Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.