Comments (8)
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.
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.
put it into addon folder \scripts\addons\SourceIO\source2\utils\PySourceIOUtils.so
from sourceio.
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.
No idea on this error
from sourceio.
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.
Oh, yem i forgot that i renamed it not to long ago
from sourceio.
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)
- Animations broken on Portal 2 `sp_a1_wakeup` breakers HOT 1
- Static props no longer importing with map file HOT 14
- no tutorial in description HOT 2
- ModuleNotFoundError HOT 1
- Python Error when I try to import a model HOT 1
- Models show up pale HOT 6
- traceback errors HOT 10
- Unnable to enable addon after renaming blender.exe HOT 6
- Can't even enable the addon HOT 1
- Entities have texture in viewport, but nothing in shading tab HOT 9
- Entity not being loaded "Failed to find mdl/vvd/vtx file" despite the mdl, vvd, and vtx file all existing. HOT 2
- How To Move Sonic Eyes? HOT 1
- Eyes movement in next update HOT 1
- Python errors when attempting to install HOT 3
- need help importing cs2 maps HOT 2
- Source1: Importing a texture (Source2Import) HOT 3
- AssertionError: Unknown Mdl magic "b'DST1'", expected "IDST" HOT 1
- S2FM error HOT 1
- Nodes of some materials are not linked when importing some CS2 maps HOT 1
- not so import import HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sourceio.