Jump to content

Recommended Posts

Posted

Please post the following information:

  • Your cPanel username
  • Your main domain
  • The server that you are on
  • Version of Python
  • Like 1
Posted (edited)

Sorry for being stupid :D ok my information is:
gigakh
Upvoter.heliohost.org
Tommy
Python 3.6

I need steem piston-cli js2py sqlite flask-mysqldb.

Is there any way that i install those mannually. Maybe i will need some other little modules should i bother you everytime? can i use cron job for this? if yes i am not unix expert so if you would give me whole command to install module. Does socket connections work on tommy?

Edited by gigak
Posted

He'll need to install those most likely.

 

As for sockets, they do, but be aware outbound connections can only be made on standard ports (21,25,80,443,etc.). We block all the others unless you specifically request them and can justify their need (we generally recommend you reconfigure your target server to use a common port instead). Inbound connections on custom ports are not permitted at all.

 

Escalating.

  • Like 1
Posted

He'll need to install those most likely.

 

As for sockets, they do, but be aware outbound connections can only be made on standard ports (21,25,80,443,etc.). We block all the others unless you specifically request them and can justify their need (we generally recommend you reconfigure your target server to use a common port instead). Inbound connections on custom ports are not permitted at all.

 

Escalating.

i am trying to create upvoter site for steemit.com. and use steem-api via python. so there is nothing illegal or bad. i think this api uses sockets and it makes sense. i hope heliohost won't permit my connection. and of course i can't configure their api. i hope everything will work out. and am i able to run pip install process with cronjob?

  • Like 1
Posted

the firewall only allows connections on the outward facing ports @wolstech discribed, (for a website only port 80 and 443 matter), the software API you require already has a PHP port: https://github.com/davidkevork/steemphp

 

I'm not sure what you mean by "can't configure their API", you going to need to elaborate.

Posted

the firewall only allows connections on the outward facing ports @wolstech discribed, (for a website only port 80 and 443 matter), the software API you require already has a PHP port: https://github.com/davidkevork/steemphp

 

I'm not sure what you mean by "can't configure their API", you going to need to elaborate.

i am using python.

 

 

the firewall only allows connections on the outward facing ports @wolstech discribed, (for a website only port 80 and 443 matter), the software API you require already has a PHP port: https://github.com/davidkevork/steemphp

 

I'm not sure what you mean by "can't configure their API", you going to need to elaborate.

i am using python. need module called steem which is steemit api for python. i have to just use this api. if works good if don't move on.

 

Posted

i am using python.

 

I know that, won't the PHP port be easier to implement and maintain?

Posted (edited)

 

i am using python.

I know that, won't the PHP port be easier to implement and maintain?

 

thing is i don't have experience with PHP. and i am quite medium already with python. and love python. thanks for your advice. and i guess if php work python will work too since those apis are the same only language differs. they connect same thing blockchain.

Edited by gigak
Posted

I need steem js2py sqlite flask-mysqldb.

Installed. https://krydos.heliohost.org/cgi-bin/modules36.py

 

I need piston-cli.

I'm going to need an explanation on why you think you need something that appears to only be a command line interface.

 

Is there any way that i install those mannually.

Yes, if you know the root password for Tommy.

 

Maybe i will need some other little modules should i bother you everytime?

It's not a bother.

 

can i use cron job for this? if yes i am not unix expert so if you would give me whole command to install module.

If you know the root password you can do this via cron.

 

Does socket connections work on tommy?

Short answer: yes. Long answer: Read above ^
Posted (edited)

i need a help. it gives me errors while on my machine works well and i can't understand what is the problems because it does not output valuable information to understand what i have to look in to :( can i get this information? is there any server error.logs? or python code to give me console information or is there any way to use flask debugger? anyway i need to know exactly what causes problem :( . on same url for example "www.upvoter.heliohost.org/hey" it gives me url not found after reload says internal server error.

and about piston-cli its ok i can do it only with steem library. it's just easier version of steem think so.

Edited by gigak
Posted

[Sat Aug 12 13:56:16.618626 2017] [wsgi:error] [pid 24510:tid 140181810108160] [client x.x.x.x:52414] mod_wsgi (pid=24510): Target WSGI script '/home/gigakh/public_html/flask/flask.wsgi' cannot be loaded as Python module., referer: http://upvoter.heliohost.org/flask/
I recommend you follow the guide at https://www.helionet.org/index/topic/27822-how-do-i-use-flask-on-johnny/?p=128919 to get a simple working script first.

 

There you go http://upvoter.heliohost.org/flask/

Posted

Yes i have followed this guide and was successful when i wanted to test if flask was working. Then i created little application on my machine that works well on mymachine but when uploaded gives me error and cant understand whats wrong. Is there any code or method that i can get that errors? I need it so much.and this error must be for time when i have tried php and it worked. But i want error that says something about steem. When i import steem from Steem it crashes.

Posted

i found out i can't import steem.

try:

from steem import Steem

except:

return can't import steem

 

and always throws exception. why can't i import it? if in python36 modules there is included in list?

Posted

Here's the error you're getting:

[Sun Aug 13 19:41:54.205048 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141] mod_wsgi (pid=28832): Target WSGI script '/home/gigakh/public_html/flask/flask.wsgi' cannot be loaded as Python module.
[Sun Aug 13 19:41:54.205178 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141] mod_wsgi (pid=28832): Exception occurred processing WSGI script '/home/gigakh/public_html/flask/flask.wsgi'.
[Sun Aug 13 19:41:54.270612 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141] Traceback (most recent call last):
[Sun Aug 13 19:41:54.270760 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]   File "/home/gigakh/public_html/flask/flask.wsgi", line 8, in <module>
[Sun Aug 13 19:41:54.270779 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]     from myapp import app as application
[Sun Aug 13 19:41:54.270796 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]   File "/home/gigakh/public_html/flask/myapp.py", line 3, in <module>
[Sun Aug 13 19:41:54.270820 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]     import steem
[Sun Aug 13 19:41:54.270835 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]   File "/usr/local/python3.6/lib/python3.6/site-packages/steem/__init__.py", line 2, in <module>
[Sun Aug 13 19:41:54.270841 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]     from .steem import Steem
[Sun Aug 13 19:41:54.270852 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]   File "/usr/local/python3.6/lib/python3.6/site-packages/steem/steem.py", line 1, in <module>
[Sun Aug 13 19:41:54.270857 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]     from .commit import Commit
[Sun Aug 13 19:41:54.270868 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]   File "/usr/local/python3.6/lib/python3.6/site-packages/steem/commit.py", line 18, in <module>
[Sun Aug 13 19:41:54.270875 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]     from steembase.storage import configStorage
[Sun Aug 13 19:41:54.270887 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]   File "/usr/local/python3.6/lib/python3.6/site-packages/steembase/storage.py", line 459, in <module>
[Sun Aug 13 19:41:54.270892 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]     keyStorage = Key()
[Sun Aug 13 19:41:54.270903 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]   File "/usr/local/python3.6/lib/python3.6/site-packages/steembase/storage.py", line 114, in __init__
[Sun Aug 13 19:41:54.270908 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]     super(Key, self).__init__()
[Sun Aug 13 19:41:54.270918 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]   File "/usr/local/python3.6/lib/python3.6/site-packages/steembase/storage.py", line 51, in __init__
[Sun Aug 13 19:41:54.270923 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]     self.mkdir_p()
[Sun Aug 13 19:41:54.270934 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]   File "/usr/local/python3.6/lib/python3.6/site-packages/steembase/storage.py", line 61, in mkdir_p
[Sun Aug 13 19:41:54.270939 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]     os.makedirs(self.data_dir)
[Sun Aug 13 19:41:54.270950 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]   File "/usr/local/python3.6/lib/python3.6/os.py", line 210, in makedirs
[Sun Aug 13 19:41:54.270955 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]     makedirs(head, mode, exist_ok)
[Sun Aug 13 19:41:54.270966 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]   File "/usr/local/python3.6/lib/python3.6/os.py", line 210, in makedirs
[Sun Aug 13 19:41:54.270971 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]     makedirs(head, mode, exist_ok)
[Sun Aug 13 19:41:54.270982 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]   File "/usr/local/python3.6/lib/python3.6/os.py", line 220, in makedirs
[Sun Aug 13 19:41:54.270987 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141]     mkdir(name, mode)
[Sun Aug 13 19:41:54.271019 2017] [wsgi:error] [pid 28832:tid 140516815218432] [client x.x.x.x:53141] PermissionError: [Errno 13] Permission denied: '/root/.local'
It looks like your steem module is trying to create directories/files in /root/ which it is never going to have permission to on a shared server.
Guest
This topic is now closed to further replies.
×
×
  • Create New...