For those using Visual Studio Code, they have extensions for remote development so you can connect to your VPS from your local machine. Highly recommended.
Figure it out ! You will need to give specific permissions to the /tmp directory where you use does not have permissions to access - sudo chown "username::"username" /tmp/.solcx-lock-0.6.12
For those using Windows, as of Windows 10 there is a built in OpenSSH client. So no need for Putty anymore
https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse
For those using Visual Studio Code, they have extensions for remote development so you can connect to your VPS from your local machine. Highly recommended.
https://code.visualstudio.com/docs/remote/ssh
Fantastic! I don't use Windows much, didn't realize they had integrated SSH.
(about damn time)
I setup everything correctly, however, I am getting this error. Does anyone have a solution?
Error - (.venv) bot@localhost:~/bots$ python unstablewatcher.py
Enter password for "test_account":
Loading Contracts:
Fetching source of 0xd586E7F844cEa2F87f50152665BCbc2C279D8d70 from api.snowtrace.io...
Fetching source of 0x130966628846BFd36ff31a822705796e8cb8C18D from api.snowtrace.io...
Traceback (most recent call last):
File "/home/bot/.venv/lib/python3.9/site-packages/brownie/project/compiler/solidity.py", line 90, in set_solc_version
solcx.set_solc_version(version, silent=True)
File "/home/bot/.venv/lib/python3.9/site-packages/solcx/install.py", line 219, in set_solc_version
_default_solc_binary = get_executable(version, solcx_binary_path)
File "/home/bot/.venv/lib/python3.9/site-packages/solcx/install.py", line 194, in get_executable
raise SolcNotInstalled(
solcx.exceptions.SolcNotInstalled: solc 0.8.2 has not been installed. Use solcx.install_solc('0.8.2') to install.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/bot/bots/unstablewatcher.py", line 17, in <module>
mim_contract = Contract.from_explorer('0x130966628846bfd36ff31a822705796e8cb8c18d')
File "/home/bot/.venv/lib/python3.9/site-packages/brownie/network/contract.py", line 1186, in from_explorer
build_json = compiler.compile_and_format(
File "/home/bot/.venv/lib/python3.9/site-packages/brownie/project/compiler/__init__.py", line 121, in compile_and_format
set_solc_version(version)
File "/home/bot/.venv/lib/python3.9/site-packages/brownie/project/compiler/solidity.py", line 97, in set_solc_version
install_solc(version)
File "/home/bot/.venv/lib/python3.9/site-packages/brownie/project/compiler/solidity.py", line 105, in install_solc
solcx.install_solc(version, show_progress=True)
File "/home/bot/.venv/lib/python3.9/site-packages/solcx/install.py", line 433, in install_solc
process_lock = get_process_lock(str(version))
File "/home/bot/.venv/lib/python3.9/site-packages/solcx/utils/lock.py", line 28, in get_process_lock
_locks[lock_id] = UnixLock(lock_id)
File "/home/bot/.venv/lib/python3.9/site-packages/solcx/utils/lock.py", line 40, in __init__
self._lock_file = self._lock_path.open("w")
File "/usr/lib/python3.9/pathlib.py", line 1252, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/usr/lib/python3.9/pathlib.py", line 1120, in _opener
return self._accessor.open(self, flags, mode)
PermissionError: [Errno 13] Permission denied: '/tmp/.solcx-lock-0.8.2'
Figure it out ! You will need to give specific permissions to the /tmp directory where you use does not have permissions to access - sudo chown "username::"username" /tmp/.solcx-lock-0.6.12