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

Issue240 #241

Merged
merged 2 commits into from
Oct 21, 2024
Merged

Issue240 #241

merged 2 commits into from
Oct 21, 2024

Conversation

pradal
Copy link
Contributor

@pradal pradal commented Oct 21, 2024

  • Set cython version to 0.29.32
    New version (Cython > 3.0) lead to this error
Traceback (most recent call last):
  File "/Users/pradal/miniforge3/envs/cropml/bin/cyml", line 33, in <module>
    sys.exit(load_entry_point('pycropml', 'console_scripts', 'cyml')())
  File "/Users/pradal/devlp/git/PyCrop2ML/src/pycropml/main.py", line 133, in main
    status = transpile_package(sourcef, language)
  File "/Users/pradal/devlp/git/PyCrop2ML/src/pycropml/cyml.py", line 134, in transpile_package
    test.parse()
  File "/Users/pradal/devlp/git/PyCrop2ML/src/pycropml/transpiler/main.py", line 110, in parse
    self.tree = parser(self.file)
  File "/Users/pradal/devlp/git/PyCrop2ML/src/pycropml/transpiler/Parser.py", line 83, in parser
    tree = context.parse(source_desc, scope, pxd=None, full_module_name=module)
  File "/Users/pradal/miniforge3/envs/cropml/lib/python3.8/site-packages/Cython/Compiler/Main.py", line 375, in parse
    num_errors = Errors.get_errors_count()
  File "/Users/pradal/miniforge3/envs/cropml/lib/python3.8/site-packages/Cython/Compiler/Errors.py", line 300, in get_errors_count
    return threadlocal.cython_errors_count
AttributeError: '_thread._local' object has no attribute 'cython_errors_count'

Copy link
Contributor Author

@pradal pradal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@pradal pradal merged commit a56c9e9 into master Oct 21, 2024
3 checks passed
@pradal pradal deleted the issue240 branch October 21, 2024 21:10
@pradal pradal mentioned this pull request Oct 21, 2024
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

Successfully merging this pull request may close these issues.

1 participant