#Algorand setup issue

1 messages Β· Page 1 of 1 (latest)

orchid heath
#

My Algokit setup environment is ready, but when I run my smart contract, I am encountering several issues. I’m unable to understand these issues. Could you please assist me?

thorn summit
#

Hey @orchid heath !

Good to see algokit doctor run successfully. In the second picture when you algokit project run build your smart contract you encounter "no module named dotenv" to install that module use this command: pip install python-dotenv

Learn more about the above here:
https://pypi.org/project/python-dotenv/

Edit: Ive took a closer look at the picture and notice you have installed it. The issue might stem from how the .env file is being used or how the code is structured. If you'd like, share the smart contract code and any relevant .env configurations - it'll make it easier to pinpoint the problem! 😊

urban horizon
#

Hey, make sure the terminal is in the SUBPROJECT directory and not on the ROOT directory. In your case it would be one of the folders in the projects folder.

urban horizon
#

Also, once you are in the correct folder I'd do an algokit project bootstrap all for good measure.

orchid heath
#

The Algokit project bootstrap is not running perfectly; I am facing an issue with Poetry installation

orchid heath
#

I am facing this issue.@urban horizon @thorn summit

brittle trail
#

πŸ€” can you give us the versions of python, etc. you are using? algokit doctor might help you there

orchid heath
#

@brittle trail@urban horizon @thorn summit

thorn summit
#

Hey @orchid heath I recommend reinstalling Python. Download the latest version and make sure to check the box that says 'Add Python to PATH' during installation. This should resolve the problem! 😊

If you're comfortable with system settings, you can manually add Python 3 to your PATH. But let me know what you prefer and if your on mac, windows or linux πŸ™‚

orchid heath
#

@thorn summit Hello Sara, there is no issue with Python 3; the issue is with Algokit. The algokit init command is not running properly.

thorn summit
#

It says your project is initialized!

Go to your folders in vscode and open the 'blockchain' directory then enter the workspace. Your project should be there. Then when your in your workspace and blockchain directory try to run: algokit project bootstrap all

Then try to build your algokit generated template smart contract with algokit project run build. Lets get to this point πŸ™Œ

#

I just did an algokit init there, on the left hand side you can see the 'HelloWorld' project has been initilised, then you go to the workspace file and enter it.

After that run algokit project bootstrap all and then algokit project run build πŸ™‚

#

I recommend you check out this video about using LORA with your algokit project:
https://youtu.be/66quHZqcnJw?si=_T_xDMmwdV7mbXOE

it makes the developer journey more friendly especially with a good UI like LORA @orchid heath , let me know how you get on!

Lets just get the Hello World generated smart contract to work first 🫑 πŸ’ͺ

thorn summit
#

@orchid heath any updates friend?

deft junco
#

sorry about the lack of response, the issue has resolved but the smart contract couldn't be run because of the internet issue we are facing currently due to the political situation in the country. will keep you updated as soon as the internet is back on properly

thorn summit
orchid heath
#

Thank you, Sara, for your help. My Algokit project successfully ran the build command.@thorn summit

hard quailBOT
#

Gave +1 Rep to @thorn summit (current: #9 - 11)

rocky kayak
#

Algorand setup issue