-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Module Not Found #126
Comments
Sounds like a AdvancedOrthoElevationCreator issue and not a pyotherside
issue. Have you installed osgeo?
dilloncsr ***@***.***> schrieb am Do. 16. Feb. 2023 um 16:45:
… When I import a python file I get the following error:
"PyOtherSide error: Traceback (most recent call last):\n\n File
"qrc:/qml/AdvancedOrthoElevationCreator/views//TiffWriter.py", line 3, in
\n from osgeo import gdal\n\nModuleNotFoundError: No module named 'osgeo'\n"
Unhandled PyOtherSide error: Cannot import module: TiffWriter (Traceback
(most recent call last):
File "qrc:/qml/AdvancedOrthoElevationCreator/views//TiffWriter.py", line
3, in
from osgeo import gdal
ModuleNotFoundError: No module named 'osgeo'
)
—
Reply to this email directly, view it on GitHub
<#126>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABBASN6GSP7NYY3XOXGOJTWXZDRBANCNFSM6AAAAAAU6K33OA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
yes, I can run the script from a regular python session and it is successful but if I place this same file in the application using pyotherside I get this error |
If you have multiple versions of python3 installed, maybe the „regular
python session“ is different from the libpython3 version against which
pyotherside was linked? Also verify PYTHONPATH.
dilloncsr ***@***.***> schrieb am Do. 16. Feb. 2023 um 16:51:
… yes, I can run the script from a regular python session and it is
successful but if I place this same file in the application using
pyotherside I get this error
—
Reply to this email directly, view it on GitHub
<#126 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABBASK4T4QHJBVSH5OEFGDWXZEGZANCNFSM6AAAAAAU6K33OA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
As described in the Building PyOtherSide documentation, you can pass in a custom Note that in some extreme convoluted cases, In any case, |
Thank you for the response! You have helped me significantly!!! It appears that, in fact, GDAL was not installed in the python version that I was using with Qt. I do have one other question though, how would I include the GDAL library in the project as I did with the Python standard Library? |
How did you include the standard library? If it's just a ZIP file, and GDAL is also a pure python library, just include it in the ZIP file. If not (e.g. it includes .pyd/.dll/... binaries), it might be a bit more tricky, depending on the target platform. |
When I import a python file I get the following error:
"PyOtherSide error: Traceback (most recent call last):\n\n File "qrc:/qml/AdvancedOrthoElevationCreator/views//TiffWriter.py", line 3, in \n from osgeo import gdal\n\nModuleNotFoundError: No module named 'osgeo'\n"
Unhandled PyOtherSide error: Cannot import module: TiffWriter (Traceback (most recent call last):
File "qrc:/qml/AdvancedOrthoElevationCreator/views//TiffWriter.py", line 3, in
from osgeo import gdal
ModuleNotFoundError: No module named 'osgeo'
)
The text was updated successfully, but these errors were encountered: