Skip to content

scipy.misc deprecation + attributeerror #34

@PaulGithub15

Description

@PaulGithub15

full error:
pygame 2.6.1 (SDL 2.28.4, Python 3.11.0)
Hello from the pygame community. https://www.pygame.org/contribute.html
2025-09-01 22:01:03.324759: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
2025-09-01 22:01:19.551790: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
C:\Users\sales2\Desktop\pythons\alignedCelebFaces-master\code\final_face_slider_tool.py:8: DeprecationWarning: scipy.misc is deprecated and will be removed in 2.0.0
from scipy import misc
Traceback (most recent call last):
File "C:\Users\sales2\Desktop\pythons\alignedCelebFaces-master\code\final_face_slider_tool.py", line 47, in
inputs_ = tf.placeholder(tf.float32, (None, IMAGE_HEIGHT, IMAGE_WIDTH, 3), name='inputs')
^^^^^^^^^^^^^^
AttributeError: module 'tensorflow' has no attribute 'placeholder'

why is that & how to fix that?

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