ImportError: cannot import name 'RetryOperationalError' from 'playhouse.shortcuts' #1

Open
opened 2025-02-08 13:09:17 +00:00 by vanzhiganov · 0 comments
Owner

rockylinux 9 installed package python3-peewee-3.15.4-1.el9.x86_64

[root@node1 nativecloud]# ./cloud-admin-ls.py 
Traceback (most recent call last):
  File "/opt/nativecloud/./cloud-admin-ls.py", line 4, in <module>
    from SWSCloudCore import models
  File "/opt/nativecloud/SWSCloudCore/models.py", line 9, in <module>
    from playhouse.shortcuts import RetryOperationalError
ImportError: cannot import name 'RetryOperationalError' from 'playhouse.shortcuts' (/usr/lib64/python3.9/site-packages/playhouse/shortcuts.py)

but in virtual environment installed:

flask-peewee==0.6.0
peewee==2.8.0
wtf-peewee==0.2.6
rockylinux 9 installed package python3-peewee-3.15.4-1.el9.x86_64 ``` [root@node1 nativecloud]# ./cloud-admin-ls.py Traceback (most recent call last): File "/opt/nativecloud/./cloud-admin-ls.py", line 4, in <module> from SWSCloudCore import models File "/opt/nativecloud/SWSCloudCore/models.py", line 9, in <module> from playhouse.shortcuts import RetryOperationalError ImportError: cannot import name 'RetryOperationalError' from 'playhouse.shortcuts' (/usr/lib64/python3.9/site-packages/playhouse/shortcuts.py) ``` but in virtual environment installed: ``` flask-peewee==0.6.0 peewee==2.8.0 wtf-peewee==0.2.6 ```
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: vmbuilder/console#1
No description provided.