forked from safl/pychapel
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
I have two files.
call.py
from pych.extern import Chapel
@Chapel(sfile='./response.chpl')
def shout_out():
return None
if __name__=="__main__":
shout_out()
and response.chpl
module Response{
export
proc shout_out() {
writeln("HI DEE HI DEE HI DEE HI!");
}
}
They are next to each other in the same directory. I have sourced the SubGenius' venv.sh as in this ticket: #75
When I was least expecting it, I got attacked by an error log:
(pychapel) > pych --compile response.chpl
Compile this False
Traceback (most recent call last):
File "/home/buddha314/.virtualenvs/pychapel/bin/pych", line 210, in <module>
retval = cmd_exec(cmd_args)
File "/home/buddha314/.virtualenvs/pychapel/bin/pych", line 26, in inner
return func(*args, **kwargs)
File "/home/buddha314/.virtualenvs/pychapel/bin/pych", line 98, in compile
(source_file, output_file, wrap_fp) = moduralize(sfile)
File "/home/buddha314/.virtualenvs/pychapel/local/lib/python2.7/site-packages/pych/compiler.py", line 193, in moduralize
source = chpl_spizer.load(source_file) # Load source-file source
File "/home/buddha314/.virtualenvs/pychapel/local/lib/python2.7/site-packages/pych/specializer.py", line 83, in load
path = self.abs_path(filename)
File "/home/buddha314/.virtualenvs/pychapel/local/lib/python2.7/site-packages/pych/specializer.py", line 61, in abs_path
if os.path.isabs(filename): # Absolute, just use it.
File "/home/buddha314/.virtualenvs/pychapel/lib/python2.7/posixpath.py", line 54, in isabs
return s.startswith('/')
AttributeError: 'bool' object has no attribute 'startswith'
I blame myself, really... But PyChapel may have a bug in it.
Reactions are currently unavailable