DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1 Week Ago
niks007 niks007 is offline
Port Guard
 
Join Date: Oct 2020
Location: Germany and India
Posts: 17
Default s3 command gives error on openbsd 6.7

Hi experts,

I have installed s3 command using pip on openbsd 6.7

but when I use s3 command it gives following errors.


openbsd# s3
File "/usr/local/bin/s3", line 131
print 'created S3 bucket %s' % (bucket)
^
SyntaxError: invalid syntax

python --version
Python 3.7.7


PS : I am not using AWS environment , I want to use S3 for our private cloud for uploading image to bucket.
Reply With Quote
  #2   (View Single Post)  
Old 1 Week Ago
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 256
Default

That was last updated in 2015. The homepage is gone. I have to assume it was written for python 2 and not updated.

You could 'pip2.x install' it and run it with python2 but that has reached EOL and won't get security updates. You're probably better off finding a newer, maintained, s3 library/tool.
Reply With Quote
  #3   (View Single Post)  
Old 2 Days Ago
niks007 niks007 is offline
Port Guard
 
Join Date: Oct 2020
Location: Germany and India
Posts: 17
Default

Quote:
Originally Posted by TronDD View Post
That was last updated in 2015. The homepage is gone. I have to assume it was written for python 2 and not updated.

You could 'pip2.x install' it and run it with python2 but that has reached EOL and won't get security updates. You're probably better off finding a newer, maintained, s3 library/tool.
Thanks for your response.

I tried to install s3 pkg with pip (pip3) , installation was successful but s3 command it self it throws an error.

openbsd-nik# pip --version
pip 19.1.1 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
openbsd-nik# s3 --version
File "/usr/local/bin/s3", line 131
print 'created S3 bucket %s' % (bucket)
^
SyntaxError: invalid syntax
openbsd-nik#
Reply With Quote
  #4   (View Single Post)  
Old 2 Days Ago
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 256
Default

Yes, that's the same thing you said in your original post. My response is the same. It will NOT work with python3.
Reply With Quote
  #5   (View Single Post)  
Old 2 Days Ago
bradley bradley is offline
Port Guard
 
Join Date: Jul 2020
Posts: 39
Default

Just for the record, in case someone is interested in getting python modul versions (with grep you can get whatever modul you want):

Code:
pip list
Reply With Quote
Reply

Tags
cloud, openbd 6.7, package, s3

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping track of the pandemic from your OpenBSD command line fvgit OpenBSD General 3 21st September 2020 05:04 PM
DD command on OpenBsd PapaParrot OpenBSD General 20 9th November 2018 02:56 PM
OpenBSD find command -- exclude dot directory gustaf OpenBSD General 2 26th June 2017 05:12 AM
Error: Building midgetpack on OpenBSD? ucharfli OpenBSD Packages and Ports 4 25th May 2017 10:13 AM
Gnome 3.8 + OpenBSD 5.4 - error on login (GDM) harishankar OpenBSD Packages and Ports 10 7th December 2013 05:42 PM


All times are GMT. The time now is 06:29 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick