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

Error found when running python setup.py install #112

Open
dannyng1988 opened this issue Apr 20, 2021 · 1 comment
Open

Error found when running python setup.py install #112

dannyng1988 opened this issue Apr 20, 2021 · 1 comment

Comments

@dannyng1988
Copy link

Rasa NLU version:
Rasa Version : 2.5.0
Minimum Compatible Version: 2.2.0a1
Rasa SDK Version : 2.5.0
Rasa X Version : 0.38.1
Python Version : 3.8.5

Operating system (windows, osx, ...):
Mac OS Big Sur 11.2.3 (20D91)

Content of model configuration file:

Sorry, I don't know which file you are referring to.

Issue:
tornado/speedups.c:60:4: error: use of undeclared identifier 'PyModuleDef_HEAD_INIT'
PyModuleDef_HEAD_INIT,
^
tornado/speedups.c:59:27: error: variable has incomplete type 'struct PyModuleDef'
static struct PyModuleDef speedupsmodule = {
^
tornado/speedups.c:59:15: note: forward declaration of 'struct PyModuleDef'
static struct PyModuleDef speedupsmodule = {
^
tornado/speedups.c:69:12: error: implicit declaration of function 'PyModule_Create' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return PyModule_Create(&speedupsmodule);
^
tornado/speedups.c:69:12: note: did you mean '_PyModule_Clear'?
/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/moduleobject.h:19:18: note: '_PyModule_Clear' declared here
PyAPI_FUNC(void) _PyModule_Clear(PyObject *);
^
3 errors generated.
command 'cc' failed with exit status 1
/tmp/easy_install-AwFxk8/tornado-6.1/setup.py:106: UserWarning:


WARNING: The tornado.speedups extension module could not
be compiled. No C extensions are essential for Tornado to run,
although they do result in significant speed improvements for
websockets.
The output above this warning shows how the compilation failed.

Here are some hints for popular operating systems:

If you are seeing this message on Linux you probably need to
install GCC and/or the Python development package for your
version of Python.

Debian and Ubuntu users should issue the following command:

$ sudo apt-get install build-essential python-dev

RedHat and CentOS users should issue the following command:

$ sudo yum install gcc python-devel

Fedora users should issue the following command:

$ sudo dnf install gcc python-devel

MacOS users should run:

$ xcode-select --install

"The output above "
File "build/bdist.macosx-11.2-x86_64/egg/tornado/options.py", line 134
def init(self) -> None:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/auth.py", line 90
callback_uri: Optional[str] = None,
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/concurrent.py", line 52
def is_future(x: Any) -> bool:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/escape.py", line 43
def xhtml_escape(value: Union[str, bytes]) -> str:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/web.py", line 205
application: "Application",
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/queues.py", line 60
future: Future, timeout: Union[None, float, datetime.timedelta]
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/httpclient.py", line 91
async_client_class: "Optional[Type[AsyncHTTPClient]]" = None,
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/test/queues_test.py", line 166
async def f():
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/test/httpserver_test.py", line 54
async def read_stream_body(stream):
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/test/gen_test.py", line 383
async def f2():
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/test/concurrent_test.py", line 115
def test_future(self: typing.Any):
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/test/web_test.py", line 2376
def test_flow_control_fixed_body(self: typing.Any):
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/test/locks_test.py", line 359
async def f():
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/test/ioloop_test.py", line 350
async def callback():
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/test/simple_httpclient_test.py", line 149
def get_app(self: typing.Any):
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/test/httputil_test.py", line 28
def form_data_args() -> Tuple[Dict[str, List[bytes]], Dict[str, List[HTTPFile]]]:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/test/websocket_test.py", line 202
async def open(self):
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/test/util_test.py", line 227
print("hello", file=f)
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/test/netutil_test.py", line 45
def test_localhost(self: typing.Any):
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/test/testing_test.py", line 76
async def callback():
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/test/tcpserver_test.py", line 50
async def handle_stream(self, stream, address):
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/test/asyncio_test.py", line 58
x = yield from event_loop.run_in_executor(None, lambda: 42)
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/test/iostream_test.py", line 61
def test_connection_closed(self: typing.Any):
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/gen.py", line 131
def _value_from_stopiteration(e: Union[StopIteration, "Return"]) -> Any:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/iostream.py", line 98
def init(self, real_error: Optional[BaseException] = None) -> None:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/log.py", line 55
def _stderr_supports_color() -> bool:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/util.py", line 53
def _get_emulated_is_finalizing() -> Callable[[], bool]:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/platform/asyncio.py", line 45
def fileno(self) -> int:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/platform/caresresolver.py", line 31
def initialize(self) -> None:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/platform/twisted.py", line 57
def initialize(self) -> None:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/locks.py", line 41
def init(self) -> None:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/httpserver.py", line 144
def init(self, *args: Any, **kwargs: Any) -> None:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/netutil.py", line 56
port: int,
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/httputil.py", line 67
def _normalize_header(name: str) -> str:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/ioloop.py", line 67
def fileno(self) -> int:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/routing.py", line 194
self, request: httputil.HTTPServerRequest, **kwargs: Any
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/tcpserver.py", line 110
ssl_options: Optional[Union[Dict[str, Any], ssl.SSLContext]] = None,
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/template.py", line 227
def filter_whitespace(mode: str, text: str) -> str:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/locale.py", line 61
def get(*locale_codes: str) -> "Locale":
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/curl_httpclient.py", line 50
self, max_clients: int = 10, defaults: Optional[Dict[str, Any]] = None
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/process.py", line 48
def cpu_count() -> int:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/autoreload.py", line 118
def start(check_time: int = 500) -> None:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/testing.py", line 52
def bind_unused_port(reuse_port: bool = False) -> Tuple[socket.socket, int]:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/simple_httpclient.py", line 53
def init(self, message: str) -> None:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/http1connection.py", line 43
def init(self) -> None:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/tcpclient.py", line 57
addrinfo: List[Tuple],
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/websocket.py", line 63
def compress(self, data: bytes) -> bytes:
^
SyntaxError: invalid syntax

File "build/bdist.macosx-11.2-x86_64/egg/tornado/wsgi.py", line 51
def to_wsgi_str(s: bytes) -> str:
^
SyntaxError: invalid syntax

zip_safe flag not set; analyzing archive contents...
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/bdist_egg.py:425: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
symbols = dict.fromkeys(iter_symbols(code))
tornado.test.locale_test: module references file
tornado.test.options_test: module references file
tornado.test.template_test: module references file
No eggs found in /tmp/easy_install-AwFxk8/tornado-6.1/egg-dist-tmp-t2zqwP (setup script problem?)
error: The 'tornado' distribution was not found and is required by matplotlib

@dannyng1988
Copy link
Author

Can someone help?

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

1 participant