Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

run 'nile node' prompt error #108

Closed
acche opened this issue Apr 26, 2022 · 8 comments
Closed

run 'nile node' prompt error #108

acche opened this issue Apr 26, 2022 · 8 comments

Comments

@acche
Copy link

acche commented Apr 26, 2022

After run `nile node', it will display a lot of error:

....... File "/Users/x/Dev/my-project/env/lib/python3.8/site-packages/click/core.py", line 1657, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/Users/x/Dev/my-project/env/lib/python3.8/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File "/Users/x/Dev/my-project/env/lib/python3.8/site-packages/click/core.py", line 760, in invoke return __callback(*args, **kwargs) File "/Users/x/Dev/my-project/env/lib/python3.8/site-packages/nile/cli.py", line 193, in node node_command(host, port) File "/Users/x/Dev/my-project/env/lib/python3.8/site-packages/nile/core/node.py", line 21, in node subprocess.check_call(["starknet-devnet", "--host", host, "--port", str(port)]) File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['starknet-devnet', '--host', '127.0.0.1', '--port', '5000']' returned non-zero exit status 1.

OS: macOS 12.3.1 (m1)

@martriay
Copy link
Contributor

I cannot reproduce this. Do you have something else running on port 5000?

@acche
Copy link
Author

acche commented Apr 26, 2022

I had been close the airplay on macOS, I think there are no app using the port 5000.

I cannot reproduce this. Do you have something else running on port 5000?

@martriay
Copy link
Contributor

Can you run sudo lsof -i :5000 and check? Alternatively, run nile node --port 5001

@acche
Copy link
Author

acche commented Apr 27, 2022

After run sudo lsof -i :5000, it would not display anything.

And port to 5001 also display the some error with the port '5001'

Can you run sudo lsof -i :5000 and check? Alternatively, run nile node --port 5001

@martriay
Copy link
Contributor

what happens if you run starknet-devnet --host 127.0.0.1 --port 5000?

@acche
Copy link
Author

acche commented Apr 27, 2022

what happens if you run starknet-devnet --host 127.0.0.1 --port 5000?

WIth lots of error like as below:

d_for_schema generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata) File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 528, in _field_for_generic_type children = tuple( File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 529, in <genexpr> field_for_schema(arg, base_schema=base_schema, typ_frame=typ_frame) File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 718, in field_for_schema or _internal_class_schema(typ, base_schema, typ_frame) File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 393, in _internal_class_schema attributes.update( File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 396, in <genexpr> field_for_schema( File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 686, in field_for_schema generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata) File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 559, in _field_for_generic_type return field_for_schema( File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 686, in field_for_schema generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata) File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 528, in _field_for_generic_type children = tuple( File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 529, in <genexpr> field_for_schema(arg, base_schema=base_schema, typ_frame=typ_frame) File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 718, in field_for_schema or _internal_class_schema(typ, base_schema, typ_frame) File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 393, in _internal_class_schema attributes.update( File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 396, in <genexpr> field_for_schema( File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 686, in field_for_schema generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata) File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 559, in _field_for_generic_type return field_for_schema( File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 686, in field_for_schema generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata) File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 528, in _field_for_generic_type children = tuple( File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 529, in <genexpr> field_for_schema(arg, base_schema=base_schema, typ_frame=typ_frame) File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 718, in field_for_schema or _internal_class_schema(typ, base_schema, typ_frame) File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 393, in _internal_class_schema attributes.update( File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 396, in <genexpr> field_for_schema( File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 686, in field_for_schema generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata) File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 559, in _field_for_generic_type return field_for_schema( File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 686, in field_for_schema generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata) File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 528, in _field_for_generic_type children = tuple( File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 529, in <genexpr> field_for_schema(arg, base_schema=base_schema, typ_frame=typ_frame) File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 718, in field_for_schema or _internal_class_schema(typ, base_schema, typ_frame) File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 393, in _internal_class_schema attributes.update( File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 396, in <genexpr> field_for_schema( File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 686, in field_for_schema generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata) File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 559, in _field_for_generic_type return field_for_schema( File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 686, in field_for_schema generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata) File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 528, in _field_for_generic_type children = tuple( File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 529, in <genexpr> field_for_schema(arg, base_schema=base_schema, typ_frame=typ_frame) File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 718, in field_for_schema or _internal_class_schema(typ, base_schema, typ_frame) File "/Users/ac/x/my-project/env/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py", line 390, in _internal_class_schema type_hints = get_type_hints( File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/typing.py", line 1232, in get_type_hints value = _eval_type(value, base_globals, localns) File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/typing.py", line 272, in _eval_type ev_args = tuple(_eval_type(a, globalns, localns) for a in t.__args__) File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/typing.py", line 272, in <genexpr> ev_args = tuple(_eval_type(a, globalns, localns) for a in t.__args__) File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/typing.py", line 272, in _eval_type ev_args = tuple(_eval_type(a, globalns, localns) for a in t.__args__) File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/typing.py", line 272, in <genexpr> ev_args = tuple(_eval_type(a, globalns, localns) for a in t.__args__) RecursionError: maximum recursion depth exceeded

@martriay
Copy link
Contributor

That's an upstream error with Cairo itself, it should be fixed soon. In the meantime, downgrade marshmallow to patch it.

@acche
Copy link
Author

acche commented Apr 27, 2022

That's an upstream error with Cairo itself, it should be fixed soon. In the meantime, downgrade marshmallow to patch it.

It fixed the issue. Thanks @martriay

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

No branches or pull requests

2 participants