Can't locate object method "get_action" via package "Workflow::State"
lucas1 opened this issue · comments
Issue Template
Description
If you raise an issue on bug/issue please provide the requested information, if not, please just provide a description of you issue.
I am trying to execute the code:
use Moose;
use Workflow::Factory qw( FACTORY );
sub create {
my $workflow = FACTORY->create_workflow('host', $wf_context);
$workflow->execute_action('init in host');
}
but this returns the error:
Can't locate object method "get_action" via package "Workflow::State" at /home/app/perl5/perlbrew/perls/perl-5.36.1/lib/site_perl/5.36.1/Workflow.pm line 92, <\$fh> line 1.
Thanks.
Specify what version was used
Please provide some information on what version of the component used.
1.62
Supply some information on the environment
Please provide some information on your Perl interpreter.
Summary of my perl5 (revision 5 version 36 subversion 1) configuration:
Platform:
osname=linux
osvers=2.6.32-431.el6.x86_64
archname=x86_64-linux
uname='linux cedxpodc005.foo.com 2.6.32-431.el6.x86_64 #1 smp fri nov 22 03:15:09 utc 2013 x86_64 x86_64 x86_64 gnulinux '
config_args='-de -Dprefix=/home/app/perl5/perlbrew/perls/perl-5.36.1 -Aeval:scriptdir=/home/app/perl5/perlbrew/perls/perl-5.36.1/bin'
hint=recommended
useposix=true
d_sigaction=define
useithreads=undef
usemultiplicity=undef
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
Compiler:
cc='cc'
ccflags ='-std=gnu99 -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2'
optimize='-O2'
cppflags='-std=gnu99 -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion=''
gccversion='4.4.7 20120313 (Red Hat 4.4.7-4)'
gccosandvers=''
intsize=4
longsize=8
ptrsize=8
doublesize=8
byteorder=12345678
doublekind=3
d_longlong=define
longlongsize=8
d_longdbl=define
longdblsize=16
longdblkind=3
ivtype='long'
ivsize=8
nvtype='double'
nvsize=8
Off_t='off_t'
lseeksize=8
alignbytes=8
prototype=define
Linker and Libraries:
ld='cc'
ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib /lib/../lib64 /usr/lib/../lib64 /lib /lib64 /usr/lib64 /usr/local/lib64
libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
libc=libc-2.12.so
so=so
useshrplib=false
libperl=libperl.a
gnulibc_version='2.12'
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=so
d_dlsymun=undef
ccdlflags='-Wl,-E'
cccdlflags='-fPIC'
lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options:
HAS_TIMES
PERLIO_LAYERS
PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_MALLOC_WRAP
PERL_OP_PARENT
PERL_PRESERVE_IVUV
USE_64_BIT_ALL
USE_64_BIT_INT
USE_LARGE_FILES
USE_LOCALE
USE_LOCALE_COLLATE
USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC
USE_LOCALE_TIME
USE_PERLIO
USE_PERL_ATOF
Built under linux
Compiled at May 9 2023 18:23:32
%ENV:
PERLBREW_HOME="/home/app/.perlbrew"
PERLBREW_MANPATH="/home/app/perl5/perlbrew/perls/perl-5.36.1/man"
PERLBREW_PATH="/home/app/perl5/perlbrew/bin:/home/app/perl5/perlbrew/perls/perl-5.36.1/bin"
PERLBREW_PERL="perl-5.36.1"
PERLBREW_ROOT="/home/app/perl5/perlbrew"
PERLBREW_SHELLRC_VERSION="0.96"
PERLBREW_VERSION="0.96"
@INC:
/home/app/perl5/perlbrew/perls/perl-5.36.1/lib/site_perl/5.36.1/x86_64-linux
/home/app/perl5/perlbrew/perls/perl-5.36.1/lib/site_perl/5.36.1
/home/app/perl5/perlbrew/perls/perl-5.36.1/lib/5.36.1/x86_64-linux
/home/app/perl5/perlbrew/perls/perl-5.36.1/lib/5.36.1
I found the error! It is exists another version of module Workflow installed in Perl from OS, version 1.16.
The file /home/app/perl5/perlbrew/perls/perl-5.36.1/lib/site_perl/5.36.1/Workflow/Factory.pm is getting Workflow::State from version of OS.
I will close, because the problem is with my OS.
Glad you found the issue @lucas1 I just got back from summer vacation and is slowly getting back in gear.