Closed Inniag closed 2 years ago
Hi Inniag,
I could not find the answer to the loading OBJ file issue with PyMol running on Python3. Could you please give me more details about how to fix it up? Thanks.
Jeff
Hi Inniag,
I just worked it out. My solution was using an old version of PyMol running on Python2. What I used is PyMol 1.8.4.0.
Best, Jeff
I have the same error message. Any fix available yet?
Thank you, Carolina
In Python 3, " map" returns an iterable object of type map, and not a subscriptible list.
If you replace every map()
with list(map())
in wobj.py, the script is python3 compatible.
For example replace
self.__materials[self.__crnt_material]["Ka"] = map(float, split_line[1:4])
with
self.__materials[self.__crnt_material]["Ka"] = list(map(float, split_line[1:4]))
I did not see the pull request made by irudayaf on 28 Aug 2019 in which he basically did the same...
Closed pull request #13 from @irudayaf as well now.
The PyMol script for loading OBJ files is currently not compatible with the Python3 standard. This might cause errors such as this:
A fix has already been suggested in issue #11.