-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed to find 'bpy_types' module #13
Comments
It is version 1.2.3 of bpy and I'm on py36 |
Ah, tricky. Could you verify for me that you did not install this into a Python virtual environment? I'm fairly certain I know what the issue is and will fix it this weekend. |
No, unfortunately I'm doing exactly that. I'm trying to install it in a Conda environment. |
Honestly if you need it working right now you can simply go into your conda env, into the Windows is a known platform where these script files can be different, especially depending on your environment. So in short:
I'll have to think more on this issue and how it relates to Thanks for your patience. |
Thanks man, the folder moving worked. |
Yes I will have to think of a good one. I'm thinking about different ideas... there might need to be a script or something that ensures that the version folder is in the correct location. That might bring the installation command up to two commands: one to I don't really like this solution though. I'll have to think about it for a while. If there was an intuitive way per setuptools to run an arbitrary command after installation (bdist_wheel OR sdist) then this would be a no-brainer. I'm not seeing a way to do that initially. I'll do more research. That aside, I am glad that it is working for you currently. In the meantime it might be trivial to impliment such a script for CI (just after you |
I'm separating out some of the functionality of this module. The primary building steps will be performed with a project that I used previously, A secondary package, The benefit of it being a symlink, is that I will not have to do anything with All of these changes are more or less waiting on this to be completed: Once done,
Word of CautionThis is not supported officially by the Blender Foundation. In fact, many developers really do not like this project and have voiced their disdain, but I can never seem to get a straight answer from the Blender Foundation developers on whether they feel I should take this project down. See https://devtalk.blender.org/t/python-module-build-process-select-python-version/1852/7 I really am only doing this as a pet project and for my own side projects to depend upon (since I am maintaining this project it makes it pretty easy for me to fix both, since I know relatively what I'm doing). That's not to say that I don't hold my code to high standards. If you submit a bug or have a feature suggestion I will make it my top priority to fix it or add it when I get the chance, however just note that this is not an official thing, and really is only maintained during my "free" time (I am not getting paid to do this). But the project could be squashed by Blender Foundation at any moment should they deem it necessary (I want to play nicely with everyone) and is subject to sweeping changes at any moment. Hence Hopefully that all makes sense. I'll report back when this is officially fixed. Happy coding! |
Thanks alot @TylerGubala ! It seems to work for now |
thank you.Move package is useful. But I tried to python bpy-build and bpy-ensure work,they couldn't be installed. |
Those packages are in progress. I need a good weekend to work on this.
Thanks for your understanding
…On Mon, Jul 1, 2019, 2:50 PM Leimun ***@***.***> wrote:
thank you.Move package is useful. But I tried to python bpy-build and
bpy-ensure work,they couldn't be installed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#13?email_source=notifications&email_token=AFLEYR5ZUJUPG52SDFPMFZDP5JGY3A5CNFSM4FSGNJGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY7ARTY#issuecomment-507381967>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFLEYR2TXTWIO6QD25AOWYDP5JGY3ANCNFSM4FSGNJGA>
.
|
Hi Tyler, |
Wow, that's a very interesting use case.
I know that at least for multiprocessing you have to enable the freeze safe
portion of the code for pyinstaller. Maybe there is a smart way to
replicate that.
Thanks for the info.
…On Wed, Nov 6, 2019, 7:37 AM Kostas Markakis ***@***.***> wrote:
Hi Tyler,
To begin with congrats for the great work you're doing,
Now i am having the same problem but mine is related to Pynstaller. I am
using python 3.6.6 on Windows10 along with bpy1.2.4a0. The packaging of my
program is succesfull but then you get the "'bpy_types' module" since as
you said the python executable is not alogside 2.79.
The crude solution of copying 2.79 folder cant work for me as my program's
executable created by Pynstaller uncompresses its contents to the temporary
_MEIXXXX directory.
is there a workarround for this?
thanks and keep up the good work
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#13?email_source=notifications&email_token=AFLEYR3DT3WAJ6FB5KXAAQTQSK3BXA5CNFSM4FSGNJGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDGMM4Q#issuecomment-550291058>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFLEYR66TPDRTRCMFEKYYG3QSK3BXANCNFSM4FSGNJGA>
.
|
@kostasmarkakis Actually I was wrong about it being similar to If you have any other issue document it in a separate issue or if you continue having this one just comment in #28 with additional details and we can get it resolved. Best of luck. |
Just encountered this on a fresh install of python 3.6.8 on windows 10. Not using venv. Maybe there should be a note about copying the directory in the README?
|
@tg90nor Added |
As part of the bpy installation, users are now expected to run "bpy_post_install", which will place the bpy addon scripts into the correct install location based on OS. @ocni-dtu I know this issue has gotten long in the tooth, but by this point I actually have gotten a chance to buy a mac and linux machine where I have been able to test this functionality. It is available as an sdist right now on pypi test. Would you mind weighing in your thoughts on if this is a solution that is easy to use for you? Build from sdist
|
Hi @TylerGubala |
Unfortunately, based on what I am reading, that would mean everyone would have to build from Thanks for the link though. |
You should be able to (I have to figure out what the manylinux thing is all about.) |
Hey @TylerGubala, I'm working on Windows and used I installed Am I missing anything else? |
i have same problem #13 (comment), i was use pip install bpy && bpy_post_install, but the result still same, what should i do ? |
I had the same issue on Google Colab, and this is how I fix. I hope this will be helpful to people who are working on AI with 3D models like I am.
|
Hi: |
For anyone else facing trouble with importing bpy after shifting '2.79' folder to the location of python.exe, in case you are using a virtual environment say for example with 'poetry' or so: Anyone finding a standardized solution please comment below. |
pip install bpy==2.91a0 && bpy_post_install you can try this for ubuntu!! |
Hey!
I just pip installed bpy on my machine, but when I try to import it I get the following error:
import bpy
The text was updated successfully, but these errors were encountered: