sergeysatskiy / cdm-flowparser Goto Github PK
View Code? Open in Web Editor NEWPython control flow parser
License: GNU General Public License v3.0
Python control flow parser
License: GNU General Public License v3.0
Hello,
similarly to what happened in #7, now I see an error when installing cdmcfparser in Python 3.10. See the stacktrace below:
pip install cdmcfparser
Collecting cdmcfparser
Using cached cdmcfparser-2.4.1.tar.gz (117 kB)
Preparing metadata (setup.py) ... done
Using cached cdmcfparser-2.4.0.tar.gz (117 kB)
Preparing metadata (setup.py) ... done
Using cached cdmcfparser-2.3.2.tar.gz (116 kB)
Preparing metadata (setup.py) ... done
Using cached cdmcfparser-2.3.1.tar.gz (115 kB)
Preparing metadata (setup.py) ... done
Using cached cdmcfparser-2.3.0.tar.gz (115 kB)
Preparing metadata (setup.py) ... done
Using cached cdmcfparser-2.2.3.tar.gz (115 kB)
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for cdmcfparser, since package 'wheel' is not installed.
Installing collected packages: cdmcfparser
Running setup.py install for cdmcfparser ... error
error: subprocess-exited-with-error
× Running setup.py install for cdmcfparser did not run successfully.
│ exit code: 1
╰─> [24 lines of output]
pypandoc package is not installed: the markdown README.md convertion to rst failed: No module named 'pypandoc'
running install
/home/dgarijo/Documents/GitHub/inspect4py/env_3.10/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
file cdmcfparser.py (for module cdmcfparser) not found
file cdmcfparser.py (for module cdmcfparser) not found
running build_ext
building 'cdmcfparser' extension
creating build
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/src
creating build/temp.linux-x86_64-3.10/thirdparty
creating build/temp.linux-x86_64-3.10/thirdparty/pycxx
creating build/temp.linux-x86_64-3.10/thirdparty/pycxx/Src
x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ithirdparty/pycxx -Ithirdparty/pycxx/Src -Isrc -I/home/dgarijo/Documents/GitHub/inspect4py/env_3.10/include -I/usr/include/python3.10 -c src/cflowcomments.cpp -o build/temp.linux-x86_64-3.10/src/cflowcomments.o -Wno-unused -fomit-frame-pointer -DCDM_CF_PARSER_VERSION="2.2.3" -ffast-math -O2 -DPYCXX_PYTHON_2TO3
x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ithirdparty/pycxx -Ithirdparty/pycxx/Src -Isrc -I/home/dgarijo/Documents/GitHub/inspect4py/env_3.10/include -I/usr/include/python3.10 -c src/cflowfragments.cpp -o build/temp.linux-x86_64-3.10/src/cflowfragments.o -Wno-unused -fomit-frame-pointer -DCDM_CF_PARSER_VERSION="2.2.3" -ffast-math -O2 -DPYCXX_PYTHON_2TO3
In file included from src/cflowfragments.cpp:26:
src/cflowfragments.hpp:26:10: fatal error: node.h: No such file or directory
26 | #include <node.h>
| ^~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> cdmcfparser
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Is support for Python 3.10 planned? Thanks in advance
cd src && /Applications/Xcode.app/Contents/Developer/usr/bin/make all cd .. && CDM_PROJECT_BUILD_VERSION= python setup.py build_ext --inplace File "setup.py", line 53 'README.md convertion to rst failed', file=sys.stderr) ^ SyntaxError: invalid syntax make[1]: *** [all] Error 1 make: *** [all] Error 2
MacOS Sierra, python 3.6
Здравствуйте.
Прочитал вашу статью на Хабре. Мне очень понравилась ваша идея.
Моя система Ubuntu 16.04 32bit, python 2.7.12.
Хотел скомпилировать, при компиляции выдает ошибки вида:
In file included from thirdparty/pycxx/CXX/Objects.hxx:40:0, from src/cflowfragments.hpp:29, from src/cflowfragments.cpp:28: thirdparty/pycxx/CXX/Python2/Objects.hxx:1958:21: note: candidate: std::__cxx11::string Py::String::as_std_string(const char*, const char*) const std::string as_std_string( const char *encoding, const char *error="strict" ) const; ^ thirdparty/pycxx/CXX/Python2/Objects.hxx:1958:21: note: candidate expects 2 arguments, 0 provided src/cflowfragments.cpp: In member function ‘Py::Object ExceptPart::getDisplayValue(const Py::Tuple&)’: src/cflowfragments.cpp:3309:73: error: no matching function for call to ‘Py::String::as_std_string()’ std::string buf( Py::String( args[ 0 ] ).as_std_string() ); ^
Подскажите, что можно сделать.
Hello,
we have been using cdmcfparser
in one of our projects, but just found out that for Python 3.9.+ the library fails for most Python files we process.
The error is just: Segmentation fault (core dumped)
when using getControlFlowFromFile(self.path)
in cdmcfparser.py
.
The same function returns correctly for the same files in Python 3.7 and Python 3.8.
Is support for Python 3.9 planned?
Thanks in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.