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

AttributeError: 'Line' object has no attribute 'analyze' #5

Open
srossross opened this issue Sep 17, 2012 · 0 comments
Open

AttributeError: 'Line' object has no attribute 'analyze' #5

srossross opened this issue Sep 17, 2012 · 0 comments

Comments

@srossross
Copy link

Any Ideas on what I am doing wrong? This is my first time using frwap.

fwrapc src/loop.f95 --build --fcompiler=gfortran --name=loop_ext --out_dir=loop_ext --override



WARNING: While processing 'src/loop.f95' (mode='free')..
   28:  USE mod_turb
   29:  USE mod_coord
   30:#ifdef tracer <== no parse pattern found for "#ifdef tracer" in 'Subroutine' block.
WARNING: While processing 'src/loop.f95' (mode='free')..


...

    2:MODULE mod_param <== exception triggered here: <type 'exceptions.Exception'> 'Line' object has no attribute 'analyze'
    3:  INTEGER                                   :: IMT, JMT, KM
    4:  INTEGER                                   :: JMAX, LBT, NTRACMAX
    5:  INTEGER, PARAMETER                        :: MR=501 ! or 1001
Traceback (most recent call last):
  File "/usr/local/epd-64-722/bin/fwrapc", line 10, in <module>
    sys.exit(entry())
  File "/usr/local/epd-64-722/lib/python2.7/site-packages/fwrap/main.py", line 610, in entry
    return main(use_cmdline=True)
  File "/usr/local/epd-64-722/lib/python2.7/site-packages/fwrap/main.py", line 600, in main
    wrap(source_files, **parsed_options.__dict__)
  File "/usr/local/epd-64-722/lib/python2.7/site-packages/fwrap/main.py", line 207, in wrap
    f_ast = parse(source_files)
  File "/usr/local/epd-64-722/lib/python2.7/site-packages/fwrap/main.py", line 267, in parse
    ast = fwrap_parse.generate_ast(source_files)
  File "/usr/local/epd-64-722/lib/python2.7/site-packages/fwrap/fwrap_parse.py", line 39, in generate_ast
    block = api.parse(src, analyze=True)
  File "/usr/local/epd-64-722/lib/python2.7/site-packages/fwrap/fparser/api.py", line 157, in parse
    parser.analyze()
  File "/usr/local/epd-64-722/lib/python2.7/site-packages/fwrap/fparser/parsefortran.py", line 88, in analyze
    self.block.analyze()
  File "/usr/local/epd-64-722/lib/python2.7/site-packages/fwrap/fparser/utils.py", line 204, in new_func
    func(self)
  File "/usr/local/epd-64-722/lib/python2.7/site-packages/fwrap/fparser/block_statements.py", line 225, in analyze
    stmt.analyze()
  File "/usr/local/epd-64-722/lib/python2.7/site-packages/fwrap/fparser/utils.py", line 204, in new_func
    func(self)
  File "/usr/local/epd-64-722/lib/python2.7/site-packages/fwrap/fparser/block_statements.py", line 628, in analyze
    stmt.analyze()
  File "/usr/local/epd-64-722/lib/python2.7/site-packages/fwrap/fparser/utils.py", line 204, in new_func
    func(self)
  File "/usr/local/epd-64-722/lib/python2.7/site-packages/fwrap/fparser/statements.py", line 919, in analyze
    parser.analyze()
  File "/usr/local/epd-64-722/lib/python2.7/site-packages/fwrap/fparser/parsefortran.py", line 88, in analyze
    self.block.analyze()
  File "/usr/local/epd-64-722/lib/python2.7/site-packages/fwrap/fparser/utils.py", line 204, in new_func
    func(self)
  File "/usr/local/epd-64-722/lib/python2.7/site-packages/fwrap/fparser/block_statements.py", line 222, in analyze
    stmt.analyze()
  File "/usr/local/epd-64-722/lib/python2.7/site-packages/fwrap/fparser/utils.py", line 204, in new_func
    func(self)
  File "/usr/local/epd-64-722/lib/python2.7/site-packages/fwrap/fparser/block_statements.py", line 323, in analyze
    stmt.analyze()
AttributeError: 'Line' object has no attribute 'analyze'

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