Coder Social home page Coder Social logo

Update to python 3.8 about sourceio HOT 8 CLOSED

redxeye avatar redxeye commented on September 9, 2024
Update to python 3.8

from sourceio.

Comments (8)

REDxEYE avatar REDxEYE commented on September 9, 2024

Windows Blender use python 3.7 so i provided builds for 3.7.
PySourceIOTextureUtils.zip
This should be 3.8 build, just replace file

from sourceio.

mirh avatar mirh commented on September 9, 2024

Ohh I see, thank you.
Looks like this is gonna take another year to improve.

But where should I put that? I have just PySourceIOUtils.so here.

from sourceio.

REDxEYE avatar REDxEYE commented on September 9, 2024

put it into addon folder \scripts\addons\SourceIO\source2\utils\PySourceIOUtils.so

from sourceio.

mirh avatar mirh commented on September 9, 2024

Duh, I'm dumb. I hadn't noticed the error message had changed.

PySourceIOTextureUtils import error
Traceback (most recent call last):
  File "/usr/share/blender/2.82/scripts/modules/addon_utils.py", line 351, in enable
    mod = __import__(module_name)
  File "../blender/2.82/scripts/addons/SourceIO/__init__.py", line 28, in <module>
    from .source2.resouce_types.vmdl import Vmdl
  File "../blender/2.82/scripts/addons/SourceIO/source2/resouce_types/vmdl.py", line 10, in <module>
    from ..source2 import ValveFile
  File "../blender/2.82/scripts/addons/SourceIO/source2/source2.py", line 10, in <module>
    from .blocks import DataBlock
  File "../blender/2.82/scripts/addons/SourceIO/source2/blocks/__init__.py", line 6, in <module>
    from .texture_data_block import TextureBlock
  File "../blender/2.82/scripts/addons/SourceIO/source2/blocks/texture_data_block.py", line 8, in <module>
    from ..utils.PySourceIOUtils import *
ImportError: dynamic module does not define module export function (PyInit_PySourceIOUtils)

from sourceio.

REDxEYE avatar REDxEYE commented on September 9, 2024

No idea on this error

from sourceio.

mirh avatar mirh commented on September 9, 2024

I mean.. it seems natural that if I'm replacing a file named PySourceIOUtils with one that originally came like PySourceIOTextureUtils, some function may be referenced differently.

from sourceio.

REDxEYE avatar REDxEYE commented on September 9, 2024

Oh, yem i forgot that i renamed it not to long ago

from sourceio.

TheClonerx avatar TheClonerx commented on September 9, 2024

One solution would be to provide two modules, one for 3.7 and for 3.8, and import according to the interpreter version.

import sys
if (3, 8, 0) <= sys.version_info < (3, 9, 0) :
    from ..utils.PySourceIOUtils38 import *
elif (3, 7, 0) <= sys.version_info < (3, 8, 0):
    from ..utils.PySourceIOUtils37 import *
else:
    raise RuntimeError("Python version not yet supported: " + sys.version)

from sourceio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.