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

[0.3.1] Random crashes with module 'opcua.ua' has no attribute 'test_bit' #27

Closed
Stasik0 opened this issue Nov 17, 2016 · 18 comments
Closed

Comments

@Stasik0
Copy link

Stasik0 commented Nov 17, 2016

Traceback (most recent call last):
File "\WinPython-64bit-3.5.2.3Qt5\python-3.5.2.amd64
\lib\site-packages\uawidgets\attrs_widget.py", line 204, in createEditor
return BitEditor(parent, attr, dv.Value.Value)
File "\WinPython-64bit-3.5.2.3Qt5\python-3.5.2.amd64
\lib\site-packages\uawidgets\attrs_widget.py", line 30, in init
if ua.test_bit(val, el.value):
AttributeError: module 'opcua.ua' has no attribute 'test_bit'

@oroulet
Copy link
Member

oroulet commented Nov 17, 2016

Thanks for the bug reports. This function has been moved...

On Thu, Nov 17, 2016, 10:49 Sten Grüner notifications@github.com wrote:

Traceback (most recent call last):
File "\WinPython-64bit-3.5.2.3Qt5\python-3.5.2.amd64
\lib\site-packages\uawidgets\attrs_widget.py", line 204, in createEditor
return BitEditor(parent, attr, dv.Value.Value)
File "\WinPython-64bit-3.5.2.3Qt5\python-3.5.2.amd64
\lib\site-packages\uawidgets\attrs_widget.py", line 30, in init
if ua.test_bit(val, el.value):
AttributeError: module 'opcua.ua' has no attribute 'test_bit'


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#27, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACcfzn5_CBF2cky6r9RkGb62vdqoG-sbks5q_CMmgaJpZM4K1FMJ
.

@oroulet
Copy link
Member

oroulet commented Nov 17, 2016

this is fixed in master already

On Thu, 17 Nov 2016 at 10:54 Olivier Roulet-Dubonnet <
olivier.roulet@gmail.com> wrote:

Thanks for the bug reports. This function has been moved...

On Thu, Nov 17, 2016, 10:49 Sten Grüner notifications@github.com wrote:

Traceback (most recent call last):
File "\WinPython-64bit-3.5.2.3Qt5\python-3.5.2.amd64
\lib\site-packages\uawidgets\attrs_widget.py", line 204, in createEditor
return BitEditor(parent, attr, dv.Value.Value)
File "\WinPython-64bit-3.5.2.3Qt5\python-3.5.2.amd64
\lib\site-packages\uawidgets\attrs_widget.py", line 30, in init
if ua.test_bit(val, el.value):
AttributeError: module 'opcua.ua' has no attribute 'test_bit'


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#27, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACcfzn5_CBF2cky6r9RkGb62vdqoG-sbks5q_CMmgaJpZM4K1FMJ
.

@Stasik0
Copy link
Author

Stasik0 commented Nov 17, 2016

Is there any way to pull master using pip?

@oroulet
Copy link
Member

oroulet commented Nov 17, 2016

no. you need to clone python-opcua, then opcua-modeller then opcua-widgets
as uawidget in opcua-modeller directory. Maybe I should write a script

On Thu, 17 Nov 2016 at 11:23 Sten Grüner notifications@github.com wrote:

Is there any way to pull master using pip?


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#27 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACcfzg2_NY1Jd0-XaUHFI0sJuc1ECWfGks5q_Cs0gaJpZM4K1FMJ
.

@Stasik0
Copy link
Author

Stasik0 commented Nov 17, 2016

or just do a quick copy-paste FAQ, would be sufficient

@zerox1212
Copy link
Collaborator

zerox1212 commented Nov 17, 2016

What I normally do is pull opcua-modeler, python-opcua, opcua-widgets to my local machine. Then I copy the opcua and widgets folder into the modeler folder. After that I run it from my IDE (run app.py).

Running it in debug will let you fix lots of these little bugs from this being an early release.

If you are actually doing work with modeler, definitely save a lot lol.

@Stasik0
Copy link
Author

Stasik0 commented Dec 5, 2016

@oroulet bump?

@oroulet
Copy link
Member

oroulet commented Dec 5, 2016

What is the status here? Have you managed to run master? This is supposed to be fixed there.
If you can test master and give feedback we can make a new release. We fixed many things

@Stasik0
Copy link
Author

Stasik0 commented Dec 5, 2016

Sorry, but is there some quick reference how to run master (i am familiar with git, but not with python infrastructure)? It will probably be useful for other "bleeding edge"-tester as well.

@zerox1212
Copy link
Collaborator

zerox1212 commented Dec 5, 2016

Python always searches for dependencies locally first, so if you just copy the opcua and uawidgets folder to the opcua-modeler folder python will use that, even if you have other libraries installed with pip.

After you pull opcua-modeler master, copy the other latest masters so your modeler folder looks like this:
image

Then you can run the project with app.py and have all the latest code

@oroulet
Copy link
Member

oroulet commented Dec 5, 2016

you can do as @zerox1212 says or look at README file, I just updated it

@Stasik0
Copy link
Author

Stasik0 commented Dec 8, 2016

@oroulet I got the following error when running app.py

File "\freeopcua-modeler\WinPython-64bit-3.5.2.3Qt5
python-3.5.2.amd64\lib\site-packages\uawidgets\new_node_dialogs.py", line 6, in

from opcua.common.ua_utils import dtype_to_vtype
ImportError: cannot import name 'dtype_to_vtype'

P.S. set the path in windows using set PYTHONPATH=%PYTHONPATH%;%cd%\python-opcua;%cd%\opcua-widgets

@oroulet
Copy link
Member

oroulet commented Dec 8, 2016 via email

@Stasik0
Copy link
Author

Stasik0 commented Dec 8, 2016

i have downloaded master, I guess it takes the wrong dependency from site-packages and ignores pythonpath

@oroulet
Copy link
Member

oroulet commented Dec 8, 2016 via email

@Stasik0
Copy link
Author

Stasik0 commented Dec 8, 2016

yes, typo from my side, i got master running, will test it a bit

@Stasik0
Copy link
Author

Stasik0 commented Dec 8, 2016

please update readme with the line for windows
set PYTHONPATH=%PYTHONPATH%;%cd%\python-opcua;%cd%\opcua-widgets

@oroulet
Copy link
Member

oroulet commented Dec 8, 2016 via email

@oroulet oroulet closed this as completed Jan 2, 2017
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

3 participants