[jira] [Resolved] (PROTON-2756) [Python] There is no way to ru npython tests except by building a virtual environment

2023-07-14 Thread Andrew Stitcher (Jira)


 [ 
https://issues.apache.org/jira/browse/PROTON-2756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Stitcher resolved PROTON-2756.
-
Resolution: Fixed

> [Python] There is no way to ru npython tests except by building a virtual 
> environment
> -
>
> Key: PROTON-2756
> URL: https://issues.apache.org/jira/browse/PROTON-2756
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: python-binding
>Affects Versions: proton-c-0.39.0
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>Priority: Major
> Fix For: proton-c-0.40.0
>
>
> This is particularly annoying when building in environments where there is no 
> internet access. As pip will always try to connect to the internet by default.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (PROTON-2756) [Python] There is no way to ru npython tests except by building a virtual environment

2023-07-14 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PROTON-2756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17743306#comment-17743306
 ] 

ASF subversion and git services commented on PROTON-2756:
-

Commit 99684736d0a9c7270e126217c8f19f1488fa605d in qpid-proton's branch 
refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=99684736d ]

PROTON-2756: Allow python testing to use the python detected by CMake

This is comtrolled by a new CMake option called ENABLE_PYTHON_TEST_VENV

If the build system is not connected to the internet then building a
virtual environment to test the python binding can be a problem so allow
the build to use the installation of python that was detected by CMake
to test the python binding.

Testing using a completely clean environment made for the purpose will
be more reliable for internet connected systems so using the venv is the
default.

Since the switch to using cffi instead of swig this is required for
testing to work and for building wheels. So we make sure that we have
cffi installed before we allow python testing or wheel building.


> [Python] There is no way to ru npython tests except by building a virtual 
> environment
> -
>
> Key: PROTON-2756
> URL: https://issues.apache.org/jira/browse/PROTON-2756
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: python-binding
>Affects Versions: proton-c-0.39.0
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>Priority: Major
> Fix For: proton-c-0.40.0
>
>
> This is particularly annoying when building in environments where there is no 
> internet access. As pip will always try to connect to the internet by default.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Created] (PROTON-2756) [Python] There is no way to ru npython tests except by building a virtual environment

2023-07-14 Thread Andrew Stitcher (Jira)
Andrew Stitcher created PROTON-2756:
---

 Summary: [Python] There is no way to ru npython tests except by 
building a virtual environment
 Key: PROTON-2756
 URL: https://issues.apache.org/jira/browse/PROTON-2756
 Project: Qpid Proton
  Issue Type: Improvement
  Components: python-binding
Affects Versions: proton-c-0.39.0
Reporter: Andrew Stitcher
Assignee: Andrew Stitcher
 Fix For: proton-c-0.40.0


This is particularly annoying when building in environments where there is no 
internet access. As pip will always try to connect to the internet by default.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Resolved] (PROTON-2755) [Python] Make python code and binding work with python 3.12

2023-07-14 Thread Andrew Stitcher (Jira)


 [ 
https://issues.apache.org/jira/browse/PROTON-2755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Stitcher resolved PROTON-2755.
-
Fix Version/s: proton-c-0.40.0
   Resolution: Fixed

> [Python] Make python code and binding work with python 3.12
> ---
>
> Key: PROTON-2755
> URL: https://issues.apache.org/jira/browse/PROTON-2755
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: python-binding
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>Priority: Major
> Fix For: proton-c-0.40.0
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (PROTON-2755) [Python] Make python code and binding work with python 3.12

2023-07-14 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PROTON-2755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17743273#comment-17743273
 ] 

ASF subversion and git services commented on PROTON-2755:
-

Commit ba49d2309c5a1abf0afcaad6d61d48fc5a6b7b85 in qpid-proton's branch 
refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=ba49d2309 ]

PROTON-2755: Make python code and binding work with python 3.12

- Fix test venv to install setuptools as that is no longer installed by default
- Fix the bindings extension builder not use distutils as that is now removed
- Fix remaining uses of assertEquals->assertEqual as that changed long ago!
- Use importlib to look for modules as that has been the correct way since
  python 3.1 and pkgutil is now deprecated
- Add py312 to the tox tests


> [Python] Make python code and binding work with python 3.12
> ---
>
> Key: PROTON-2755
> URL: https://issues.apache.org/jira/browse/PROTON-2755
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: python-binding
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Created] (PROTON-2755) [Python] Make python code and binding work with python 3.12

2023-07-14 Thread Andrew Stitcher (Jira)
Andrew Stitcher created PROTON-2755:
---

 Summary: [Python] Make python code and binding work with python 
