Skip to content
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

Any chance of upgrading it for python 3? #1

Open
mehedi-shafi opened this issue Jul 13, 2023 · 0 comments
Open

Any chance of upgrading it for python 3? #1

mehedi-shafi opened this issue Jul 13, 2023 · 0 comments

Comments

@mehedi-shafi
Copy link

I know I'm coming to it a decade later. But a project of mine uses this package. Is there any chance of upgrading it to python-3?
I tried doing it myself by updating paver to latest version then running the setup.py it throws the following error.

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [91 lines of output]
    running develop
    /run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    /run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/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 egg_info
    writing ptrace.egg-info/PKG-INFO
    writing dependency_links to ptrace.egg-info/dependency_links.txt
    writing top-level names to ptrace.egg-info/top_level.txt
    reading manifest file 'ptrace.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'paver-minilib.zip'
    adding license file 'LICENSE'
    writing manifest file 'ptrace.egg-info/SOURCES.txt'
    running build_ext
    building 'ptrace' extension
    creating build
    creating build/temp.linux-x86_64-cpython-311
    gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -fPIC -I. -I/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/include -I/usr/include/python3.11 -c ptracemodule.c -o build/temp.linux-x86_64-cpython-311/ptracemodule.o -Wall
    ptracemodule.c:294:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
      294 | DL_EXPORT(void)
          | ^~~~~~~~~
    ptracemodule.c: In function ‘DL_EXPORT’:
    ptracemodule.c:295:1: error: expected declaration specifiers before ‘initptrace’
      295 | initptrace(void)
          | ^~~~~~~~~~
    ptracemodule.c:307: error: expected ‘{’ at end of input
    ptracemodule.c:307: warning: control reaches end of non-void function [-Wreturn-type]
    ptracemodule.c: At top level:
    ptracemodule.c:273:20: warning: ‘ptrace_methods’ defined but not used [-Wunused-variable]
      273 | static PyMethodDef ptrace_methods[] = {
          |                    ^~~~~~~~~~~~~~
    ptracemodule.c:41:18: warning: ‘ErrorObject’ defined but not used [-Wunused-variable]
       41 | static PyObject *ErrorObject;
          |                  ^~~~~~~~~~~
    Traceback (most recent call last):
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/setuptools/_distutils/unixccompiler.py", line 186, in _compile
        self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/setuptools/_distutils/ccompiler.py", line 1007, in spawn
        spawn(cmd, dry_run=self.dry_run, **kwargs)
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/setuptools/_distutils/spawn.py", line 70, in spawn
        raise DistutilsExecError(
    distutils.errors.DistutilsExecError: command '/usr/bin/gcc' failed with exit code 1

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 2, in <module>
      File "<pip-setuptools-caller>", line 34, in <module>
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/ptrace/setup.py", line 12, in <module>
        paver.tasks.main()
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/paver/tasks.py", line 890, in main
        _launch_pavement(args)
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/paver/tasks.py", line 870, in _launch_pavement
        _process_commands(args, auto_pending=auto_pending)
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/paver/tasks.py", line 821, in _process_commands
        task()
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/paver/setuputils.py", line 175, in __call__
        self.distribution.run_command(self.command_name)
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
        super().run_command(command)
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
        cmd_obj.run()
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/setuptools/command/develop.py", line 34, in run
        self.install_for_development()
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/setuptools/command/develop.py", line 114, in install_for_development
        self.run_command('build_ext')
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
        self.distribution.run_command(command)
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
        super().run_command(command)
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
        cmd_obj.run()
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 84, in run
        _build_ext.run(self)
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
        self.build_extensions()
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 466, in build_extensions
        self._build_extensions_serial()
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 492, in _build_extensions_serial
        self.build_extension(ext)
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
        _build_ext.build_extension(self, ext)
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 547, in build_extension
        objects = self.compiler.compile(
                  ^^^^^^^^^^^^^^^^^^^^^^
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/setuptools/_distutils/ccompiler.py", line 599, in compile
        self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
      File "/run/media/shafi/secondary/codes/cm/saber-rewrite/.venv/lib/python3.11/site-packages/setuptools/_distutils/unixccompiler.py", line 188, in _compile
        raise CompileError(msg)
    distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant