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

PyrexScanner' object has no attribute 'position' #75

Closed
ever4cyth opened this issue Dec 23, 2014 · 2 comments
Closed

PyrexScanner' object has no attribute 'position' #75

ever4cyth opened this issue Dec 23, 2014 · 2 comments
Labels

Comments

@ever4cyth
Copy link

Cythonizing quantlib/cashflow.pyx
Traceback (most recent call last):
File "setup.py", line 223, in
ext_modules = collect_extensions(),
File "setup.py", line 202, in collect_extensions
for dirpath in cython_extension_directories
File "/home/magnolia/python/lib/python2.7/site-packages/Cython-0.19.1-py2.7-linux-x86_64.egg/Cython/Build/Dependencies.py", line 840, in cythonize
cythonize_one(args[1:])
File "/home/magnolia/python/lib/python2.7/site-packages/Cython-0.19.1-py2.7-linux-x86_64.egg/Cython/Build/Dependencies.py", line 942, in cythonize_one
result = compile([pyx_file], options)
File "/home/magnolia/python/lib/python2.7/site-packages/Cython-0.19.1-py2.7-linux-x86_64.egg/Cython/Compiler/Main.py", line 629, in compile
return compile_multiple(source, options)
File "/home/magnolia/python/lib/python2.7/site-packages/Cython-0.19.1-py2.7-linux-x86_64.egg/Cython/Compiler/Main.py", line 607, in compile_multiple
result = run_pipeline(source, options, context=context)
File "/home/magnolia/python/lib/python2.7/site-packages/Cython-0.19.1-py2.7-linux-x86_64.egg/Cython/Compiler/Main.py", line 438, in run_pipeline
pipeline = Pipeline.create_pyx_pipeline(context, options, result)
File "/home/magnolia/python/lib/python2.7/site-packages/Cython-0.19.1-py2.7-linux-x86_64.egg/Cython/Compiler/Pipeline.py", line 238, in create_pyx_pipeline
create_pipeline(context, mode, exclude_classes=exclude_classes),
File "/home/magnolia/python/lib/python2.7/site-packages/Cython-0.19.1-py2.7-linux-x86_64.egg/Cython/Compiler/Pipeline.py", line 131, in create_pipeline
from .ParseTreeTransforms import WithTransform, NormalizeTree, PostParse, PxdPostParse
File "/home/magnolia/python/lib/python2.7/site-packages/Cython-0.19.1-py2.7-linux-x86_64.egg/Cython/Compiler/ParseTreeTransforms.py", line 1402, in
class AnalyseDeclarationsTransform(EnvTransform):
File "/home/magnolia/python/lib/python2.7/site-packages/Cython-0.19.1-py2.7-linux-x86_64.egg/Cython/Compiler/ParseTreeTransforms.py", line 1410, in AnalyseDeclarationsTransform
""", level='c_class', pipeline=[NormalizeTree(None)])
File "/home/magnolia/python/lib/python2.7/site-packages/Cython-0.19.1-py2.7-linux-x86_64.egg/Cython/Compiler/TreeFragment.py", line 214, in init
mod = t = parse_from_strings(name, fmt_code, fmt_pxds, level=level, initial_pos=initial_pos)
File "/home/magnolia/python/lib/python2.7/site-packages/Cython-0.19.1-py2.7-linux-x86_64.egg/Cython/Compiler/TreeFragment.py", line 80, in parse_from_strings
tree = Parsing.p_code(scanner, level=level, ctx=ctx)
File "/home/magnolia/python/lib/python2.7/site-packages/Cython-0.19.1-py2.7-linux-x86_64.egg/Cython/Compiler/Parsing.py", line 3148, in p_code
body = p_statement_list(s, ctx(level = level), first_statement = 1)
File "/home/magnolia/python/lib/python2.7/site-packages/Cython-0.19.1-py2.7-linux-x86_64.egg/Cython/Compiler/Parsing.py", line 1916, in p_statement_list
pos = s.position()
AttributeError: 'Cython.Compiler.Scanning.PyrexScanner' object has no attribute 'position'
make: *
* [build] Error 1

@dpinte
Copy link
Member

dpinte commented Dec 25, 2014

@ever4cyth the issue is outside of the PyQL code. It sounds like a problem with your Cython install ... I can't replicate it.

@dpinte dpinte added the invalid label Dec 27, 2014
@dpinte
Copy link
Member

dpinte commented Dec 27, 2014

Closing as invalid for now. Feel free to re-open if appropriate

@dpinte dpinte closed this as completed Dec 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants