Page MenuHome

Lots of warnings when Blender Cloud Addon is enabled + Freeze of User Prefs
Closed, ArchivedPublic

Description

System Information
Operating system: Linux-5.1.14-arch1-1-ARCH-x86_64-with-arch 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.26

Blender Version
Broken: version: 2.80 (sub 74), branch: master, commit date: 2019-06-24 18:46, hash: rBc0c1b4542f39
Worked: (optional)

Short description of error

(Latest Build of last night + Factory User Prefs are used.)

I only installed the Blender Cloud Addon (v. 1.13.5) and logged in with my Blender ID.

Then, when I launch Blender, I get this output in the Command Line:

Read prefs: /home/michael/.config/blender/2.80/config/userpref.blend
found bundled python: /opt/blender-2.80/2.80/python
Warning: class FlamencoManagerGroup contains a property which should be an annotation!
/home/michael/.config/blender/2.80/scripts/addons/blender_cloud/flamenco/__init__.py:1177
    assign as a type annotation: FlamencoManagerGroup.manager
    assign as a type annotation: FlamencoManagerGroup.status
Warning: class FLAMENCO_OT_render contains a property which should be an annotation!
/home/michael/.config/blender/2.80/scripts/addons/blender_cloud/flamenco/__init__.py:1177
    assign as a type annotation: FLAMENCO_OT_render.quit_after_submit
Warning: class FLAMENCO_OT_explore_file_path contains a property which should be an annotation!
/home/michael/.config/blender/2.80/scripts/addons/blender_cloud/flamenco/__init__.py:1177
    assign as a type annotation: FLAMENCO_OT_explore_file_path.path
Warning: class FLAMENCO_OT_set_recommended_sample_cap contains a property which should be an annotation!
/home/michael/.config/blender/2.80/scripts/addons/blender_cloud/flamenco/__init__.py:1177
    assign as a type annotation: FLAMENCO_OT_set_recommended_sample_cap.sample_cap
Warning: class ATTRACT_OT_shot_relink contains a property which should be an annotation!
/home/michael/.config/blender/2.80/scripts/addons/blender_cloud/attract/__init__.py:1033
    assign as a type annotation: ATTRACT_OT_shot_relink.strip_atc_object_id
Warning: class ATTRACT_OT_shot_delete contains a property which should be an annotation!
/home/michael/.config/blender/2.80/scripts/addons/blender_cloud/attract/__init__.py:1033
    assign as a type annotation: ATTRACT_OT_shot_delete.confirm
Warning: class ATTRACT_OT_project_open_in_browser contains a property which should be an annotation!
/home/michael/.config/blender/2.80/scripts/addons/blender_cloud/attract/__init__.py:1033
    assign as a type annotation: ATTRACT_OT_project_open_in_browser.project_id
Warning: class PILLAR_OT_switch_hdri contains a property which should be an annotation!
/home/michael/.config/blender/2.80/scripts/addons/blender_cloud/texture_browser/__init__.py:818
    assign as a type annotation: PILLAR_OT_switch_hdri.image_name
    assign as a type annotation: PILLAR_OT_switch_hdri.file_uuid
Warning: class PILLAR_OT_sync contains a property which should be an annotation!
/home/michael/.config/blender/2.80/scripts/addons/blender_cloud/settings_sync.py:528
    assign as a type annotation: PILLAR_OT_sync.action
    assign as a type annotation: PILLAR_OT_sync.blender_version
Warning: class PILLAR_OT_image_share contains a property which should be an annotation!
/home/michael/.config/blender/2.80/scripts/addons/blender_cloud/image_sharing.py:337
    assign as a type annotation: PILLAR_OT_image_share.target
    assign as a type annotation: PILLAR_OT_image_share.name
    assign as a type annotation: PILLAR_OT_image_share.screenshot_show_multiview
    assign as a type annotation: PILLAR_OT_image_share.screenshot_use_multiview
    assign as a type annotation: PILLAR_OT_image_share.screenshot_full
Warning: class BlenderCloudProjectGroup contains a property which should be an annotation!
/home/michael/.config/blender/2.80/scripts/addons/blender_cloud/blender.py:723
    assign as a type annotation: BlenderCloudProjectGroup.status
    assign as a type annotation: BlenderCloudProjectGroup.project
Warning: class BlenderCloudPreferences contains a property which should be an annotation!
/home/michael/.config/blender/2.80/scripts/addons/blender_cloud/blender.py:724
    assign as a type annotation: BlenderCloudPreferences.pillar_server
    assign as a type annotation: BlenderCloudPreferences.local_texture_dir
    assign as a type annotation: BlenderCloudPreferences.open_browser_after_share
    assign as a type annotation: BlenderCloudPreferences.project
    assign as a type annotation: BlenderCloudPreferences.cloud_project_local_path
    assign as a type annotation: BlenderCloudPreferences.flamenco_manager
    assign as a type annotation: BlenderCloudPreferences.flamenco_exclude_filter
    assign as a type annotation: BlenderCloudPreferences.flamenco_job_file_path
    assign as a type annotation: BlenderCloudPreferences.flamenco_job_output_path
    assign as a type annotation: BlenderCloudPreferences.flamenco_job_output_strip_components
    assign as a type annotation: BlenderCloudPreferences.flamenco_relative_only
    assign as a type annotation: BlenderCloudPreferences.flamenco_open_browser_after_submit
    assign as a type annotation: BlenderCloudPreferences.flamenco_show_quit_after_submit_button
Warning: class SyncStatusProperties contains a property which should be an annotation!
/home/michael/.config/blender/2.80/scripts/addons/blender_cloud/blender.py:726
    assign as a type annotation: SyncStatusProperties.status
    assign as a type annotation: SyncStatusProperties.version
    assign as a type annotation: SyncStatusProperties.message
    assign as a type annotation: SyncStatusProperties.level
Warning: class PILLAR_OT_project_open_in_browser contains a property which should be an annotation!
/home/michael/.config/blender/2.80/scripts/addons/blender_cloud/blender.py:729
    assign as a type annotation: PILLAR_OT_project_open_in_browser.project_id
WARN (bpy.rna): /home/sources/buildbot-x86_64-slave/linux_glibc224_x86_64_cmake/blender.git/source/blender/python/intern/bpy_rna.c:1457 pyrna_enum_to_py: current value '0' matches no enum in 'BlenderCloudProjectGroup', '', 'project'

These are just warnings, but I'm not sure if other people are seeing this, so I wanted to report it anyways. - It definitely takes a (small) hit on startup time.

Also, when I press "Validate" in the Blender ID authentication Addon, the User Pref Window freezes and I have to use Ctrl+C in terminal to kill it.
This produces the following output:

^CTraceback (most recent call last):
  File "/opt/blender-2.80/2.80/scripts/addons/blender_id/__init__.py", line 327, in execute
    err = validate_token()
  File "/opt/blender-2.80/2.80/scripts/addons/blender_id/__init__.py", line 139, in validate_token
    expires, err = communication.blender_id_server_validate(token=BlenderIdProfile.token)
  File "/opt/blender-2.80/2.80/scripts/addons/blender_id/communication.py", line 172, in blender_id_server_validate
    r = session.post(url, data={'token': token}, verify=True)
  File "/opt/blender-2.80/2.80/python/lib/python3.7/site-packages/requests/sessions.py", line 559, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/opt/blender-2.80/2.80/python/lib/python3.7/site-packages/requests/sessions.py", line 512, in request
    resp = self.send(prep, **send_kwargs)
  File "/opt/blender-2.80/2.80/python/lib/python3.7/site-packages/requests/sessions.py", line 622, in send
    r = adapter.send(request, **kwargs)
  File "/opt/blender-2.80/2.80/python/lib/python3.7/site-packages/requests/adapters.py", line 445, in send
    timeout=timeout
  File "/opt/blender-2.80/2.80/python/lib/python3.7/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/opt/blender-2.80/2.80/python/lib/python3.7/site-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/opt/blender-2.80/2.80/python/lib/python3.7/site-packages/urllib3/connectionpool.py", line 849, in _validate_conn
    conn.connect()
  File "/opt/blender-2.80/2.80/python/lib/python3.7/site-packages/urllib3/connection.py", line 314, in connect
    conn = self._new_conn()
  File "/opt/blender-2.80/2.80/python/lib/python3.7/site-packages/urllib3/connection.py", line 171, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/opt/blender-2.80/2.80/python/lib/python3.7/site-packages/urllib3/util/connection.py", line 69, in create_connection
    sock.connect(sa)
KeyboardInterrupt

location: <unknown location>:-1

location: <unknown location>:-1

I hope this is useful. Please let me know if I can test/try anything else.

Details

Type
Bug

Event Timeline

I just downloaded Blender Cloud addon and it was version 1.13.5, not 1.9.999. It didn't generate any errors on Win64 on the 6/22/2019 build of 2.80 FWIW.

I'd suggest going to https://cloud.blender.org/services and re-downloading the addon and trying again.

I just downloaded Blender Cloud addon and it was version 1.13.5, not 1.9.999. It didn't generate any errors on Win64 on the 6/22/2019 build of 2.80 FWIW.
I'd suggest going to https://cloud.blender.org/services and re-downloading the addon and trying again.

Thanks for pointing it out. In fact it is 1.13.5. (Downloaded it today) I accidentally looked at the version of the Authentication Addon. I updated the original task.

Please don't report two bugs in two add-ons in one report. They are related but developed & distributed separately, and those two issues have not much in common.

The "assign as a type annotation" is only reasonable, because the add-on targets the latest release of Blender. Of course we try to keep it up to date with 2.80, but fixing those warnings would break compatibility with 2.79. If I'm wrong about this, and there is a way to fix them and keep 2.79-compatible, let me know.

The login validation of Blender ID should be reasonably fast, but depends on the speed of your connection to the Blender ID server. @Michael Hermann (245) how responsive is https://id.blender.org/ for you?

Please don't report two bugs in two add-ons in one report. They are related but developed & distributed separately, and those two issues have not much in common.

Of course. It seemed like one issue/possibly related to me.

The "assign as a type annotation" is only reasonable, because the add-on targets the latest release of Blender. Of course we try to keep it up to date with 2.80, but fixing those warnings would break compatibility with 2.79. If I'm wrong about this, and there is a way to fix them and keep 2.79-compatible, let me know.

Thanks you for the explanation. That helps to understand the warnings. The only thing I can think of right now would be to suppress them if it is 2.8x. But it's hard to judge for me if that could have other implications.

The login validation of Blender ID should be reasonably fast, but depends on the speed of your connection to the Blender ID server. @Michael Hermann (245) how responsive is https://id.blender.org/ for you?

It's as responsive as any other website. No noticeable delay whatsoever.

I recorded a quick screen capture to show what happens on my end. I hope this helps.

What happens if you give it some time? Does it time out after a while?

What happens if you give it some time? Does it time out after a while?

OK... after about 3 minutes, it actually worked. Of course, I have waited before, but never THAT long. Seems odd, since logging in and out works instantly.

That's strange, as those are all very similar HTTP calls.
For now I'll archive this task. If you find out it happens on other machines with different internet connections, or can give more info on how to reproduce (here it's all fast), please add a comment and we'll re-visit.