hippich / Bitcoin-Poker-Room

Sources for Bitcoin Poker Room.
http://betco.in
Other
132 stars 90 forks source link

anyone working on this? #136

Open markmcdonald51 opened 11 years ago

markmcdonald51 commented 11 years ago

mark@mark-Aspire-5750:~/Python/Bitcoin-Poker-Room$ ./script/room_server.pl -r -f I want to set this up and play around with it. I followed the instructions but for some reason I am stuck right here.... that after using perl -MCPAN and installing numorous other missing perl modules.... this is a really cool app, but I cant get it to fire up for the life of me. Been working on it for hours but I still have yet to get past this... thanks for any help brother. --mark

Can't locate CatalystX/DynamicComponent/ModelsFromConfig.pm in @INC (@INC contains: /home/mark/Python/Bitcoin-Poker-Room/script/../lib /home/mark/perl5/lib/perl5/x86_64-linux-gnu-thread-multi /home/mark/perl5/lib/perl5 /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/perl5/Module/Runtime.pm line 317. at /usr/share/perl5/Module/Runtime.pm line 317 Compilation failed in require at /usr/share/perl5/Module/Runtime.pm line 317. at /usr/share/perl5/Catalyst/Script/Server.pm line 177

hippich commented 11 years ago

Basically it says you do not have CatalystX::DynamicComponent::ModelsFromConfig installed on your system. Probably makefile is not requiring and that's why it fails. Install it manually:

sudo cpan CatalystX::DynamicComponent::ModelsFromConfig

On 2013-02-08 17:42, hounddog wrote:

mark@mark-Aspire-5750:~/Python/Bitcoin-Poker-Room$ ./script/room_server.pl -r -f I want to set this up and play around with it. I followed the instructions but for some reason I am stuck right here.... that after using perl -MCPAN and installing numorous other missing perl modules.... this is a really cool app, but I cant get it to fire up for the life of me. Been working on it for hours but I still have yet to get past this... thanks for any help brother. --mark

Can't locate CatalystX/DynamicComponent/ModelsFromConfig.pm in @INC [1](@INC [1] contains: /home/mark/Python/Bitcoin-Poker-Room/script/../lib /home/mark/perl5/lib/perl5/x86_64-linux-gnu-thread-multi /home/mark/perl5/lib/perl5 /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/perl5/Module/Runtime.pm line 317. at /usr/share/perl5/Module/Runtime.pm line 317 Compilation failed in require at /usr/share/perl5/Module/Runtime.pm line 317. at /usr/share/perl5/Catalyst/Script/Server.pm line 177

Reply to this email directly or view it on GitHub [2]..

Links:

[1] https://github.com/INC [2] https://github.com/hippich/Bitcoin-Poker-Room/issues/136

markmcdonald51 commented 11 years ago

Thanks for the response!

After I sent that message of I did just that....for several files... and thought I got it almost to work!

but then this

./script/room_server.pl -r -f Return::Value is deprecated at /usr/local/share/perl/5.14.2/Return/Value.pm line 13 require Return/Value.pm called at /usr/local/share/perl/5.14.2/Email/Send.pm line 11 Email::Send::BEGIN() called at /usr/local/share/perl/5.14.2/Return/Value.pm line 0 eval {...} called at /usr/local/share/perl/5.14.2/Return/Value.pm line 0 require Email/Send.pm called at /usr/local/share/perl/5.14.2/Catalyst/Plugin/Email.pm line 4 Catalyst::Plugin::Email::BEGIN() called at /usr/local/share/perl/5.14.2/Return/Value.pm line 0 eval {...} called at /usr/local/share/perl/5.14.2/Return/Value.pm line 0 require Catalyst/Plugin/Email.pm called at /usr/share/perl5/Module/Runtime.pm line 317 Module::Runtime::require_module('Catalyst::Plugin::Email') called at /usr/share/perl5/Class/Load.pm line 178 Class::Load::ANON() called at /usr/share/perl5/Try/Tiny.pm line 71 eval {...} called at /usr/share/perl5/Try/Tiny.pm line 67 Try::Tiny::try('CODE(0x313e218)', 'Try::Tiny::Catch=REF(0x327d318)') called at /usr/share/perl5/Class/Load.pm line 184 Class::Load::try_load_class('Catalyst::Plugin::Email', undef) called at /usr/share/perl5/Class/Load.pm line 39 Class::Load::load_class('Catalyst::Plugin::Email', undef) called at /usr/share/perl5/Catalyst.pm line 2963 Catalyst::setup_plugins('Room', 'ARRAY(0x31709d0)') called at /usr/share/perl5/Catalyst.pm line 1095 Catalyst::setup('Room') called at /home/mark/Python/Bitcoin-Poker-Room/script/../lib/Room.pm line 134 require Room.pm called at /usr/share/perl5/Module/Runtime.pm line 317 Module::Runtime::require_module('Room') called at /usr/share/perl5/Class/Load.pm line 178 Class::Load::ANON() called at /usr/share/perl5/Try/Tiny.pm line 71 eval {...} called at /usr/share/perl5/Try/Tiny.pm line 67 Try::Tiny::try('CODE(0x2d05e88)', 'Try::Tiny::Catch=REF(0x3094ad8)') called at /usr/share/perl5/Class/Load.pm line 184 Class::Load::try_load_class('Room', undef) called at /usr/share/perl5/Class/Load.pm line 39 Class::Load::load_class('Room') called at /usr/share/perl5/Catalyst/ScriptRole.pm line 83 Catalyst::ScriptRole::_run_application('Catalyst::Script::Server=HASH(0x1fc7770)') called at /usr/share/perl5/Catalyst/Script/Server.pm line 177 Catalyst::Script::Server::ANON() called at /usr/share/perl5/Catalyst/Restarter/Forking.pm line 20 Catalyst::Restarter::Forking::_fork_and_start('Catalyst::Restarter::Forking=HASH(0x2f257a0)') called at /usr/share/perl5/Catalyst/Restarter.pm line 89 Catalyst::Restarter::run_and_watch('Catalyst::Restarter::Forking=HASH(0x2f257a0)') called at /usr/share/perl5/Catalyst/Script/Server.pm line 226 Catalyst::Script::Server::run('Catalyst::Script::Server=HASH(0x1fc7770)') called at /usr/share/perl5/Catalyst/ScriptRunner.pm line 50 Catalyst::ScriptRunner::run('Catalyst::ScriptRunner', 'Room', 'Server') called at ./script/room_server.pl line 8 Couldn't instantiate component "Room::Model::PokerNetwork", "argument is not a module name"Compilation failed in require at /usr/share/perl5/Module/Runtime.pm line 317. at /usr/share/perl5/Catalyst/Script/Server.pm line 177

Started looking at the class... but I still am trying to figure out what is going on technically. I think I get it, but I have no idea what that error in catalist is... I am going to get this working even if I have to rewrite the whole thing in rails...

Thanks again for the response

hippich commented 11 years ago

Per this http://lmgtfy.com/?q=%22Return%3A%3AValue+is+deprecated%22+%22Email%3A%3ASend%22 it looks like Email::Send is depreciated. I was developing this project under Ubuntu 11.04 and if you use newer one, likely you need to update some code to use new libraries. I am not running it right now so I do not have a code base where I can test it. Read google link above to see may be it is matter of renaming libraries and may be minor syntax change. If you solve it - I will really appreciate patches.

On 2013-02-08 20:22, hounddog wrote:

Thanks for the response!

After I sent that message of I did just that....for several files... and thought I got it almost to work!

but then this

./script/room_server.pl -r -f Return::Value is deprecated at /usr/local/share/perl/5.14.2/Return/Value.pm line 13 require Return/Value.pm called at /usr/local/share/perl/5.14.2/Email/Send.pm line 11 Email::Send::BEGIN() called at /usr/local/share/perl/5.14.2/Return/Value.pm line 0 eval {...} called at /usr/local/share/perl/5.14.2/Return/Value.pm line 0 require Email/Send.pm called at /usr/local/share/perl/5.14.2/Catalyst/Plugin/Email.pm line 4

Catalyst::Plugin::Email::BEGIN() called at /usr/local/share/perl/5.14.2/Return/Value.pm line 0 eval {...} called at /usr/local/share/perl/5.14.2/Return/Value.pm line 0 require Catalyst/Plugin/Email.pm called at /usr/share/perl5/Module/Runtime.pm line 317 Module::Runtime::require_module('Catalyst::Plugin::Email') called at /usr/share/perl5/Class/Load.pm line 178

Class::Load::ANON() called at /usr/share/perl5/Try/Tiny.pm line 71

eval {...} called at /usr/share/perl5/Try/Tiny.pm line 67

Try::Tiny::try('CODE(0x313e218)', 'Try::Tiny::Catch=REF(0x327d318)') called at /usr/share/perl5/Class/Load.pm line 184

Class::Load::try_load_class('Catalyst::Plugin::Email', undef) called at /usr/share/perl5/Class/Load.pm line 39

Class::Load::load_class('Catalyst::Plugin::Email', undef) called at /usr/share/perl5/Catalyst.pm line 2963 Catalyst::setup_plugins('Room', 'ARRAY(0x31709d0)') called at /usr/share/perl5/Catalyst.pm line 1095

Catalyst::setup('Room') called at /home/mark/Python/Bitcoin-Poker-Room/script/../lib/Room.pm line 134

require Room.pm called at /usr/share/perl5/Module/Runtime.pm line 317

Module::Runtime::require_module('Room') called at /usr/share/perl5/Class/Load.pm line 178 Class::Load::ANON() called at /usr/share/perl5/Try/Tiny.pm line 71 eval {...} called at /usr/share/perl5/Try/Tiny.pm line 67 Try::Tiny::try('CODE(0x2d05e88)', 'Try::Tiny::Catch=REF(0x3094ad8)') called at /usr/share/perl5/Class/Load.pm line 184

Class::Load::try_load_class('Room', undef) called at /usr/share/perl5/Class/Load.pm line 39 Class::Load::load_class('Room') called at /usr/share/perl5/Catalyst/ScriptRole.pm line 83

Catalyst::ScriptRole::_run_application('Catalyst::Script::Server=HASH(0x1fc7770)') called at /usr/share/perl5/Catalyst/Script/Server.pm line 177

Catalyst::Script::Server::ANON() called at /usr/share/perl5/Catalyst/Restarter/Forking.pm line 20

Catalyst::Restarter::Forking::_fork_and_start('Catalyst::Restarter::Forking=HASH(0x2f257a0)') called at /usr/share/perl5/Catalyst/Restarter.pm line 89

Catalyst::Restarter::run_and_watch('Catalyst::Restarter::Forking=HASH(0x2f257a0)') called at /usr/share/perl5/Catalyst/Script/Server.pm line 226

Catalyst::Script::Server::run('Catalyst::Script::Server=HASH(0x1fc7770)') called at /usr/share/perl5/Catalyst/ScriptRunner.pm line 50

Catalyst::ScriptRunner::run('Catalyst::ScriptRunner', 'Room', 'Server') called at ./script/room_server.pl line 8 Couldn't instantiate component "Room::Model::PokerNetwork", "argument is not a module name"Compilation failed in require at /usr/share/perl5/Module/Runtime.pm line 317. at /usr/share/perl5/Catalyst/Script/Server.pm line 177

Started looking at the class... but I still am trying to figure out what is going on technically. I think I get it, but I have no idea what that error in catalist is... I am going to get this working even if I have to rewrite the whole thing in rails...

Thanks again for the response

Reply to this email directly or view it on GitHub [1]..

Links:

[1] https://github.com/hippich/Bitcoin-Poker-Room/issues/136#issuecomment-13324552

markmcdonald51 commented 11 years ago

Thanks for the tip Pavel, but I am not sure where to find this module or call to it in this project. I assume that this would be in catalist?

Bitcoin-Poker-Room$ grep -r 'Email::Send' *

above--> returned nothing!

This is an awesome project and i remember when you had it going. Anyway, such a large amount of work and it is a shame for it to go stagnant. I am sure you have your reasons. In anycase, thanks for the tips and have a great weekend.

Mark-Leck commented 11 years ago

@ mark, I have been lurking here myself lately, although I have not got around to playing with this yet, I think your problem lies with using the latest (a later) version of perl than pavel used, you could try installing the necessary 'deprecated' module here: https://apps.ubuntu.com/cat/applications/libemail-send-perl/ or you could (probably should) use a non deprecated method and patch the source to use Email::Sender

datpham23 commented 10 years ago

I was able to get rid of most of the dependencies issues but I'm stuck on this error with out much of an error message even w/ "-d" enabled. Any suggestion? I'm on Ubuntu 12.04.

./script/room_server.pl -r -f -d Couldn't instantiate component "Room::Model::PokerNetwork", "argument is not a module name"Compilation failed in require at /usr/local/share/perl/5.14.2/Module/Runtime.pm line 317.

sunggeorge commented 10 years ago

I get the same problem in 1st post.

However after I run "sudo cpan CatalystX::DynamicComponent::ModelsFromConfig"

It said "Warning: Cannot install CatalystX::DynamicComponent::ModelsFromConfig, don't know what it is."