Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't deploy simple smart contract #44

Closed
jobman opened this issue May 10, 2022 · 1 comment
Closed

Can't deploy simple smart contract #44

jobman opened this issue May 10, 2022 · 1 comment

Comments

@jobman
Copy link

jobman commented May 10, 2022

Hi i am trying to complete this tutorial:
https://github.com/romanovichim/TonFunClessons_ru/blob/main/1lesson/firstlesson.md
I've run into a problem that I can't complete it for some reason
I asked the author:
romanovichim/TonFunClessons_ru#1
he could not help in any way, he advised me to contact you

in addition, I can say that my computer had a problem with myLocalTON
this was due to the fact that AVX2 instructions are not supported on my processor, and it was successfully fixed:
neodix42/MyLocalTon@2229004

I will duplicate here what the console outputs to me:

INFO: 👻 Your smart contract project [←[32mD:\PyCharm\ton_lesson1\wallet←[0m] is now going to be ←[32mdeployed←[0m, get ready!
INFO: 🌈 Start building:
INFO: 🌲 Func compiled
INFO: 🤗 Run tests on ←[36m['D:\\PyCharm\\ton_lesson1\\wallet\\fift\\data.fif']←[0m
[ 1][t 0][2022-05-10 14:35:31.9943753][fift-main.cpp:180]       Error interpreting standard preamble file `Fift.fif`: cannot locate file `Fift.fif`
Check that correct include path is set by -I or by FIFTPATH environment variable, or disable standard preamble by -n.
INFO: 🌲 Tests passed
INFO: 🥳 Start contract manipulation
[ 1][t 0][2022-05-10 14:35:32.0719421][fift-main.cpp:180]       Error interpreting standard preamble file `Fift.fif`: cannot locate file `Fift.fif`
Check that correct include path is set by -I or by FIFTPATH environment variable, or disable standard preamble by -n.
Traceback (most recent call last):
  File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "D:\PyCharm\ton_lesson1\venv\Scripts\toncli.exe\__main__.py", line 7, in <module>
  File "d:\pycharm\ton_lesson1\venv\lib\site-packages\toncli\main.py", line 60, in main
    CommandsExecuter(command, string_kwargs, parser)
  File "d:\pycharm\ton_lesson1\venv\lib\site-packages\toncli\modules\utils\commands\commands_executer.py", line 40, in __init__
    self.command_mapper[command](self)
  File "d:\pycharm\ton_lesson1\venv\lib\site-packages\toncli\modules\utils\commands\commands_executer.py", line 71, in deploy_command
    return DeployCommand(self.string_kwargs, self.parser)
  File "d:\pycharm\ton_lesson1\venv\lib\site-packages\toncli\modules\utils\commands\command_classes\deploy_command.py", line 17, in __init__
    deployer.publish(real_args[2:])
  File "d:\pycharm\ton_lesson1\venv\lib\site-packages\toncli\modules\deploy_contract.py", line 86, in publish
    self.build(real_contracts)
  File "d:\pycharm\ton_lesson1\venv\lib\site-packages\toncli\modules\abstract\deployer.py", line 107, in build
    data.append(contract_manipulation(os.path.abspath(contract.to_save_location),
  File "d:\pycharm\ton_lesson1\venv\lib\site-packages\toncli\modules\utils\fift\commands.py", line 94, in contract_manipulation
    output = subprocess.check_output(command, cwd=getcwd() if not cwd else cwd)
  File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['D:\\PyCharm\\toncli\\ton-win64-binaries\\fift.exe', '-I', 'C:\\Users\\user\\AppData\\Local\\toncli\\toncli\\fift-libs', '-s', 'C:\\Users\\user\\AppData\\Local\\Temp\\tmpsdh86lw6.boc', '']' returned non-zero exit status 2.

If it is not hard for you, will glad for help

@tvorogme
Copy link
Contributor

tvorogme commented May 10, 2022

Hi. To fix this problem on windows - copy all fift-lib content into project root.

Original issue: #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants