Skip to content

Unable to resolve requirements for Python 3.14.0 #35

Description

@georgiykulak

Environment

Ubuntu Linux 26.04, x86_64 arch.

Expected result

Successfully installed [the whole list of requirements]

Actual result

anaconda3/envs/simplefoc/lib/python3.14/importlib/__init__.py", line 88, in import_module

          return _bootstrap._gcd_import(name[level:], package, level)

...

File "/tmp/pip-build-env-_4cunwiz/overlay/lib/python3.14/site-packages/pkg_resources/__init__.py", line 2172, in <module>

          register_finder(pkgutil.ImpImporter, find_on_path)

                          ^^^^^^^^^^^^^^^^^^^

      AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?

Attached full logs of the error:
collecting_numpy_1.24_failure.log

Steps to reproduce

  1. conda install python=3.14
  2. conda create -n simplefoc python 3.14.0
    or
    conda create -n simplefoc python defaults
  3. conda activate simplefoc
  4. In repo: pip install -r "requirements.txt"

Workaround

Downgrade or install older Pyhton with Anaconda:
conda install python=3.9

Description

I've tried to setup SimpleFOCStudio with Python 3.14. This resulted in:

  1. Error pip._vendor.pyproject_hooks._impl.BackendUnavailable: Cannot import 'setuptools.build_meta', which was fixed by simply:
    python -m pip install --upgrade pip setuptools wheel
  2. Error AttributeError: module 'pkgutil' has no attribute 'ImpImporter'.

The second one was either fixed, or silenced with setting numpy>=1.26.0 in "requirements.txt". Which resulted in segmentation fault on start of python simpleFOCStudio.py for some reason.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions