Skip to content
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

Impossible loading plugin Avaframe connector on mac #733

Closed
LucaDella8 opened this issue Jul 1, 2022 · 14 comments
Closed

Impossible loading plugin Avaframe connector on mac #733

LucaDella8 opened this issue Jul 1, 2022 · 14 comments
Assignees
Labels
bug Something isn't working

Comments

@LucaDella8
Copy link

Hello,
I'm trying to add the AvaFrameConnector plugin to Qgis (Standard / Operational installation).
But I got the error:
Impossible to load the plugin 'avaframeConnector' due to an error calling the method classFactory()
ModuleNotFoundError: No module named 'avaframe'

  1. QGIS already installed in my pc
  2. Open the terminal
  3. python3 -m pip install --user avaframe
  4. python3 -m pip install --user --upgrade numpy pandas
  5. open QGIS and try to add the plugin within the Manage Install Plugins
  6. Got the error

These are the error print screen:

Schermata 2022-07-01 alle 11 17 55

Schermata 2022-07-01 alle 11 18 05

OS: macOS Monterey, version 12.4

Thanks, Luca

@fso42 fso42 self-assigned this Jul 4, 2022
@fso42 fso42 added the bug Something isn't working label Jul 4, 2022
@fso42
Copy link
Contributor

fso42 commented Jul 4, 2022

Hi Luca,
Thanks for your report!

It seems QGis uses another python installation than the system one on Mac OS, or it does not honour the user-installed packages. I don't have a Mac on hand to test this.
I see the following possible solutions:

Maybe one of these helps...

@LucaDella8
Copy link
Author

LucaDella8 commented Jul 4, 2022 via email

@fso42
Copy link
Contributor

fso42 commented Jul 5, 2022

Hi Luca,
I have some feedback from another macOS user (thanks, Rudi!); he has it running on macOS.

He has the following feedback on your problem:

  • To install avaframe with the QGis python, he uses:
cd /Applications/QGIS.app/Contents/MacOS/bin/
./python3 -m pip install avaframe
./python3 -m pip install --user --upgrade numpy pandas.

The info about AvaFrame not being found pops up from time to time without any discernable pattern.
He then calls python3 -m pip show avaframe and python3 -m pip show numpy, and it works again.

To avoid having to do this all the time, he automated it via Automator or shell script:

python3 -m pip show numpy
python3 -m pip show avaframe
/Applications/QGIS-LTR.app/Contents/MacOS/QGIS.

However, be aware: inside QGis, he has to run it in batch mode:
image

@LucaDella8
Copy link
Author

LucaDella8 commented Jul 5, 2022 via email

@fso42
Copy link
Contributor

fso42 commented Jul 5, 2022

Hi Luca, I can't see your error, there seems to be an image missing?

@LucaDella8
Copy link
Author

I update the link with the screenshot

@fso42
Copy link
Contributor

fso42 commented Jul 6, 2022

This seems to happen for other plugins as well, e.g. here (in German) BergWerkGIS/VoGIS-Profil-Tool#21
they point towards this solution: maptiler/qgis-maptiler-plugin#140 (comment)
Not sure if this helps...

@LucaDella8
Copy link
Author

I upgrade pip and Pillow as described here:
https://stackoverflow.com/questions/66308383/pillow-not-installing-on-apple-silicon

then I did again the procedure suggest by Rudi, but I have a new error:

Schermata 2022-07-06 alle 10 05 50

@fso42
Copy link
Contributor

fso42 commented Jul 7, 2022

Since you are on the development installation, you need to do the
python setup.py build_ext --inplace
step.
At least I think that's what's missing here...

@LucaDella8
Copy link
Author

Why you say I'm on the development installation? Here I'm trying to install the Plugin in QGIS to use the Standard / Operational installation.

@fso42
Copy link
Contributor

fso42 commented Jul 7, 2022

Uh sorry, I got that wrong!
I'm currently releasing version 1.2, maybe you can try to update once I updated the pip installation files...

@LucaDella8
Copy link
Author

ok

@fso42 fso42 closed this as completed Mar 16, 2023
@LucaDella8
Copy link
Author

Ciao Felix, since I was not checking anymore and only using the development version, I did not try anymore. Today I was trying with the new version of avaframe but still have problems to use it directly within qgis.

Here the errors that appear. Do you have new suggestions or the same you told me some month ago?
I try with two different version of qgis (3.30.0 RC and 3.28.4 LTR) but more or less I had the same problems. It follow asking to close/restart qgis every time I launch qgis and I still get errors on loading the plugin and on trying to run an avaframe command. It does not find the avaframe module.

![Screenshot 2023-03-22 alle 08 32 56](https://user-images.githu
Screenshot 2023-03-22 alle 15 27 15
buserconten
Screenshot 2023-03-22 alle 15 25 41
t.com/102517410/226937050-b169e9a6-7f4a-4a26-92ba-ed77fdd3e5da.png)

Best regards, Luca

@fso42
Copy link
Contributor

fso42 commented Mar 22, 2023

Hi @LucaDella8 : I moved the discussion to #837

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants