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

Upgrade to 2.8x required in Preferences / Add-ons panel #11

Open
Rustmonger opened this issue Oct 4, 2019 · 16 comments
Open

Upgrade to 2.8x required in Preferences / Add-ons panel #11

Rustmonger opened this issue Oct 4, 2019 · 16 comments

Comments

@Rustmonger
Copy link

I have Blender 2.80 installed, I downloaded the add-on from
https://github.com/mrossini-ethz/camera-calibration-pvr/tree/blender-2.8
installed it through Blender 2.80 and when I go into the add-ons panel under preferences it has a little exclamation point in a triangle and says

"upgrade to 2.8x required"

Any workaround? I would love to get this working. Thanks!

@schroef
Copy link
Contributor

schroef commented Oct 11, 2019

For me on OSX it doesnt work when using the zip, thats due to the point in the zip and folder name. When i changed the folder to "camera-calibration-pvr-blender-28", it does work and works just fine.

Screen Shot 2019-10-11 at 17 42 06

PS you sure you used the 2.8 branch?
Make sure you check the branch drop-down menu and select the blender 2.8 branch, then download the zip. Remember to rename the folder, other wise it wont show.
Screen Shot 2019-10-11 at 17 44 44

@enricoros
Copy link

enricoros commented Oct 29, 2019

Same issue here. Tried both blender 2.80 and 2.81 (Oct 29) on Linux x86_64.
image

@schroef
Copy link
Contributor

schroef commented Oct 31, 2019

Just check my post and read it. Then see how the folder is named on your OS. That helps ;)

@enricoros
Copy link

Instructions for getting this to work:

  • clone the repository
  • switch to the "blender-2.8" branch
  • delete the outdated "camera-calibration-pvr.py" file, since it's still for blender 2.7 and confusing
  • zip the folder (e.g. to camera-calibration-pvr.zip)
  • Blender: Preferences > Addons > Install - point to the ZIP file, and activate
  • there won't be any "upgrade to 2.8x required" message

To use the addon:

  • Add > Image > Background, then pick a photo
  • Add > Mesh > Plane
  • Edit and drag each of the 4 vertices to the corner of a planar surface
  • Properties > Scene > Camera Calibration PVR
  • Camera Calibration PVR > Image: pick the background image element
  • Select the plane (only)
  • Camera Calibration PVR > Solve focal

Thanks to the author for this great addon!

@scurv
Copy link

scurv commented Dec 1, 2019

I still can't get this thing to install.

@schroef
Copy link
Contributor

schroef commented Dec 4, 2019

Well without info or screenshots were looking for a Titanic

@asdzxcasd
Copy link

I figured out how to make it work.
zip-file must contain directory camera-calibration-pvr, and all files must be located in that directory, but not in zip-file itself. The issue is that different archievers can create zip-file with different structure. Also I had to remove everything related to the addon from ~/.config/blender/2.81/scripts/addons/ before installation.
It would be much more convenient if zip-file was released instead of making everyone to create it themselves.

@scurv
Copy link

scurv commented Dec 8, 2019

I figured out how to make it work.
zip-file must contain directory camera-calibration-pvr, and all files must be located in that directory, but not in zip-file itself. The issue is that different archievers can create zip-file with different structure. Also I had to remove everything related to the addon from ~/.config/blender/2.81/scripts/addons/ before installation.
It would be much more convenient if zip-file was released instead of making everyone to create it themselves.

You are the awesome! I did the extract and renamed the camera-calibration-pvr blender-2.8 to camera-calibration-pvr and then cramed it back into a zip and it worked.

@ghost
Copy link

ghost commented Jan 7, 2020

I figured out how to make it work.

Can somebody upload screenshot with folder structure? Or create filetree diagram using filetree.py:

- ../blender/2.80/scripts/addons/
 ├ <subdir>
 │  ├ file1
 │  └ file2
 ├ file1
 ├ file2
 └ file3

@DreamsOf3DSpace
Copy link

Can confirm if you change the folder inside the zip to be named just "camera-calibration-pvr" it works but I was still confused where to find it for a while.
image
[Screenshot to help others]

@xan2622
Copy link

xan2622 commented Jan 31, 2020

Thank you @asdzxcasd for this tip, it does fix the addon installation problem.

@mrossini-ethz
Copy link
Owner

Hello everyone, sorry for being inactive this whole time. I have created a copy of the blender-2.8 branch and named it blender-2-80 which has no "." in it. Also, I removed the legacy camera-calibration-pvr.py file. Could someone please check whether the install problems are eliminated now?

@xan2622
Copy link

xan2622 commented Feb 2, 2020

Hi @mrossini-ethz

It seems to work fine now. 👍
No installation problem here with this camera-calibration-pvr-blender-2-80.zip file.

@arigoru
Copy link

arigoru commented Feb 14, 2020

I had no installation problems with 2-80 branch, but I could not get it to work properly. I drop background empty, add plane, adjust plane, select that plane and press "solve focal". It simply messes up current camera and creates new plane. After I adjust that, it creates another plane. If something about workflow changed, it seems that guide is outdated.
It just creates "Plane_Cal", then "Plane_Cal_Cal" and regardless of how i try to adjust them it never solves camera properly.

@jbmikk
Copy link

jbmikk commented Sep 21, 2020

I tested this in blender 2.9 and managed to install it, although I still have to actually use it.
@mrossini-ethz if the camera-calibration-pvr.py file is legacy and was removed then the installation steps in the readme file should be updated accordingly right? At least in the blender-2-80 branch.

@sergeikrasnikov
Copy link

sergeikrasnikov commented May 28, 2021

It seems to work with blender 2.92 (Linux)

git clone https://github.com/mrossini-ethz/camera-calibration-pvr.git
git checkout blender-2-80

I just copied the entire addon's dir to the blender's script dir (in my case ~/.config/blender/2.92/scripts/addons)
run blender
Edit->Preferences
typed in the search box: Camera
blender found "Camera: Camera calibration using ..."
checked box
That adds the additional menus at the Scene.Properties tab
it works!

Also you can run the addon via the blender's python console.
I renamed the addon dir (because python doesn't allow to use "-" in a module name)
"camera-calibration-pvr" to "camera_calibration_pvr"
then I opened the blender's tab "Scripting"
typed in "Python console":

import sys
#change the following path otherwise python couldn't find the addon's dir
sys.path.append("FULL/PATH/TO/ADDON/DIR")
import camera_calibration_pvr
camera_calibration_pvr.register()
#after that you should see the additional menus at the Scene.Properties tab 

Thank you, Marco Rossini!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests