Comments (5)
Seem like those might be missing ENV variables.
Have you tried copying/renaming the .env.example
into .env
file? This would load the variables from the file to be used with the script.
If you've already do that then I think the problem would most likely be with .env file and how it's loaded on Windows. Please confirm and I'd be able to check further.
Thank you!
from blockagi.
Yep, you're right I missed that step now it's working!
from blockagi.
@bbecausereasonss Thank you for the bug report. We haven't tested much on Windows. I'll test and try to fix it tomorrow.
In the mean time if you can share you environment setup (Windows version, Python version, etc) that'd be super helpful.
from blockagi.
Python 11, Winx64, fresh Poetry install as per instructions on their website.
See more (Its asking for a lot of missing flags) ->
C:\Users\xxxx\Deep\blockagi>poetry run python main.py
Usage: main.py [OPTIONS]
Try 'main.py --help' for help.
Error: Missing option '--host'.
C:\Users\xxxx\Deep\blockagi>poetry run python main.py --host 127.0.0.1
Usage: main.py [OPTIONS]
Try 'main.py --help' for help.
Error: Missing option '--port'.
C:\Users\xxxx\Deep\blockagi>poetry run python main.py --host 127.0.0.1 --port 9898
Usage: main.py [OPTIONS]
Try 'main.py --help' for help.
Error: Missing option '--agent-role'.
C:\Users\xxxx\Deep\blockagi>poetry run python main.py --host 127.0.0.1 --port 9898
from blockagi.
Error on Windows..
(test) PS D:\test\BlockAGI> poetry install
Installing dependencies from lock file
Package operations: 62 installs, 3 updates, 0 removals
• Installing pyasn1 (0.5.0)
• Installing sniffio (1.3.0)
• Installing anyio (3.7.0)
• Installing cachetools (5.3.1)
• Updating charset-normalizer (3.2.0 -> 3.1.0)
• Installing frozenlist (1.3.3)
• Installing h11 (0.14.0)
• Installing hpack (4.0.0)
• Installing hyperframe (6.0.1)
• Installing marshmallow (3.19.0)
• Installing multidict (6.0.4)
• Installing mypy-extensions (1.0.0)
• Installing protobuf (4.23.3)
• Installing pyasn1-modules (0.3.0)
• Installing pyparsing (3.1.0)
• Installing rsa (4.9)
• Installing typing-extensions (4.6.3)
• Updating urllib3 (1.26.16 -> 2.0.3)
CalledProcessError
Command '['D:\\test\\Scripts\\python.exe', '-m', 'pip', 'uninstall', 'charset-normalizer', '-y']' returned non-zero exit status 2.
at ~\python\Lib\subprocess.py:571 in run
567│ # We don't call process.wait() as .__exit__ does that for us.
568│ raise
569│ retcode = process.poll()
570│ if check and retcode:
→ 571│ raise CalledProcessError(retcode, process.args,
572│ output=stdout, stderr=stderr)
573│ return CompletedProcess(process.args, retcode, stdout, stderr)
574│
575│
The following error occurred when trying to handle this error:
EnvCommandError
Command ['D:\\test\\Scripts\\python.exe', '-m', 'pip', 'uninstall', 'charset-normalizer', '-y'] errored with the following return code 2
Output:
Found existing installation: charset-normalizer 3.2.0
Uninstalling charset-normalizer-3.2.0:
Successfully uninstalled charset-normalizer-3.2.0
ERROR: Exception:
Traceback (most recent call last):
File "D:\test\Lib\site-packages\pip\_internal\cli\base_command.py", line 169, in exc_logging_wrapper
status = run_func(*args)
^^^^^^^^^^^^^^^
File "D:\test\Lib\site-packages\pip\_internal\commands\uninstall.py", line 110, in run
uninstall_pathset.commit()
File "D:\test\Lib\site-packages\pip\_internal\req\req_uninstall.py", line 432, in commit
self._moved_paths.commit()
File "D:\test\Lib\site-packages\pip\_internal\req\req_uninstall.py", line 278, in commit
save_dir.cleanup()
File "D:\test\Lib\site-packages\pip\_internal\utils\temp_dir.py", line 173, in cleanup
rmtree(self._path)
File "D:\test\Lib\site-packages\pip\_vendor\tenacity\__init__.py", line 291, in wrapped_f
return self(f, *args, **kw)
^^^^^^^^^^^^^^^^^^^^
File "D:\test\Lib\site-packages\pip\_vendor\tenacity\__init__.py", line 381, in __call__
do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\test\Lib\site-packages\pip\_vendor\tenacity\__init__.py", line 327, in iter
raise retry_exc.reraise()
^^^^^^^^^^^^^^^^^^^
File "D:\test\Lib\site-packages\pip\_vendor\tenacity\__init__.py", line 160, in reraise
raise self.last_attempt.result()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\python\Lib\concurrent\futures\_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\python\Lib\concurrent\futures\_base.py", line 401, in __get_result
raise self._exception
File "D:\test\Lib\site-packages\pip\_vendor\tenacity\__init__.py", line 384, in __call__
result = fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "D:\test\Lib\site-packages\pip\_internal\utils\misc.py", line 130, in rmtree
shutil.rmtree(dir, ignore_errors=ignore_errors, onerror=rmtree_errorhandler)
File "C:\Users\Administrator\python\Lib\shutil.py", line 759, in rmtree
return _rmtree_unsafe(path, onerror)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\python\Lib\shutil.py", line 622, in _rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
File "C:\Users\Administrator\python\Lib\shutil.py", line 620, in _rmtree_unsafe
os.unlink(fullname)
PermissionError: [WinError 5] Access is denied: 'D:\\test\\Lib\\site-packages\\~harset_normalizer\\md.cp311-win_amd64.pyd'
at D:\test\Lib\site-packages\poetry\utils\env.py:1525 in _run
1521│ output = ""
1522│ else:
1523│ output = subprocess.check_output(cmd, stderr=stderr, env=env, **kwargs)
1524│ except CalledProcessError as e:
→ 1525│ raise EnvCommandError(e, input=input_)
1526│
1527│ return decode(output)
1528│
1529│ def execute(self, bin: str, *args: str, **kwargs: Any) -> int:
from blockagi.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blockagi.