-
-
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
MacOS Support #2
Comments
Hello TylerGubala,
It is run with python 3.5 and mac os High sierra 10.13.5 |
Thanks, that does definately help; and I am sorry because I run a more recent version of Python (3.6.5). I actually didn't realize f-string interpolation (what I believe the interpriter is complaining about there) was such a recent addition to Python (3.6 era). If you replace the "f-strings" (strings that look like I will make the modifications to the code when I am back at my home; currently I am busy with travel work. I'll make some modifications this weekend. Thanks for your patience. |
Just so you are aware, I didn't just forget about your issue, though what you've listed here isn't so much a MacOS support issue as it is a Python version < 3.6 support issue. I've opened a new issue related to that, because I seem to have stumbled upon a nice little repo that will clean up the fstrings nicely for users who don't want to upgrade to >=3.6, called future-fstrings. If using that technology doesn't remedy the issue, I'll just use In either case I'm going to start supplying bdist_wheels next week after I finish out a work trip, but I'll still need help generating those on the MacOS side of things. Keep you posted! |
Provided you install |
I just merged the Fix fstrings branch, feel free to test out the new version when you have the time, provided you have installed the latest version of |
@loukotal Looks like I need to add a line to checkout the MacOS svn repo. I'll have to add that to the list of requirements for Mac users, but unfortunately, being that I don't have a Mac, and since Travis doesn't officially support MacOS with Python, it's a little difficult for me to pin down the build process there. Could you download Please note this is an exerpt from the official "Building Blender - MacOS" wiki page from the Blender foundation: https://wiki.blender.org/wiki/Building_Blender/Mac Regarding the need to install |
Did you install Python 3.7 to your computer with Homebrew?
Looks like the Homebrew installation path is what it is looking for. It
needs this because you are building from sources, and Blender has to link
to Python. I think `make update` may not have installed the correct Python
in your case.
…On Mon, Sep 24, 2018, 5:47 AM Lukáš Loukota ***@***.***> wrote:
Sorry for the late reply. Thank you for your answer.
I am now again trying to pin down the problem. I ran make update as per
your advice. I tried running pip install bpy after it and now I'm getting
this error.
[image: screen shot 2018-09-24 at 11 33 15]
<https://user-images.githubusercontent.com/18210858/45945494-fa29d500-bfed-11e8-8c75-49bbe3cfe56f.png>
So I setup a virtualenv with python3.7 - using pyenv - as per the error Python
executable missing:
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7m
and that didn't help either.
I tried to access
/private/var/folders/c4/q75b9qkx7_51f49jzsc92d480000gn/T/pip-install-vhepdop2/bpy/build/temp.macosx-10.13-x86_64-3.7/CMakeFiles/CMakeOutput.log
but there is no such file (or pip-install-vhepdop2 folder).
I can provide more information if needed.
Thank you!
PS: Sorry for taking up your time, this is still very new to me.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVZMRxjP2hn4-T1oeUvouHVqvGcp_MFvks5ueKpLgaJpZM4TrmoI>
.
|
Having the same issue when trying to install |
@gandarez Is there a Can anyone help in this regard? |
@TylerGubala that's the error when executing |
@gandarez Sorry, but Python 2.7 is not supported at this time. Maybe you can try Python 3.6 and see how that works for you? |
Yes, you have to install Python version
Thanks much in advance! |
After a while got this error:
|
After have installed
|
I had to run
|
Your Python executable cannot be found.
Do you have Python installed correctly on Mac? Unfortunately I have no knowledge of how to do this. |
I changed to use
|
I don't know if the error is related to |
Do you know why is that? |
@Heyam777 it looks like it's related to your Xcode installation. Try reading through the below and let me know what you find. But anyways it's related to your XCode, not the script itself. |
App Store was telling me that I have not enough space to install Xcode so I downloaded the software from the apple developer page. |
Cool -- I changed the directory and everything. I will test it in a couple of days :D Thanks! |
Wrote how to build |
@a0s I think I'm missing something because I can't think of a scenario where I would have Giving people more options to build and use for their use case is always good though; do you mind if I add that to |
@TylerGubala I'm not sure that I can bring my PR to Blender's master branch, so adding this link to the wiki would be nice. |
I tried running your commands @TylerGubala, but got this after all:
I have installed XCode from AppStore, installed CMake. Even installed Log file: [UPDATE] |
I have never had that issue; can you please elaborate on what exactly causes it? My understanding is that this happens with some "light" installations with XCode, and that maybe a lot of people would run into this, but ultimately I can't reproduce it on my own (albeit outdated) hardware without knowing what the repro steps are. |
However, now it seems it has built everything, but I don't understand the copying steps to allow me to do UPDATE Following the steps in the macos install guide (and in this thread):
UPDATE 2 I ended up copying my folder UPDATE 3
|
What macos version do you have? Do you have |
@Rolandisimo You ought to have installed Python 3.7 for MacOS from https://www.python.org/ Then you would have your I highly doubt simply copying the folder out of your XCode installation directory will suffice. I am on macOS 10.15.3. Though from the looks of it I don't think your issue is related to a specific MacOS version. Please try again after installing from Python.org. |
EDIT: I believe my issue was called by running My build works after correctly installing python 3.7 to the system location For MacOS 10.15 I have followed the instructions here: https://github.com/TylerGubala/blenderpy/wiki/Platform---MacoOS#build-script
everything went smoothly except I am hopelessly stuck at this error when I try to import the module:
do you have any advice @TylerGubala @a0s ? thanks!! It seems I'm the only one on the internet with this error for blender (bad sign) but the cause of similar errors is when a module has been compiled against python 2.7. But everything in the output and cmake suggests that it is compiling against system python 3.7 which I have:
(note I have tried installing the .so file in my venv python3 and system python3, same error) There are no obvious python related errors in the make install output, this is the snippet for the linking stage
-- I've looked at the blender source and the export function that it claims is missing is here I've looked at the link.txt in my build folder -- I found a similar error where it's suggested again that python version mismatch somewhere int he build process is the culprit |
I tried exactly the same approach for installation on my mac but when i did
Please suggest a solution. |
Are you using Anaconda? I'm not sure if that is compatible. Based on your
result, I'm guessing not.
…On Wed, Apr 8, 2020, 7:16 AM ankushpanwar19 ***@***.***> wrote:
cp
I tried exactly the same approach for installation on my mac but when i
did import byp it gave segmentation fault.
`(base) ***@***.*** dsif_3dvision % python
Python 3.7.6 (default, Jan 8 2020, 13:42:34)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
import bpy
zsh: segmentation fault python`
Please suggest a solution.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFLEYR5RIWOC553VIV33AALRLRMIJANCNFSM4E5ONIEA>
.
|
Thanks it worked in normal python ! But in anaconda it gave segmentation fault. |
I am not sure what build requirements Anaconda has. If you know, and wanted
to submit a PR I would welcome it.
Let me kniw how I can assist in this matter.
…On Wed, Apr 8, 2020, 7:37 AM ankushpanwar19 ***@***.***> wrote:
Thanks it worked in normal python ! But in anaconda it gave segmentation
fault.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFLEYR4QCLZNA77DYMDKRW3RLROYXANCNFSM4E5ONIEA>
.
|
Hi @TylerGubala, @gandarez, I followed the steps mentioned above and was stuck at this error after the
Could you please help with the issue? The file in build_bpy_darwin_custom/source/creator/CMakeFiles/blender.dir/link.txt looks like this - |
@Gaurav1302 What tag? Sometimes building |
Could you please elaborate on how do I proceed further? |
@Gaurav1302 My apologies, I should have elaborated. You have basically two options:
Option number 1 is the easiest and hopefully the most flexible, but may have compatibility issues. It was only recently made possible by the pypi upload limit being increased, so go ahead and give it a whirl if you have a chance! Notably it requires Option number two requires the most system configuration, for instance the correct version of
Where |
@TylerGubala, For the first option, I get the following error:
Here is the complete output:logs.txt While for the second option, I got the following error file error.pdf I have already installed XCode (Version What could be the issue here? |
Hi @Gaurav1302, I know this thread is about 4 months old, but I'm experiencing the same problem with installing bpy on my Mac. Did you ever resolve? |
Hi @rossjillian, No, it didn't work out on a Mac. As far as I can understand, Mac support for bpy is still limited. I switched to a Linux (Ubuntu) machine, instead. I would recommend you to do the same. It is much more hassle-free and straightforward. You'll definitely save time -- more than you can anticipate at the moment! |
@rossjillian @Gaurav1302 if you want to get the MacOS build working easily, download tyler's prebuilt MacOS wheel off google drive https://drive.google.com/drive/folders/1uSiTQLvlUxu7PDT2TCT4XIrwGwn1WWph The reason pip install doesn't use these is they are too big to upload to pypy pypi/support#362 (comment)
building bpy for mac from scratch is indeed a pain so I hope we can find a solution for making it easier to host the pre-built binaries. -- @TylerGubala I'm no expert but could we host them on a custom repo? https://packaging.python.org/guides/hosting-your-own-index/. So users could do something like |
Hi! To comment on this, yeah I was thinking about making a custom repo, as well as hosting the built It's pretty tough, because (especially on linux) the builds are just getting bigger and bigger. One thing that I want to mention too is that on this repo now, there are VS Code commands to build Blender. Starting out, clone the repo and then run the Then you should be able to run the Also, I am going to be working on migrating much of what exists in this repository into the Main Blender Foundation repo. My main goal is to have this repo only contain convenience functions like VS Code Tasks which probably would not be accepted into the main Blender codebase. Really anything that helps Blender be usable, including the Python extension module Packaging, should be part of Blender itself I feel. Which to be honest, this repo is mostly just some scaffolding so that Python understands the built Extension module as a package, the Anyways, @Chandler for hosting those files, are there any companies that provide PYPI custom servers? I could make it myself but it would be faster to just buy some hosting I feel. Also hosting on my own hardware feels like a dirty solution. I'm just not very familiar with if there are best practices for custom pypi like repos. @rossjillian If you are on Mac and just want to "try out" Linux I recommend Docker. You can use my Google drive prebuilts or if you want to build for yourself you can clone this repo and run the Note that a stumbling block that I can't quite get over is that I do not support MacOS |
Right now MacOS has not even been tested... not even sure if it works.
To Do:
The text was updated successfully, but these errors were encountered: