This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 646
Error when running grumpy on Fedora 25 #288
Comments
What's the source file you're trying to compile?
…On Mon, Apr 17, 2017 at 8:34 PM Brigham Keys, Esq. ***@***.***> wrote:
I compiled and installed from source on Fedora 25 and I get this error
when I try to transpile a source file
Traceback (most recent call last):
File "/usr/bin/grumpc", line 119, in <module>
sys.exit(main(parser.parse_args()))
File "/usr/bin/grumpc", line 77, in main
visitor.visit(mod)
File "/usr/lib/python2.7/site-packages/pythonparser/algorithm.py", line 41, in visit
return self._visit_one(obj)
File "/usr/lib/python2.7/site-packages/pythonparser/algorithm.py", line 32, in _visit_one
return getattr(self, visit_attr)(node)
File "/usr/lib/python2.7/site-packages/grumpy/compiler/stmt.py", line 321, in visit_Module
self._visit_each(node.body)
File "/usr/lib/python2.7/site-packages/grumpy/compiler/stmt.py", line 735, in _visit_each
self.visit(node)
File "/usr/lib/python2.7/site-packages/pythonparser/algorithm.py", line 41, in visit
return self._visit_one(obj)
File "/usr/lib/python2.7/site-packages/pythonparser/algorithm.py", line 32, in _visit_one
return getattr(self, visit_attr)(node)
File "/usr/lib/python2.7/site-packages/grumpy/compiler/stmt.py", line 292, in visit_ImportFrom
self._write_py_context(node.lineno)
AttributeError: 'ImportFrom' object has no attribute 'lineno'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#288>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHLe1Zw7YKR6aeqMV9QrG-206MjwCsEks5rxC9FgaJpZM4M_1KC>
.
|
you can do this with literally any source file and it will propagate the same error |
I think I know what's going on: pythonparser is not being installed properly. When I do a fresh install and run grumpc I get:
I'll come up with a fix later today. |
trotterdylan
added a commit
to trotterdylan/grumpy
that referenced
this issue
Apr 22, 2017
make install was broken since we moved to pythonparser because it was not being copied into the install dir. Rather than just copying it into the PYTHONPATH alongside grumpy, I thought it better to embed it within the grumpy package so that it won't conflict with an installed pythonparser. This addresses: google#288
trotterdylan
added a commit
to trotterdylan/grumpy
that referenced
this issue
Apr 22, 2017
make install was broken since we moved to pythonparser because it was not being copied into the install dir. Rather than just copying it into the PYTHONPATH alongside grumpy, I thought it better to embed it within the grumpy package so that it won't conflict with an installed pythonparser. This addresses: google#288
trotterdylan
added a commit
that referenced
this issue
Apr 23, 2017
make install was broken since we moved to pythonparser because it was not being copied into the install dir. Rather than just copying it into the PYTHONPATH alongside grumpy, I thought it better to embed it within the grumpy package so that it won't conflict with an installed pythonparser. This addresses: #288
I think this is fixed in #291 Please reopen if you continue to have problems. |
I have a similar issue here on Fedora 25: #299 |
davidc05
added a commit
to davidc05/grumpy1
that referenced
this issue
Jul 20, 2020
make install was broken since we moved to pythonparser because it was not being copied into the install dir. Rather than just copying it into the PYTHONPATH alongside grumpy, I thought it better to embed it within the grumpy package so that it won't conflict with an installed pythonparser. This addresses: google/grumpy#288
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I compiled and installed from source on Fedora 25 and I get this error when I try to transpile a source file
The text was updated successfully, but these errors were encountered: