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

Python 3 Compatibility #5

Open
rthille opened this issue Nov 28, 2016 · 4 comments
Open

Python 3 Compatibility #5

rthille opened this issue Nov 28, 2016 · 4 comments

Comments

@rthille
Copy link

rthille commented Nov 28, 2016

Any plans to make this compatible with Python3? If it's not a heavy lift, I could probably take it on...

@pyhakr
Copy link

pyhakr commented Nov 28, 2016

currently doing a py3 conversion of private automation system and willing to help out.

@glensc
Copy link

glensc commented Jun 2, 2023

is this error related to lack of python3 support?

✖ pip install python-cdb
Collecting python-cdb
  Using cached python-cdb-0.35.tar.gz (19 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [11 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/f1/qj3m1q9507d2_7rnqwfgzyrm0000gp/T/pip-install-18svtd17/python-cdb_8f82bd43dc6740eca3362661cc4d7001/setup.py", line 25, in <module>
          ext_modules = [ Extension(
                          ^^^^^^^^^^
        File "/Users/glen/scm/delfi/api/pix-redirect-to-media-api-image-cropper/csv2cdb.py/.direnv/python-3.11/lib/python3.11/site-packages/setuptools/extension.py", line 130, in __init__
          super().__init__(name, sources, *args, **kw)
        File "/Users/glen/scm/delfi/api/pix-redirect-to-media-api-image-cropper/csv2cdb.py/.direnv/python-3.11/lib/python3.11/site-packages/setuptools/_distutils/extension.py", line 110, in __init__
          raise AssertionError("'sources' must be a list of strings")
      AssertionError: 'sources' must be a list of strings
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.


@merwok
Copy link

merwok commented Jun 2, 2023

Yes: the setup script uses the map function to get a list of C source files, which returns a list in python 2 and a custom iterable in python 3.

This repo does not seem active, interested people could create a fork, address the issues and publish with a different name on PyPI.

@bbayles
Copy link

bbayles commented Jun 2, 2023

pure-cdb has a python-cdn compatibility mode, FWIW.

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

5 participants