Python version and requests module

Python version and requests module

masounmardini
Contributor Contributor
1,482 Views
2 Replies
Message 1 of 3

Python version and requests module

masounmardini
Contributor
Contributor

Hi everybody,

actually I have two questions:

1- what is the version of python interpreter in fusion as far as know it's 3.5 but is it possible to have fusion run on 2.7?

2- the second one is about requests module. in my installation requests is running out of the box but I've saw some other installation that doesn't have it? is that possible!!

 for instance when I try to load requests on my computer it works fine without any problemScreenshot 2018-10-23 at 20.45.16.png

on other machines it doesn't load and I got an error message

image005.jpg

when I try to import requests on the other computer I got a load of errors ( the difference is the python version which returns me to question 1).

I've seen also a difference in installation's folder on my computer there is web deploy folder but on other computers it's not there!!

does anybody has the same issue?

 

Masoun

 

0 Likes
Accepted solutions (1)
1,483 Views
2 Replies
Replies (2)
Message 2 of 3

BrianEkins
Mentor
Mentor
Accepted solution

There are actually three different installation types of Fusion; Windows, Mac from autodesk.com, and Mac from Mac App Store. What's installed with each one should be consistent but I believe there is some difference when it comes to what's included with the Python installation.  The thing that is consistent with all of them is that the Python version is 3.5.3 but I think some of the supporting Python libraries may be different.  I also saw the same issue with requests.

 

Specifically, with requests, there's also another problem. Apple enforced some different security so the requests that's delivered with Python 3.5 doesn't work because of an SSL issue.  It's been fixed with Python 3.7 but Autodesk has to update the Python version. It's possible that you can deliver your own version of requests with your program that will work on Mac but it will take quite a bit of effort to create that because requests has a lot of dependencies that you'll also need to deliver and edit all of their paths so they can find each other.  Requests seems to work fine on Windows with Python 3.5 and it's only a problem with Mac.

 

In short, things are in a bit of a mess on Mac with requests. The best thing would be if Autodesk would update the Python version but I don't know if that's planned or not. I do know it's a relatively big effort.

 

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Message 3 of 3

masounmardini
Contributor
Contributor

Wow !!! I didn't know there is difference between installing from autodesk.com and apple App Store !!!! I've always expected to be the same!!

I've tested it and now I can replicate the problem on the customer end.

maybe it's easier to use another module instead of requests.

Many thank Brain Smiley Very Happy

Best Regards

 

0 Likes