-
Notifications
You must be signed in to change notification settings - Fork 18
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
Could not compile on 16.04.5 LTS Xenial Xerus (Was: How to transcompile python code that have logging or psutil libraries imported.) #112
Comments
Followed the above mentioned wiki.
|
Hi, @nutant-h The README is outdated. I should update it. Sorry for that. Please follow the following (copied from #79 (comment)):
cd grumpy-tools-src/
python setup.py develop
cd grumpy-runtime-src/
python setup.py develop
$ grumpy -c 'import sys; print sys.version'
2.7.13 This should be working. |
I created an issue to track the update of README on #113. Thanks for reporting. Please feed back if my instructions had worked or not. Are the instructions clear enough? |
Hi @alanjds I got error while doing
This is the error;
|
This is strange, as we have automated tests for Linux. A couple of questions:
I am trying to reproduce here, but it works for me |
Hi What version/distribution of Linux you are using?
What version of Python (python --version)? Installed via apt/yum?
The error persists if trying in a virtualenv? |
I tried in virtualenv and it worked till the point where I did
and at the end got this;
I did copied the logging Lib from CPython 2.7 repo into third_party/stdlib. |
So, it is not compiling Last thing: please try with an standard user, not root. I will try to create a docker machine matching yours and reproduce it. Thanks for the effort. |
Tried with
|
There is two issues:
The 1st issue is because the parser on The 2nd issue should be a collateral of the 1st one. If you want, please try the branch |
I also hit |
I am trying to transcompile a Python file into Go.
Following the README file I installed grumpy, then tested it;
#echo 'import sys; print sys.version' | grumprun
2.7.13
works fine.
My python code needs logging and psutil libraries imported;
but executing
echo 'import logging, psutil, sys; print sys.version' | grumprun
throws the following error.I am sure there must be a way to use other libraries. How can I use logging library?
I am just not able to find the documentations, need help.
Thank you.
The text was updated successfully, but these errors were encountered: