Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Errors Ctypes #299

Open
PIETERJANAHENKONA opened this issue Mar 13, 2022 · 4 comments
Open

Errors Ctypes #299

PIETERJANAHENKONA opened this issue Mar 13, 2022 · 4 comments

Comments

@PIETERJANAHENKONA
Copy link

AttributeError: module 'ctypes' has no attribute 'util'
Also a lot of tenserflow errors

@400lbhacker
Copy link

400lbhacker commented Mar 22, 2022

find util.py and add it to directory, make sure to put the following colab magic line in the first code box
%tensorflow_version 1.x

please post the colab link / tutorial you are following I will do my best to go through it and fix it...
if you go to my github page I do have several fixxes for some tutorials
I am not affiliated with lucid/tensorflow as an original founder but I do make extensive repairs to try to keep this project alive I work on it out sheer personal devotion, I will do my best to fix it but no garuntees this framework is becoming quickly deprecated

@PIETERJANAHENKONA
Copy link
Author

PIETERJANAHENKONA commented Mar 22, 2022 via email

@400lbhacker
Copy link

400lbhacker commented Mar 22, 2022

find the lines:
from IPython.display import clear_output, display, Image, HTML
from lucid.misc.gl.glcontext import create_opengl_context
import OpenGL.GL as gl

and add: from ctypes import util
so it looks like this:

from IPython.display import clear_output, display, Image, HTML
from ctypes import util
from lucid.misc.gl.glcontext import create_opengl_context
import OpenGL.GL as gl

the tutorial is super outdated, the model package containing the original .png texture and 3d .obj model are offline
and even the style texture jpeg from wikipedia is offline. you need to upload your own model (.obj), original texture(png/jpg) and your desired style texture (png/jpg)

after testing around I kepped running into error
[TypeError: '<' not supported between instances of 'numpy.ndarray' and 'str']
and this is above my comprehension I might have done somethign wrong (i always combined my codeboxxes)
I am very tired i will try again tomorrow, let me know if you get same error

I had difficulty finding a .obj to test on, the one I used was very large (80 mb+) that might have something to do with it.
erasing the line lead to a further error that "uv" was undeclared despite not having any refrence to it anyway... im not
100% sure thats an additional error on top of the original or if their directly related

@PIETERJANAHENKONA
Copy link
Author

PIETERJANAHENKONA commented Mar 24, 2022 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants