Hello!I have finally got my side project out for a closed beta and there are some issues for some users on both Mac & Windows.Drag & Drop issue:Firstly, you can drag & drop from the qsqltablemodel into an external program and that works ok on Mac but Windows you simply get a red no entry symbol and it fails to operate as it should. Is this an app permissions issue perhaps or a deeper windows bug?
Which leads me to my next query.
Permissions issues:Some users on Mac have had to chmod -x their .app files in order to run, I googled and some forums say I need to include a custom manifest file in order to elevate the app up to a level where this is not required.However I am unfamiliar with what a manifest file is and what it should include to solve these issues?
Would this manifest elevation perhaps solve the above drag & drop issue on windows too?
My pyinstaller build code looks like this for Mac:https://gist.github.com/4bea2a9975455e7c7e71aedc41b8c867
And like this for Windows:
https://gist.github.com/ben-hearn-sb/62763a3eac6cccd2c03478d913afd43c
I am certain I am missing something crucial here. If anyone could help with this it would be much appreciated!// Ben
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/f8d96aaf-ce24-46f8-a679-a00a7b1503e8n%40googlegroups.com.
Hello Justin, Thanks for the quick response!My mime data setup looks like this: https://gist.github.com/ben-hearn-sb/038da0d75d6887205e7333147ae9f0d9Windows perhaps needs something other than setUrls for its mime type?
Distribution:I am distributing to the closed beta list as a zip which includes the .app file inside. Once unzipped you should be able to launch from anywhere. Should I consider packing as a .pkg or .dmg file perhaps? I am a bit unfamiliar with official protocols for distributing standalone apps on Mac at the moment.Some users have no problems while others require to chmod which is not great for a regular user who has no idea what chmod is.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/f23abfff-cb4f-4069-9130-8aac69231adfn%40googlegroups.com.
I will experiment with changing the mime type depending on platform and see where that leads me.
Packaging as a dmg did the trick. Zip for mac OS has always been a bit funny.Some feedback I got from pyinstaller is the wait time when it unpacks to opening time can be a few seconds. With no immediate console or logo etc. some users first thought is that it is broken. I dug around and it appears --windowed can not be used in conjuction with --console which to me strikes a bit odd.Do you know if there is a solution?
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/ad1163f9-911c-4016-bc7a-b86ad9eb1311n%40googlegroups.com.
Hello again,So after some tinkering I still cannot get windows applications to accept drag mime data from my SqlTableModel. I have tried the following with various commented out etc.:mime_data = QMimeData()
mime_data.setUrls(files[0])
mime_data.setText(files[0])
b = bytearray()
b.extend(map(ord, files[0]))
mime_data.setData('text/plain', QByteArray(b))Gist of my basic sqltablemodel:Do you see the same behaviour if you implement these mine data types?// Ben
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/2a4b6145-fa7e-4649-a8de-66f0167212c5n%40googlegroups.com.
Holy crap I got it...Turns out... windows requires this little addition to the beginning of any fixed filepath in the system in order for drag and drop to work:file:///C:/Users/Ben/Music/wildchars/Venda - 1.2 [pământ].wavWhich can be easily obtained via: QUrl.fromLocalFile(file_path)I will update the other thread with a detailed answer for whomever may be struggling with this in the future too
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/9fc2cc97-d995-4478-82aa-52be9500c0c0n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3nTX9CyNRJOZ_jVrGCmiP1hZ_DLR2dpP4PP%2BgZ-6vMXw%40mail.gmail.com.