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 when run build.py #2

Closed
ybcc2015 opened this issue May 29, 2019 · 0 comments
Closed

error when run build.py #2

ybcc2015 opened this issue May 29, 2019 · 0 comments

Comments

@ybcc2015
Copy link

Hi man, thanks for your share!

An error occurred when I run python build.py, the error is as follows:

Traceback (most recent call last):
  File "build.py", line 30, in <module>
    extra_objects=extra_objects
  File "/root/anaconda3/envs/pcc_env/lib/python2.7/site-packages/torch/utils/ffi/__init__.py", line 159, in create_extension
    ffi.cdef(_typedefs + all_headers_source)
  File "/root/anaconda3/envs/pcc_env/lib/python2.7/site-packages/cffi/api.py", line 112, in cdef
    self._cdef(csource, override=override, packed=packed, pack=pack)
  File "/root/anaconda3/envs/pcc_env/lib/python2.7/site-packages/cffi/api.py", line 126, in _cdef
    self._parser.parse(csource, override=override, **options)
  File "/root/anaconda3/envs/pcc_env/lib/python2.7/site-packages/cffi/cparser.py", line 347, in parse
    self._internal_parse(csource)
  File "/root/anaconda3/envs/pcc_env/lib/python2.7/site-packages/cffi/cparser.py", line 352, in _internal_parse
    ast, macros, csource = self._parse(csource)
  File "/root/anaconda3/envs/pcc_env/lib/python2.7/site-packages/cffi/cparser.py", line 296, in _parse
    self.convert_pycparser_error(e, csource)
  File "/root/anaconda3/envs/pcc_env/lib/python2.7/site-packages/cffi/cparser.py", line 325, in convert_pycparser_error
    raise CDefError(msg)
cffi.CDefError: cannot parse "int roi_pooling_forward(int pooled_height, int pooled_width, float spatial_scale,"
<cdef source string>:29:82: Illegal character '\r'

Could you help me solve this error ?
Looking forward for your reply, thank you!

@ybcc2015 ybcc2015 closed this as completed Jun 4, 2019
@Wohoholo Wohoholo mentioned this issue Jan 12, 2021
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