[Beremiz-devel] cannot import name _connect_socket

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Beremiz-devel] cannot import name _connect_socket

Marcello Ferri
Hi all,
I have been trying to run Beremiz for a couple of days without success :-(
I use this Osboxes Debian 8 virtual machine:
Linux osboxes 3.16.0.-10-amd64 #1 SMP Debian 3.16.81-1 (2020-01-17) x86_64 GNU/Linux
and I follow all the instruction, step by step, from here:

I I try to build and then download the first_step sample code, I see this log:

Start build in /home/osboxes/Beremiz/beremiz/tests/first_steps/build
Generating SoftPLC IEC-61131 ST/IL/SFC code...
Compiling IEC Program into C code...
Extracting Located Variables...
C code generated successfully.
PLC :
   [CC]  plc_main.c -> plc_main.o
   [CC]  plc_debugger.c -> plc_debugger.o
PLC :
   [CC]  config.c -> config.o
   [CC]  resource1.c -> resource1.o
Linking :
   [CC]  plc_main.o plc_debugger.o config.o resource1.o -> first_steps.so
Successfully built.
Traceback (most recent call last):
  File "/home/osboxes/Beremiz/beremiz/Beremiz_service.py", line 489, in <module>
    import runtime.WampClient as WC  # pylint: disable=ungrouped-imports
  File "/home/osboxes/Beremiz/beremiz/runtime/WampClient.py", line 32, in <module>
    from autobahn.twisted import wamp
ImportError: No module named twisted
Beremiz_service:  1.2-1b4b335e19ea+
WAMP import failed :
HTTP interface port : 8009
Pyro port : 62109
Current working directory :/tmp/tmpY4uJSN
Exception while connecting to 'LOCAL://': cannot import name _connect_socket
Connection failed to LOCAL://!

I try with 2020-04-21-Beremiz-1b4b335e19ea.exe on Windows7 and Windows10 also but no luck!

 Please, could someone help me?

Marcello


_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] cannot import name _connect_socket

Marcello Ferri
Sorry,
I forgot to say that I am interested in Beremiz-Ethercat integration and I would like to know the development status of this interesting feature.
Regards,
Marcello
Italy

On Sun, May 3, 2020 at 7:51 PM Marcello Ferri <[hidden email]> wrote:
Hi all,
I have been trying to run Beremiz for a couple of days without success :-(
I use this Osboxes Debian 8 virtual machine:
Linux osboxes 3.16.0.-10-amd64 #1 SMP Debian 3.16.81-1 (2020-01-17) x86_64 GNU/Linux
and I follow all the instruction, step by step, from here:

I I try to build and then download the first_step sample code, I see this log:

Start build in /home/osboxes/Beremiz/beremiz/tests/first_steps/build
Generating SoftPLC IEC-61131 ST/IL/SFC code...
Compiling IEC Program into C code...
Extracting Located Variables...
C code generated successfully.
PLC :
   [CC]  plc_main.c -> plc_main.o
   [CC]  plc_debugger.c -> plc_debugger.o
PLC :
   [CC]  config.c -> config.o
   [CC]  resource1.c -> resource1.o
Linking :
   [CC]  plc_main.o plc_debugger.o config.o resource1.o -> first_steps.so
Successfully built.
Traceback (most recent call last):
  File "/home/osboxes/Beremiz/beremiz/Beremiz_service.py", line 489, in <module>
    import runtime.WampClient as WC  # pylint: disable=ungrouped-imports
  File "/home/osboxes/Beremiz/beremiz/runtime/WampClient.py", line 32, in <module>
    from autobahn.twisted import wamp
ImportError: No module named twisted
Beremiz_service:  1.2-1b4b335e19ea+
WAMP import failed :
HTTP interface port : 8009
Pyro port : 62109
Current working directory :/tmp/tmpY4uJSN
Exception while connecting to 'LOCAL://': cannot import name _connect_socket
Connection failed to LOCAL://!

I try with 2020-04-21-Beremiz-1b4b335e19ea.exe on Windows7 and Windows10 also but no luck!

 Please, could someone help me?

Marcello



_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
skv
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] cannot import name _connect_socket

skv
Administrator
Hi, Marcello,

try to install python-twisted module.

On 20-05-03 20:39, Marcello Ferri wrote:

> Sorry,
> I forgot to say that I am interested in Beremiz-Ethercat integration and I
> would like to know the development status of this interesting feature.
> Regards,
> Marcello
> Italy
>
> On Sun, May 3, 2020 at 7:51 PM Marcello Ferri <[hidden email]>
> wrote:
>
> > Hi all,
> > I have been trying to run Beremiz for a couple of days without success :-(
> > I use this Osboxes Debian 8 virtual machine:
> > Linux osboxes 3.16.0.-10-amd64 #1 SMP Debian 3.16.81-1 (2020-01-17) x86_64
> > GNU/Linux
> > and I follow all the instruction, step by step, from here:
> > https://bitbucket.org/automforge/beremiz/src/default/
> >
> > I I try to build and then download the first_step sample code, I see this
> > log:
> >
> > Start build in /home/osboxes/Beremiz/beremiz/tests/first_steps/build
> >> Generating SoftPLC IEC-61131 ST/IL/SFC code...
> >> Compiling IEC Program into C code...
> >> Extracting Located Variables...
> >> C code generated successfully.
> >> PLC :
> >>    [CC]  plc_main.c -> plc_main.o
> >>    [CC]  plc_debugger.c -> plc_debugger.o
> >> PLC :
> >>    [CC]  config.c -> config.o
> >>    [CC]  resource1.c -> resource1.o
> >> Linking :
> >>    [CC]  plc_main.o plc_debugger.o config.o resource1.o -> first_steps.so
> >> Successfully built.
> >> Traceback (most recent call last):
> >>   File "/home/osboxes/Beremiz/beremiz/Beremiz_service.py", line 489, in
> >> <module>
> >>     import runtime.WampClient as WC  # pylint: disable=ungrouped-imports
> >>   File "/home/osboxes/Beremiz/beremiz/runtime/WampClient.py", line 32, in
> >> <module>
> >>     from autobahn.twisted import wamp
> >> ImportError: No module named twisted
> >> Beremiz_service:  1.2-1b4b335e19ea+
> >> WAMP import failed :
> >> HTTP interface port : 8009
> >> Pyro port : 62109
> >> Current working directory :/tmp/tmpY4uJSN
> >> Exception while connecting to 'LOCAL://': cannot import name
> >> _connect_socket
> >> Connection failed to LOCAL://!
> >>
> >
> > I try with 2020-04-21-Beremiz-1b4b335e19ea.exe on Windows7 and Windows10
> > also but no luck!
> >
> >  Please, could someone help me?
> >
> > Marcello
> >


> _______________________________________________
> Beremiz-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/beremiz-devel


--
Best regards,
Andrey Skvortsov


_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] cannot import name _connect_socket

Marcello Ferri
hello Andrey,
thank you for your time.

python-twisted was already installed but I tried to remove it and
install it again, same error.

> Traceback (most recent call last):
>   File "/home/osboxes/Beremiz/beremiz/Beremiz_service.py", line 489, in <module>
>     import runtime.WampClient as WC  # pylint: disable=ungrouped-imports
>   File "/home/osboxes/Beremiz/beremiz/runtime/WampClient.py", line 32, in <module>
>     from autobahn.twisted import wamp
> ImportError: No module named twisted
> Beremiz_service:  1.2-1b4b335e19ea+
> WAMP import failed :
> HTTP interface port : 8009
> Pyro port : 62117
> Current working directory :/tmp/tmp96vifE
> Exception while connecting to 'LOCAL://': cannot import name _connect_socket
> Connection failed to LOCAL://!


Python --version is 2.7.9

I try this command also (taken from an old message): python -c "from
twisted.internet import reactor" and exit without error

I just don't know what to do.


_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] cannot import name _connect_socket

Marcello Ferri
In reply to this post by skv
Hello,
In the meantime I put Altlinux in a virtual machine and installing
Beremiz from the .rpm seem to work fine.
I hope to find the solution to make Debian8 working too.
Regards,
Marcello


_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel