Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 17 18:40
    tokejepsen closed #52
  • Jan 17 18:40
    tokejepsen commented #52
  • Jan 16 11:27
  • Jan 04 05:58
  • Dec 19 2020 20:13
  • Dec 10 2020 09:59
    mkolar converted_to_draft #567
  • Dec 10 2020 09:58
    mkolar edited #567
  • Dec 10 2020 09:56
    mkolar opened #567
  • Nov 24 2020 08:52
    mkolar commented #565
  • Nov 23 2020 23:48
    mkolar commented #565
  • Nov 23 2020 23:47
    mkolar commented #565
  • Nov 23 2020 23:41
    mkolar commented #565
  • Nov 23 2020 23:37
    mkolar commented #565
  • Nov 23 2020 23:36
    mkolar commented #565
  • Nov 23 2020 23:36
    mkolar commented #565
  • Nov 19 2020 18:31
    BigRoy commented #565
  • Nov 15 2020 20:40
    robmoggach closed #8
  • Nov 15 2020 20:40
    robmoggach commented #8
  • Nov 15 2020 18:39
    BigRoy commented #8
  • Nov 15 2020 17:27
Marcus Ottosson
@mottosso
You're in deep. Have you tried upgrading/downgrading Mongo instead?
Alternatively, this could potentially be made part of Avalon, to trigger on Houdini 18.5 specifically
David Lai
@davidlatwe

Have you tried upgrading/downgrading Mongo instead?

yeah, I tried latest and current version with docker, and they all failed if I enabled the auth :(

I am going to submit a bug report to sideFX :S
Marcus Ottosson
@mottosso
But it works for Roy, there's gotta be something local?
Maybe @BigRoy doesn't use auth?
Oh, but also I mean Mongo the Python library, not the (docker) server
David Lai
@davidlatwe

but also I mean Mongo the Python library

I have tried that too. :P Same result

Marcus Ottosson
@mottosso
Hm
David Lai
@davidlatwe
I suspect there's something wrong with Houdini's python hashlib
David Lai
@davidlatwe
Submitted. And here's my monkey patch script https://gist.github.com/davidlatwe/e08044df3361c38b081d57f8a936f4db
Roy Nieterau
@BigRoy

Maybe @BigRoy doesn't use auth?

I wont' tell. :D

I wouldn't dare.
Roy Nieterau
@BigRoy

Interesting. This does not work in Houdini 18.5:

from hashlib import pbkdf2_hmac

data = "hello"
salt = "secret"
iterations = 10

print pbkdf2_hmac('sha1', data, salt, iterations)
# ValueError: unsupported hash type

Even though it does have the algorithm:

>>> print hashlib.algorithms
('md5', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512')
>>> print hashlib.algorithms_guaranteed
set(['sha1', 'sha224', 'sha384', 'sha256', 'sha512', 'md5'])

Interestingly enough hashlib should include the name of the hash type in that error message:

raise ValueError('unsupported hash type ' + name)

...

Ondřej Samohel
@antirotor
I think it depends on version of OpenSSL hashlib was compiled with
maybe Houdini use different
Roy Nieterau
@BigRoy
The error message is similar to this: https://stackoverflow.com/questions/48416035/django-ubuntu-16-04-unsupported-hash-type where it also lacks the actual hash type name in the raised ValueError.

For sake of completeness - also reported to SideFX

Side Effects Support Ticket: # 98320

David Lai
@davidlatwe

Interesting. This does not work in Houdini 18.5:

Awesome short reproduciable code !

Roy Nieterau
@BigRoy
from maya import cmds

value = cmds.getAttr("transform.scaleY")

print value
# 1.0
print value == 1.0
# False

So I know about floating point precision errors, etc. But if Python prints the value to be 1.0 but when comparing it shows as not being 1.0... how would I figure out that the original value actually deviated. And by how much? Could I force it to print with the precision to show it? I'm fine with it being in scientific notation.

print abs(value - 1.0)
# 2.22044604925e-16

But I'd rather just see 1 + 2.22044604925e-16 as print-out. Or 1.0000000000000000222044604925

Lol. That precision.
Marcus Ottosson
@mottosso
You can force it with e.g. "%.16f" % 1.0
You can "crop" it with the same method, and compare the strings using equal precision
I think there's a global print-setting for controlling the number of decimals printed but can't recall off the top of my head
The comparison with float-to-float is probably happening in C (although a lot of the standard libray is in Python) and might be comparing the 16 bits used to store the float, but could also be some special purpose function that limits or truncates the final number
Roy Nieterau
@BigRoy
Thanks - I guess I'll go with that for numbers that I know deviate only a little for the debug message. :)
Marcus Ottosson
@mottosso
Thinking about this, in case someone reads this in the future, Python floats are likely stored with 32 bits, maybe even 64.
Jakub Trllo
@iLLiCiTiT
I once did checks of float with converting both values to float, ceiled at specific decimal point, converted to string and then compared :D
Desmond
@tws0002
Hi, just wonder do you guys have any issue when exporting USD file to a network drive using Houdini 18? I having this error message when exporting USD
Warning Insufficient permissions to write to destination directory. no problem when export file like fbx or abc just USD having this issue.
David Lai
@davidlatwe
It seems that on MacOS Big Sur, Qt python binding won't show the window unless you set env var QT_MAC_WANTS_LAYER=1
Anyone notice this issue ?
David Lai
@davidlatwe
verticalView.gif

Currently working on a small project, and just implemented a vertical extended TreeView that could scroll down to the very bottom so the last row can be scrolled to the top (Which behaves like modern text editor)

So I replace the Avalon's subset widget TreeView with it, and it looks nice :D

Marcus Ottosson
@mottosso
Hmmmm, that looks like a bug to me :/
Like either some items draw as invisible, or the last item is oversized. If I ever struggled to find something in that list, I would suspect this bug and report it "Hey dev, my item is invisible! Fix it fix it fix it!"
For a text editor, this is nice. But I haven't seen a tree widget do this before
David Lai
@davidlatwe

haha, yeah, I haven’t seen that before too.

I did that because I had a widget like, address book which has A-Z 26 tabs, clicking on tab can scroll to the first item that starts with the initial. And I’d like items that starts with e.g. U, V, ...Z which mostly sorted down the bottom can still be scrolled to top when user clicking on e.g U-Z tabs.

David Lai
@davidlatwe
sweetSearch.gif
The Rez pacakge book
Roy Nieterau
@BigRoy
The Houdini hashlib issue on Windows is fixed in Houdini 18.5.415. That's what SideFX support told me just now. @davidlatwe
David Lai
@davidlatwe
image.png
Roy Nieterau
@BigRoy
Also if you are serving floating licenses for Houdini from a license server make sure to update the license server installation. They recently deprecated some legacy licensing urls and older license servers will start to fail connecting and unable to retrieve licenses. Not sure how old the "legacy" license server versions are though. Might be 17.0 or 17.5.
They basically disabled http in favor of https.
Marcus Ottosson
@mottosso
https for local server? :O
David Lai
@davidlatwe
Thanks :D
Will check that with our license guy :P
Roy Nieterau
@BigRoy

It's the license connection to the SideFX server. Basically if you serve floating licenses from a license server and the license server occasionally confirms with their online servers.
Actually, now thinking about it... what is up with that? Why the heck is that license server checking SideFX servers even though the licenses are already redeemed.

Maybe they can withdraw licenses under special circumstances? Or it's for like when you'd have them transfer licenses to a new host name, but secretly keep the old host too but forever offline. Double the license count.

Hmm. No clue. It just happened that on our end suddenly our license server failed to serve the licenses due to it being unable to connect to a SideFX server for some reason. Support told me they deprecated some legacy http thing on their end, and that an update of the license server would be needed. That's all I know really.
Marcus Ottosson
@mottosso
This seems to have come out of beta :)
Ruchit Bhatt
@ruchitinfushion