-
Hi all, Using transitions from a pip install (or pip install git+https...) I get an ImportError...
I use python 3.11.3 with venv. I tried to inspect step by step with the debugger. It never enters in transitions module. It fails in the core python Any idea? |
Beta Was this translation helpful? Give feedback.
Answered by
aleneum
Jun 13, 2023
Replies: 1 comment 3 replies
-
Hi @jej, I cannot reproduce your error, unfortunately: (ttest) workspace % pip install git+https://github.com/pytransitions/transitions.git
Collecting git+https://github.com/pytransitions/transitions.git
Cloning https://github.com/pytransitions/transitions.git to /private/var/folders/p0/8x_ymcts3rzf01p007y_ncsm0000gn/T/pip-req-build-2q89fhkz
Running command git clone --filter=blob:none --quiet https://github.com/pytransitions/transitions.git /private/var/folders/p0/8x_ymcts3rzf01p007y_ncsm0000gn/T/pip-req-build-2q89fhkz
Resolved https://github.com/pytransitions/transitions.git to commit f3e01de336d24005b8c4abb012185a89af9727d9
Preparing metadata (setup.py) ... done
Collecting six
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: six, transitions
DEPRECATION: transitions is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for transitions ... done
Successfully installed six-1.16.0 transitions-0.9.1
[notice] A new release of pip available: 22.3.1 -> 23.1.2
[notice] To update, run: pip install --upgrade pip
(ttest) workspace % python --version
Python 3.11.3
(ttest) workspace % python
Python 3.11.3 (main, Jun 13 2023, 18:39:49) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from transitions import Machine
>>> m = Machine()
>>> m.state
'initial'
>>> |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
jej
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @jej,
I cannot reproduce your error, unfortunately: