a093130 / Alfano

Python modules for Astrodynamics
GNU General Public License v3.0
0 stars 0 forks source link

Possible incompatibity on Linux? #2

Open Linux94 opened 2 years ago

Linux94 commented 2 years ago

Not positive but could be a cross platform problem in Linux for Python.  Alfano package downloads and installs but does not run on my DigitalSats Ubuntu 20.04 OVA or other Ubuntu 20.04 installations on AMD64 and ARM64. This maybe a problem in Python on Windows vs Linux, specifically in the "asyncio" package under windows_events. (It crashes due to missing "_overlapped" module ) Their are known differences in platform support of "asyncio": Asyncio Platforms

When I was running the code originally posted as standalone I commented out the call to "asyncio.windows_events" to get the code to run on Linux. A similar "trick" performed on the code installed by PIP in .local/lib/python3.8/site-packages/alfano/controls/YawAngles.py around line 76 allowed the code to be test run as: python3 -m alfano.controls.GenerateControlTable python3 -m alfano.utilities.AlfanoLib

a093130 commented 2 years ago

The package has a require Windows 10 constraint.

You'll see in the import statements that pywintypes, xlwings and xlsxwriter are imported.

import pywintypes as pwin import xlwings as xw import xlsxwriter as xwrt

So, the import statements for those will certainly fail.

I use Excel extensively in my work, so I have never attempted to run that library or GMAT on Ubuntu.

Colin

From: Linux94 @.> Sent: Tuesday, May 31, 2022 5:52 PM To: a093130/Alfano @.> Cc: Subscribed @.***> Subject: [a093130/Alfano] Possible incompatibity on Linux? (Issue #2)

Not positive but could be a cross platform problem in Linux for Python. Alfano package downloads and installs but does not run on my DigitalSats Ubuntu 20.04 OVA or other Ubuntu 20.04 installations on AMD64 and ARM64. This maybe a problem in Python on Windows vs Linux, specifically in the "asyncio" package under windows_events. (It crashes due to missing "_overlapped" module ) Their are known differences in platform support of "asyncio": Asyncio Platformshttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.python.org%2F3%2Flibrary%2Fasyncio-platforms.html&data=05%7C01%7C%7Cb0c135a8e2764eaa415a08da4368ec66%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637896415159502423%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=gSA1C2Nh%2BguY%2BOFEJ2xTJdiofFkmNulEjj4ni%2FqUS0I%3D&reserved=0

When I was running the code originally posted as standalone I commented out the call to "asyncio.windows_events" to get the code to run on Linux. A similar "trick" performed on the code installed by PIP in .local/lib/python3.8/site-packages/alfano/controls/YawAngles.py around line 76 allowed the code to be test run as: python3 -m alfano.controls.GenerateControlTable python3 -m alfano.utilities.AlfanoLib

- Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fa093130%2FAlfano%2Fissues%2F2&data=05%7C01%7C%7Cb0c135a8e2764eaa415a08da4368ec66%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637896415159502423%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=t5C3Skg9a6bLKGIBn5h%2BzDH6u5HeX0LcCG001wUKG04%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAE3XVXAOANRH2CQ2FO2EQ5LVM2X2VANCNFSM5XPIRFRQ&data=05%7C01%7C%7Cb0c135a8e2764eaa415a08da4368ec66%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637896415159502423%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5euAvpSFd3TMzRC4aH1vB6Abg9ohiAQByU9pI0rK2O0%3D&reserved=0. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>

Linux94 commented 2 years ago

Colin, As mentioned earlier, with minor modifications the code executes on Linux in a standalone mode. (Within GMAT is a different matter to be addressed in a separate Issue). Excel format is supported by importing xlsxwriter module for example. In Open Source world LibreOffice can be used to open resulting XLS files.

a093130 commented 2 years ago

I'd love to see an alternate, portable implementation. Why don't you pull the project from ao93190, it's public, clone it and go to work. Just remember the Windows/Excel implementation must co-exist peacefully.

From: Linux94 @.> Sent: Monday, June 13, 2022 2:11 PM To: a093130/Alfano @.> Cc: Colin @.>; Comment @.> Subject: Re: [a093130/Alfano] Possible incompatibity on Linux? (Issue #2)

Colin, As mentioned earlier, with minor modifications the code executes on Linux in a standalone mode. (Within GMAT is a different matter to be addressed in a separate Issue). Excel format is supported by importing xlsxwriter module for example. In Open Source world LibreOffice can be used to open resulting XLS files.

- Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fa093130%2FAlfano%2Fissues%2F2%23issuecomment-1154443049&data=05%7C01%7C%7C95904d8e32ea488cb0e708da4d813947%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637907514657862784%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=rz0txSbmnsiqjZxnxOVpyGrG58S2LEKaHbyIdTr%2FEV8%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAE3XVXGKQIWCH24EDRKYXIDVO6PWNANCNFSM5XPIRFRQ&data=05%7C01%7C%7C95904d8e32ea488cb0e708da4d813947%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637907514657862784%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zJrNq9cWlnLx4coQ0jmksV8GmN8ZwSU4ZdFGCis3koc%3D&reserved=0. You are receiving this because you commented.Message ID: @.**@.>>