Code Monkey home page Code Monkey logo

cdm-flowparser's People

Contributors

fukanchik avatar sergeysatskiy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

topin89 rafis gridl

cdm-flowparser's Issues

Support for Python 3.9?

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!

compilation error

Здравствуйте.
Прочитал вашу статью на Хабре. Мне очень понравилась ваша идея.
Моя система 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() ); ^

Подскажите, что можно сделать.

Support for Python 3.10?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.