LINUX.ORG.RU

Сообщения kindix

 

Как установить Python на FTP server

Форум — General

Возможно ли это и каким образом!? так как надо переехать а там питона нету!

Или даже можно ли проверить возможно ли установить его на мой фтп!

Зарание спасибо!

 ,

kindix
()

Как выгрузить код python и все составляющие апп c облака heroku???

Форум — General

Помогите пожалуйста немогу выгрузить инфу с облака хероку себе на комп

 

kindix
()

Не могу загрузить данные в csv-файл

Форум — Development
import requests
from bs4 import BeautifulSoup
import csv

url = "http://www.ilife.if.ua/show_cat.php?catid=21675&grid=1154"
r = requests.get(url)

soup = BeautifulSoup(r.content, 'html.parser')

phone_name = soup.find_all("a", attrs={"class": "tov"})

list_of = []
for item in phone_name:
    name = item.text
    print name
    list_of.append(name)
    
with open('index.csv', 'w') as csv_file:
    writer = csv.writer(csv_file)
    writer.writerow(name)  
   
print list_of

Перемещено leave из web-development

 ,

kindix
()

ruby gem pony (не отправляется сообщение)

Форум — Development

Запускаю файл с кодом получаю ошибку

home/kindix/.rvm/rubies/ruby/2.3.0/lib/ruby/2.3.0/net/smtp.rb:977:in 'check_auth_response' : 534-5.7.14 <https://accounts.google.com/ContinueSignIn?>
sarp=1&scc=1&plt=AKgnsbuFX (Net::SMTPAuthenticationError)

def place
      Pony.mail(:to => StoreApplication::Admin.email, 
         :from => "My Store <kindix.ak@gmail.com>",
         :via => :smtp,
         :via_options => {
            :address              => 'smtp.gmail.com',
            :port                 => '587',
            :user_name            => 'kindix.ak@gmail.com',
            :password             => '########',
            :authentication       => :plain, 
            :domain               => "mail.google.com"},
         subject: "New order has been placed",
         body: "Please check back you admin page" )
   end

 

kindix
()

Не запускается Rails server, как исправить?

Форум — Web-development

все шло как по маслу а когда захотел запустить сервер дало ошибку!

Bundle complete! 12 Gemfile dependencies, 54 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
run bundle exec spring binstub --all
* bin/rake: spring inserted
* bin/rails: spring inserted

kindix@kindix-VirtualBox:~$ cd my_store
kindix@kindix-VirtualBox:~/my_store$ rails s
/home/kindix/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireError)
from /home/kindix/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /home/kindix/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
from /home/kindix/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
from /home/kindix/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
from /home/kindix/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
from /home/kindix/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
from /home/kindix/my_store/config/application.rb:7:in `<top (required)>'
from /home/kindix/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5.2/lib/rails/commands/commands_tasks.rb:78:in `require'
from /home/kindix/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5.2/lib/rails/commands/commands_tasks.rb:78:in `block in server'
from /home/kindix/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5.2/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /home/kindix/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5.2/lib/rails/commands/commands_tasks.rb:75:in `server'
from /home/kindix/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5.2/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /home/kindix/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5.2/lib/rails/commands.rb:17:in `<top (required)>'
from /home/kindix/my_store/bin/rails:9:in `require'
from /home/kindix/my_store/bin/rails:9:in `<top (required)>'
from /home/kindix/.rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/client/rails.rb:28:in `load'
from /home/kindix/.rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/client/rails.rb:28:in `call'
from /home/kindix/.rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/client/command.rb:7:in `call'
from /home/kindix/.rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/client.rb:28:in `run'
from /home/kindix/.rvm/gems/ruby-2.3.0/gems/spring-1.6.4/bin/spring:49:in `<top (required)>'
from /home/kindix/.rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/binstub.rb:11:in `load'
from /home/kindix/.rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/binstub.rb:11:in `<top (required)>'
from /home/kindix/my_store/bin/spring:13:in `require'
from /home/kindix/my_store/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'

 , ,

kindix
()

RSS подписка на новые темы