3.12
 Key: PROTON-2755
 URL: https://issues.apache.org/jira/browse/PROTON-2755
 Project: Qpid Proton
  Issue Type: Improvement
  Components: python-binding
Reporter: Andrew Stitcher
Assignee: Andrew Stitcher






--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[GitHub] [qpid-dispatch] bartoval opened a new pull request, #1643: Update dependencies and refactoring the code

2023-07-14 Thread via GitHub


bartoval opened a new pull request, #1643:
URL: https://github.com/apache/qpid-dispatch/pull/1643

   I have updated the dependencies apart from the ones related to D3.js 
(bloodbath mode on)
   
   @jiridanek @ganeshmurthy  I have executed the basic application, but I 
believe it would be better if you could test this pull request to ensure that 
everything is functioning properly, like to the main branch. (ie login/logout)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Resolved] (PROTON-2754) Python example broker supports ANONYMOUS-RELAY but doesn't offer the capability

2023-07-14 Thread Andrew Stitcher (Jira)


 [ 
https://issues.apache.org/jira/browse/PROTON-2754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Stitcher resolved PROTON-2754.
-
Fix Version/s: proton-c-0.40.0
   Resolution: Fixed

> Python example broker supports ANONYMOUS-RELAY but doesn't offer the 
> capability
> ---
>
> Key: PROTON-2754
> URL: https://issues.apache.org/jira/browse/PROTON-2754
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: python-binding
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>Priority: Major
> Fix For: proton-c-0.40.0
>
>
> This is particularly annoying since the server example now checks that the 
> broker it's connected to does support the capability (As it needs it).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (PROTON-2754) Python example broker supports ANONYMOUS-RELAY but doesn't offer the capability

2023-07-14 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PROTON-2754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17743236#comment-17743236
 ] 

ASF subversion and git services commented on PROTON-2754:
-

Commit f03e4bdae582763d0318f8a497edf272b769b10d in qpid-proton's branch 
refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=f03e4bdae ]

PROTON-2754: Fix python example broker to offer ANONYMOUS-RELAY

The broker supports ANONYMOUS-RELAY so it should offer the capability in
its open frame.


> Python example broker supports ANONYMOUS-RELAY but doesn't offer the 
> capability
> ---
>
> Key: PROTON-2754
> URL: https://issues.apache.org/jira/browse/PROTON-2754
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: python-binding
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>Priority: Major
>
> This is particularly annoying since the server example now checks that the 
> broker it's connected to does support the capability (As it needs it).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Created] (PROTON-2754) Python example broker supports ANONYMOUS-RELAY but doesn't offer the capability

2023-07-14 Thread Andrew Stitcher (Jira)
Andrew Stitcher created PROTON-2754:
---

 Summary: Python example broker supports ANONYMOUS-RELAY but 
doesn't offer the capability
 Key: PROTON-2754
 URL: https://issues.apache.org/jira/browse/PROTON-2754
 Project: Qpid Proton
  Issue Type: Bug
  Components: python-binding
Reporter: Andrew Stitcher
Assignee: Andrew Stitcher


This is particularly annoying since the server example now checks that the 
broker it's connected to does support the capability (As it needs it).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Resolved] (PROTON-1162) connection capabilities are not sent correctly by default

2023-07-14 Thread Andrew Stitcher (Jira)


 [ 
https://issues.apache.org/jira/browse/PROTON-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Stitcher resolved PROTON-1162.
-
Fix Version/s: proton-c-0.39.0
   (was: proton-c-future)
 Assignee: Andrew Stitcher
   Resolution: Fixed

I'm not 100% sure when this was fixed (maybe 0.38) but as of 0.39 it is fixed.

> connection capabilities are not sent correctly by default
> -
>
> Key: PROTON-1162
> URL: https://issues.apache.org/jira/browse/PROTON-1162
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: python-binding
>Affects Versions: proton-0.12.0
>Reporter: Gordon Sim
>Assignee: Andrew Stitcher
>Priority: Minor
> Fix For: proton-c-0.39.0
>
>
> The offered- or desired- capabilities on a connection, they are sent out 
> incorrectly unless they are explicitly added as symbol or Array containing 
> symbols.
> E.g. instead of
> {noformat}
> conn.offered_capabilities=["foo", "bar"]
> {noformat}
> you must use:
> {noformat}
> conn.offered_capabilities=Array(UNDESCRIBED, Data.SYMBOL, symbol("foo"), 
> symbol("bar"))
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



Re: qpid-proton - Exception in send sample, in Win32

2023-07-14 Thread Robbie Gemmell
This is just a mailing list (with a web view for archival). You move
discussion to the other list by emailing the other list.

On Fri, 14 Jul 2023 at 09:54, Andrew North 
wrote:

> Just to update, we have experimented with other build options in Win32,
>
>
>
> We tried Release, RelWithDebInfo and RelMinSize – the exception does not
> occur here, and seems to work as expected, we see the messages in the
> broker,
>
>
>
> I was curious also if there is documentation to explain the state
> transitions inside the proactor class, or how to use the library without
> relying on it; currently I am referencing on the C API documentation,
>
>
>
> Additionally, I have created the same thread in the user forum, I’m not
> sure how these threads are moderated but can the discussion here be moved
> to there if its not too much hassle?
>
>- Link to that thread: qpid-proton - Exception in send sample, in
>Win32 - BUG?-Apache Mail Archives
>
>
>
>
>
> *From:* Jiri Daněk 
> *Sent:* Thursday, July 13, 2023 11:33 AM
> *To:* dev@qpid.apache.org
> *Subject:* Re: qpid-proton - Exception in send sample, in Win32
>
>
>
> Just a quick thought. The Proton CI is running only x64 builds. I must
> admit that I've almost forgotten that win32 exists, by now.
>
> (As it happened, I was privately told something about multiarch Linux
> packages yesterday, so it's not dead on Linux, either, yet.)
>
> Maybe 32bit is still helpful for embedded or low resource applications?
> Also, the address sanitizer prototype for visual studio first worked for
> win32 only.
>
> On Thu, Jul 13, 2023, 12:28 Robbie Gemmell 
> wrote:
>
> > Please use the users@ list for questions. The dev list is only used for
> > dev
> > traffic like JIRA updates etc, so other messages will often be
> overlooked.
> >
> > The lists strip essentially all attachments etc, so your images are not
> > present.
> >
> > On Thu, 13 Jul 2023 at 10:59, Andrew North <
> andrew.no...@campbellsci.co.uk
> > >
> > wrote:
> >
> > > Hello,
> > >
> > > I am seeking help on qpid-proton library, here is the description.
> > >
> > >
> > >
> > > - I cloned this repository: apache/qpid-proton: Mirror of Apache Qpid
> > > Proton (github.com)  
> >
> > > - On this commit hash: 4992b369a1b7aaa81913b4a5413616cf88d347bd
> > > (latest from master)
> > > - I built library including the examples in Win32
> > > - I tested the “send.c” example and get an exception in Win32; when I
> > > build in x64 the sample works fine
> > >
> > >
> > >
> > > Below are results of Win32 exception, let me know if there is any more
> > > information I need to provide with this investigation.
> > >
> > > I can also try to debug myself, but I would need some pointers to see
> > > where to look.
> > >
> > >
> > >
> > > Also let me know if this is the correct place to raise this issue, or
> if
> > > there is another more appropriate place.
> > >
> > >
> > >
> > > Callstack:
> > >
> > > e850fc45() Unknown
> > >
> > > [Frames below may be incorrect and/or missing]
> > >
> > > > qpid-proton-cored.dll!pni_phase(pn_transport_t *
> > transport,
> > > int(*)(pn_transport_t *, pn_endpoint_t *) phase) Line 2514 C
> > >
> > > qpid-proton-cored.dll!pni_process(pn_transport_t *
> > > transport) Line 2532 C
> > >
> > > qpid-proton-cored.dll!pn_output_write_amqp(pn_transport_t
> > *
> > > transport, unsigned int layer, char * bytes, unsigned int available)
> Line
> > > 2687 C
> > >
> > > qpid-proton-cored.dll!transport_produce(pn_transport_t *
> > > transport) Line 2740 C
> > >
> > > qpid-proton-cored.dll!pn_transport_pending(pn_transport_t
> > *
> > > transport) Line 3032 C
> > >
> > >
> > >
> >
> qpid-proton-cored.dll!pn_connection_driver_write_buffer(pn_connection_driver_t
> > > * d) Line 115 C
> > >
> > >
> > qpid-proton-proactord.dll!pconnection_process(pconnection_t
> > > * pc, pn_experimental::iocp_result_t * result, bool topup) Line 2361
> > C++
> > >
> > >
> > > qpid-proton-proactord.dll!pconnection_batch_next(pn_event_batch_t *
> > batch)
> > > Line 2417 C++
> > >
> > >
> > > qpid-proton-proactord.dll!pn_event_batch_next(pn_event_batch_t * batch)
> > > Line 84 C
> > >
> > > send.exe!run(app_data_t * app) Line 178 C
> > >
> > > send.exe!main(int argc, char * * argv) Line 205 C
> > >
> > > [External Code]
> > >
> > >
> > >
> > > Exception (screenshot):
> > >
> > >
> > >
> > >
> > >
> > > Kind Regards,
> > >
> > > Andrew
> > >
> > >
> >
>


RE: qpid-proton - Exception in send sample, in Win32

2023-07-14 Thread Andrew North
Just to update, we have experimented with other build options in Win32,

We tried Release, RelWithDebInfo and RelMinSize - the exception does not occur 
here, and seems to work as expected, we see the messages in the broker,

I was curious also if there is documentation to explain the state transitions 
inside the proactor class, or how to use the library without relying on it; 
currently I am referencing on the C API documentation,

Additionally, I have created the same thread in the user forum, I'm not sure 
how these threads are moderated but can the discussion here be moved to there 
if its not too much hassle?

  *   Link to that thread: qpid-proton - Exception in send sample, in Win32 - 
BUG?-Apache Mail 
Archives


Andrew North
SOFTWARE ENGINEER
RESEARCH & DEVELOPMENT
From: Jiri Daněk 
Sent: Thursday, July 13, 2023 11:33 AM
To: dev@qpid.apache.org
Subject: Re: qpid-proton - Exception in send sample, in Win32

Just a quick thought. The Proton CI is running only x64 builds. I must
admit that I've almost forgotten that win32 exists, by now.

(As it happened, I was privately told something about multiarch Linux
packages yesterday, so it's not dead on Linux, either, yet.)

Maybe 32bit is still helpful for embedded or low resource applications?
Also, the address sanitizer prototype for visual studio first worked for
win32 only.

On Thu, Jul 13, 2023, 12:28 Robbie Gemmell 
mailto:robbie.gemm...@gmail.com>> wrote:

> Please use the users@ list for questions. The dev list is only used for
> dev
> traffic like JIRA updates etc, so other messages will often be overlooked.
>
> The lists strip essentially all attachments etc, so your images are not
> present.
>
> On Thu, 13 Jul 2023 at 10:59, Andrew North mailto:andrew.no...@campbellsci.co.uk%0b>> >
> wrote:
>
> > Hello,
> >
> > I am seeking help on qpid-proton library, here is the description.
> >
> >
> >
> > - I cloned this repository: apache/qpid-proton: Mirror of Apache Qpid
> > Proton (github.com) 
> > >
> > - On this commit hash: 4992b369a1b7aaa81913b4a5413616cf88d347bd
> > (latest from master)
> > - I built library including the examples in Win32
> > - I tested the "send.c" example and get an exception in Win32; when I
> > build in x64 the sample works fine
> >
> >
> >
> > Below are results of Win32 exception, let me know if there is any more
> > information I need to provide with this investigation.
> >
> > I can also try to debug myself, but I would need some pointers to see
> > where to look.
> >
> >
> >
> > Also let me know if this is the correct place to raise this issue, or if
> > there is another more appropriate place.
> >
> >
> >
> > Callstack:
> >
> > e850fc45() Unknown
> >
> > [Frames below may be incorrect and/or missing]
> >
> > > qpid-proton-cored.dll!pni_phase(pn_transport_t *
> transport,
> > int(*)(pn_transport_t *, pn_endpoint_t *) phase) Line 2514 C
> >
> > qpid-proton-cored.dll!pni_process(pn_transport_t *
> > transport) Line 2532 C
> >
> > qpid-proton-cored.dll!pn_output_write_amqp(pn_transport_t
> *
> > transport, unsigned int layer, char * bytes, unsigned int available) Line
> > 2687 C
> >
> > qpid-proton-cored.dll!transport_produce(pn_transport_t *
> > transport) Line 2740 C
> >
> > qpid-proton-cored.dll!pn_transport_pending(pn_transport_t
> *
> > transport) Line 3032 C
> >
> >
> >
> qpid-proton-cored.dll!pn_connection_driver_write_buffer(pn_connection_driver_t
> > * d) Line 115 C
> >
> >
> qpid-proton-proactord.dll!pconnection_process(pconnection_t
> > * pc, pn_experimental::iocp_result_t * result, bool topup) Line 2361
> C++
> >
> >
> > qpid-proton-proactord.dll!pconnection_batch_next(pn_event_batch_t *
> batch)
> > Line 2417 C++
> >
> >
> > qpid-proton-proactord.dll!pn_event_batch_next(pn_event_batch_t * batch)
> > Line 84 C
> >
> > send.exe!run(app_data_t * app) Line 178 C
> >
> > send.exe!main(int argc, char * * argv) Line 205 C
> >
> > [External Code]
> >
> >
> >
> > Exception (screenshot):
> >
> >
> >
> >
> >
> > Kind Regards,
> >
> > Andrew
> >
> >
>