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

Installation under Python 3.10 is not working #9

Open
chlor opened this issue Jul 11, 2023 · 1 comment
Open

Installation under Python 3.10 is not working #9

chlor opened this issue Jul 11, 2023 · 1 comment
Assignees

Comments

@chlor
Copy link

chlor commented Jul 11, 2023

I tried the pip command with the download

pip install git+https://github.com/cophi-wue/pydelta@next

and have this error:

ERROR: Package 'delta' requires a different Python: 3.10.6 not in '<3.10,>=3.7.1'

@chlor
Copy link
Author

chlor commented Jul 12, 2023

In addition below: if you want to run the code under newer Python versions, change code snippets in the file corpus.py:

  1. change
    df = pd.DataFrame.from_dict(data, orient='index', dtype=dtype)
    into
    df = pd.DataFrame(data).transpose()

  2. remove

class _NamedCounter(collections.Counter):
    def __init__(self, iterable=None, _name='', **kwds):
        super().__init__(iterable, **kwds)
        self.name = _name
  1. set the return value of the method def process_file(self, filename):
    return _NamedCounter(tokens, self.get_name(filename))
    info
    return dict(collections.Counter(tokens))

@thvitt thvitt self-assigned this Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants