SasView / sasview

Code for the SasView application.
BSD 3-Clause "New" or "Revised" License
52 stars 41 forks source link

Broken dependencies in for python 3.12 #3003

Open lucas-wilkins opened 4 months ago

lucas-wilkins commented 4 months ago

The following dependencies are not python 3.12 compatible - they cannot be installed because of the changes to setups.

lucas-wilkins commented 4 months ago

@pkienzle Do you have any plans in place to fix periodictable and tinycc?

rozyczko commented 3 months ago
  • xhtml2pdf - unknown, maybe we need a replacement, maybe we can talk to the people that run it

I am able to pip install xhtml2pdf in 3.12 on windows and on linux. What issues do you see?

lucas-wilkins commented 3 months ago

weird, I couldn't

lucas-wilkins commented 3 months ago
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "C:\Users\...\AppData\Local\Temp\pip-build-env-570423cx\overlay\Lib\site-packages\setuptools\__init__.py", line 14, in <module>
    import distutils.core
ModuleNotFoundError: No module named 'distutils'

distutils doesn't exist in python 3.12

llimeht commented 3 months ago
andyfaff commented 3 months ago

The latest version of periodictable is required for numpy 2 compatibility.

pkienzle commented 3 days ago

I'm almost ready for a new periodictable release but it has updated mass, abundance and cross section tables so it might break some tests.

I will update the build system for tinycc. The distribution includes an extension to add the tinycc compiler as a target for distutils. I'm going to leave it alone for now since we don't need it in sasview.

BTW, I compiled the most recent tinycc from git. It now builds .so files on mac x86 that are usable from sasmodels. Need to try it on an M1/M2 mac.

lucas-wilkins commented 3 days ago

Good job Paul!