Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
12 crawler(s) on-line.
 113 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!
 kolla:  5 mins ago
 AMIGASYSTEM:  12 mins ago
 Karlos:  14 mins ago
 dreamlandfantasy:  18 mins ago
 matthey:  38 mins ago
 Maijestro:  1 hr 16 mins ago
 OlafS25:  1 hr 19 mins ago
 pixie:  1 hr 41 mins ago
 Rob:  2 hrs 9 mins ago
 amigakit:  2 hrs 32 mins ago

/  Forum Index
   /  Amiga Development
      /  Dropbox uploader possibilities for OS4.1
Register To Post

Goto page ( 1 | 2 | 3 | 4 Next Page )
PosterThread
gtmooya 
Dropbox uploader possibilities for OS4.1
Posted on 27-May-2011 22:31:54
#1 ]
Regular Member
Joined: 8-May-2011
Posts: 285
From: Unknown

Hello all,

I have been looking into possibilities for creating a Dropbox uploader for Workbench. The idea is to use a script to upload files to Dropbox and that files could be uploaded via a right click context menu or button in Filer and hopefully (once I've learnt how) by drag and drop onto a docky.

Firstly, please excuse by ignorance as I am somewhat of a novice. The idea behind the project is to learn some new skills and hopefully make something useful to people at the same time.

After some hours of research and exoperimenting, there seems to be three options that stand out for an AmigaOS Dropbox uploader:

1. cURL
2. Phyton
3. PHP

1. cURL
This is the front runner for me right now, here is a script that uses cURL seems like it could be a nice solution as curl is available for AmigaOS and easy to install (just copy to C:). However, the script uses some Unix commands: grep, sed, tr. Are there Amiga equivalents to these commands or possible substitutes? I have so far used curl to login and save the Dropbox cookie file.

2. Python
I have come across various Phython scripts and tried a few on OS4.1 but got anything working yet. Here's an example.

3. PHP
I have installed PHP and tried to run this PHP uploader however got some errors back. I don't know if someone with more experience fancies having a go and seeing if the PHP class can be tweeked to work? Having installed PHP I have pretty much written off this option as the hassle of setting up PHP would be off-putting I think.

Any ideas, advice, help would be much appreciated. Thanks

Dropbox Wiki

Last edited by gtmooya on 27-May-2011 at 10:41 PM.

_________________
gtmooya's blog

 Status: Offline
Profile     Report this post  
Thematic 
Re: Dropbox uploader possibilities for OS4.1
Posted on 27-May-2011 22:40:56
#2 ]
Super Member
Joined: 28-Oct-2003
Posts: 1616
From: I'm actually flying into a bug!

@gtmooya

1. grep sed and tr are all part of the SDK package, which also includes a shell that should be able to actually run the script. This seems to be the best option.

_________________
: AmigaOneXE (unmod.) 750FX/512 MB +stuff & AmigaOS 4.(0|1)
: A1200/68060&96MB/SCSI/EM1200-Voodoo3 & OS 3.5
: A500/1MB
: Pegasos (ff) 512 MB & MorphOS
Praise seitan.

 Status: Offline
Profile     Report this post  
opi 
Re: Dropbox uploader possibilities for OS4.1
Posted on 28-May-2011 0:34:33
#3 ]
Team Member
Joined: 2-Mar-2005
Posts: 2752
From: Poland

@gtmooya

Grab cURL-dev and you're done. Dropbox's API is pretty straight forward.

_________________
OpenWindows Initiative. Port PS3 hardware to bananas. For free. Join today and receive expired $50 cupon from AI!

 Status: Offline
Profile     Report this post  
gtmooya 
Re: Dropbox uploader possibilities for OS4.1
Posted on 30-May-2011 13:48:49
#4 ]
Regular Member
Joined: 8-May-2011
Posts: 285
From: Unknown

@Thematic

@opi

Thanks, downloaded both SDK and cURL dev will take a look.

_________________
gtmooya's blog

 Status: Offline
Profile     Report this post  
klx300r 
Re: Dropbox uploader possibilities for OS4.1
Posted on 28-Jul-2011 5:26:36
#5 ]
Elite Member
Joined: 4-Mar-2008
Posts: 3837
From: Toronto, Canada

@gtmooya

Any news on DropBox for AmigaOS4.x as I use it everyday
For my business & would love to have it on my miggy

_________________
____________________________
c64-2sids, A1000, A1200T-060@50(finally working!),A4000-CSMKIII
! My Master Miggies- Amiga 1000 & AmigaOne X1000 !
mancave-ramblings
X1000 I BELIEVE

 Status: Offline
Profile     Report this post  
Nibunnoichi 
Re: Dropbox uploader possibilities for OS4.1
Posted on 28-Jul-2011 8:00:05
#6 ]
Cult Member
Joined: 18-Nov-2004
Posts: 969
From: Roma + Lecco, Italia

@klx300r

Quote:

klx300r wrote:
@gtmooya
Any news on DropBox for AmigaOS4.x as I use it everyday
For my business & would love to have it on my miggy

Have you tried this Snapshoter ...i haven't tested it myself yet, but it looks good.
Otherwise, cURL should do the trick... i'll try that php script if i have time

_________________
Proud Amigan since 1987
Owner of various Commodore and a SAM440ep\OS4.1FE
See them on http://retro.furinkan.org/

 Status: Offline
Profile     Report this post  
opi 
Re: Dropbox uploader possibilities for OS4.1
Posted on 28-Jul-2011 8:19:54
#7 ]
Team Member
Joined: 2-Mar-2005
Posts: 2752
From: Poland

@Nibunnoichi

http://www.andreafabrizi.it/?dropbox_uploader

_________________
OpenWindows Initiative. Port PS3 hardware to bananas. For free. Join today and receive expired $50 cupon from AI!

 Status: Offline
Profile     Report this post  
xabierpayet 
Re: Dropbox uploader possibilities for OS4.1
Posted on 28-Jul-2011 11:23:25
#8 ]
Member
Joined: 16-Mar-2011
Posts: 61
From: Unknown

for use snapshoter dropbox feature you need a dropbox client installed in your machine, the only way to use it under amigaos is via UAE installing dropbox in windows and sharing the same folder. A client for Amiga/MorphOS or AROS will be nice

 Status: Offline
Profile     Report this post  
broadblues 
Re: Dropbox uploader possibilities for OS4.1
Posted on 28-Jul-2011 11:28:32
#9 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

@gtmooya

if you went for the python option, you might need ssl support, that's not including in the current version, but I just uploaded a temp fix to os4depot which bridges the gap until a future python update.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
klx300r 
Re: Dropbox uploader possibilities for OS4.1
Posted on 28-Jul-2011 14:15:19
#10 ]
Elite Member
Joined: 4-Mar-2008
Posts: 3837
From: Toronto, Canada

Quote:

Nibunnoichi wrote:

Have you tried this Snapshoter ...i haven't tested it myself yet, but it looks good.
Otherwise, cURL should do the trick... i'll try that php script if i have time


wow seems great but right now I'm waiting for my OS4.x machine so definitely will try it out !
Can anyone comment on how the DropBox functionality works on it.

_________________
____________________________
c64-2sids, A1000, A1200T-060@50(finally working!),A4000-CSMKIII
! My Master Miggies- Amiga 1000 & AmigaOne X1000 !
mancave-ramblings
X1000 I BELIEVE

 Status: Offline
Profile     Report this post  
tekmage 
Re: Dropbox uploader possibilities for OS4.1
Posted on 11-Sep-2011 5:11:51
#11 ]
Regular Member
Joined: 23-Mar-2005
Posts: 439
From: San Francisco

@broadblues

Hi Broadblues,

I see the file your talking about. I've attempted to run the dbupload python from here:

http://wiki.dropbox.com/DropboxAddons/PythonDropboxUploader

Turns out it needs mechanize from here:

http://wwwsearch.sourceforge.net/mechanize/

This is where it goes south. When I try to run "python setup.py install" I get the following error:


14.RAM Disk:mechanize-0.2.5> python setup.py install

---------------------------------------------------------------------------
This script requires setuptools version 0.6c11 to run (even to display
help). I will attempt to download it for you (from
http://pypi.python.org/packages/2.5/s/setuptools/), but
you may need to enable firewall access for this script first.
I will start the download in 15 seconds.

(Note: if this machine does not have network access, please obtain the file

http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c11-py2.5.egg

and place it in this directory before rerunning this script.)
---------------------------------------------------------------------------
Downloading http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c11-py2.5.egg
running install
Traceback (most recent call last):
File "setup.py", line 92, in
main()
File "setup.py", line 87, in main
packages = ["mechanize"],
File "PYTHON:Lib/distutils/core.py", line 151, in setup
dist.run_commands()
File "PYTHON:Lib/distutils/dist.py", line 974, in run_commands
self.run_command(cmd)
File "PYTHON:Lib/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "RAM Disk:mechanize-0.2.5/setuptools-0.6c11-py2.5.egg/setuptools/command/install.py", line 76, in run
File "RAM Disk:mechanize-0.2.5/setuptools-0.6c11-py2.5.egg/setuptools/command/install.py", line 90, in do_egg_install
File "PYTHON:Lib/distutils/cmd.py", line 117, in ensure_finalized
self.finalize_options()
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 173, in finalize_options
File "build/bdist.linux-i686/egg/pkg_resources.py", line 722, in __init__
File "build/bdist.linux-i686/egg/pkg_resources.py", line 751, in scan
File "build/bdist.linux-i686/egg/pkg_resources.py", line 1665, in find_in_zip
File "build/bdist.linux-i686/egg/pkg_resources.py", line 1191, in resource_listdir
File "build/bdist.linux-i686/egg/pkg_resources.py", line 1444, in _listdir
File "build/bdist.linux-i686/egg/pkg_resources.py", line 1329, in _zipinfo_name
AssertionError: RAM Disk:mechanize-0.2.5/setuptools-0.6c11-py2.5.egg is not a subpath of RAM Disk:mechanize-0.2.5/setuptools-0.6c11-py2.5.egg/


Any thoughts?

Bill

 Status: Offline
Profile     Report this post  
broadblues 
Re: Dropbox uploader possibilities for OS4.1
Posted on 11-Sep-2011 18:11:35
#12 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

@tekmage

First thought: don't do

python setup.py install

do

python setup.py build

first

Just as a safety issue to avoid installing broken non amiag compatable python modules...

I tried the above and it it to reported that it needed setuptools fetched it and then completed the build without errors.

When I tried install instead I get the same error as you.

Quick guess something in setuptools is making a non portable path syntax assumption.

Will have to dig arround....

Last edited by broadblues on 11-Sep-2011 at 09:34 PM.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
broadblues 
Re: Dropbox uploader possibilities for OS4.1
Posted on 12-Sep-2011 1:27:46
#13 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

@broadblues

The problem seems to be that setuptools cant install itself, I have the feeling it should be able to but somehow it seems to look for the .egg file within the .egg that it's looking for ...
studying the source code I can't see why this is....



I downloaded the source to setuputils from

http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz

unpacked and built it by typing

python setup.py build

then installed it 'by hand' by copying the contents of the build/lib/ directory to python:lib/site-packages/

Then attempted to install mechanise again and all worked

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
doraemon 
Re: Dropbox uploader possibilities for OS4.1
Posted on 12-Sep-2011 17:47:54
#14 ]
Member
Joined: 7-Mar-2005
Posts: 36
From: Calella república independent

@gtmooya

I have dropbox installed in my win machine and the dropboxfolder shared via SAMBA.
In my amiga I mount the samba share and voila, you can read and write to the dropbox folder, the only problem is that Samba is slow and you need a pc in the net but do the trick

 Status: Offline
Profile     Report this post  
tekmage 
Re: Dropbox uploader possibilities for OS4.1
Posted on 13-Sep-2011 5:15:06
#15 ]
Regular Member
Joined: 23-Mar-2005
Posts: 439
From: San Francisco

@doraemon

Turns out that Windows 7 and OS X Lion use different versions of SMB that have corruption issues with the Amiga smbfs :(

What Version of Windows are you running?

Bill

 Status: Offline
Profile     Report this post  
mr_homm 
Re: Dropbox uploader possibilities for OS4.1
Posted on 13-Sep-2011 6:24:47
#16 ]
Regular Member
Joined: 21-Mar-2003
Posts: 180
From: Seattle

@broadblues

It might be something very simple: AmigaDOS names the RAM: device "Ram Disk:" with a space. If the script is from unixland, it uses spaces as delimiters in file lists. If it is just checking by text parsing whether one directory is a subdirectory of the other, it may be entirely fooled by that space. Try renaming Ram Disk: to Ram_Disk: or RamDisk: and see if it works.

Just a thought.

Stuart Anderson

Last edited by mr_homm on 13-Sep-2011 at 06:25 AM.

 Status: Offline
Profile     Report this post  
TheAMIgaOne 
Re: Dropbox uploader possibilities for OS4.1
Posted on 6-Oct-2011 12:38:12
#17 ]
Cult Member
Joined: 10-Jan-2004
Posts: 776
From: United Kingdom

Just to let you guys know


Dropbox API V1.0 beta is now up

_________________
Cross-developer on Windows, OS3, OS4, Linux; Current Projects:-
Nephele Cloud App OS4
UserProfile System OS4
AmigaOneXE OS4.1.6

TaoSoftwareBlog Youtube

 Status: Offline
Profile     Report this post  
billt 
Re: Dropbox uploader possibilities for OS4.1
Posted on 6-Oct-2011 15:34:13
#18 ]
Elite Member
Joined: 24-Oct-2003
Posts: 3205
From: Maryland, USA

@TheAMIgaOne
Quote:
Dropbox API V1.0 beta is now up


Link??

_________________
All glory to the Hypnotoad!

 Status: Offline
Profile     Report this post  
TheAMIgaOne 
Re: Dropbox uploader possibilities for OS4.1
Posted on 6-Oct-2011 20:14:03
#19 ]
Cult Member
Joined: 10-Jan-2004
Posts: 776
From: United Kingdom

@billt

its not a download, API as in way to talk to Dropbox.

http://api.dropbox.com/developers/announcements/10

_________________
Cross-developer on Windows, OS3, OS4, Linux; Current Projects:-
Nephele Cloud App OS4
UserProfile System OS4
AmigaOneXE OS4.1.6

TaoSoftwareBlog Youtube

 Status: Offline
Profile     Report this post  
TheAMIgaOne 
Re: Dropbox uploader possibilities for OS4.1
Posted on 14-Oct-2011 3:59:38
#20 ]
Cult Member
Joined: 10-Jan-2004
Posts: 776
From: United Kingdom

@gtmooya

in case you havnt been following the 'help with Social API's' thread, ive had some success with C programming on Windows and OS4 gaining access to the flickr API, the biggest problem I had was understanding and using oauth authentication. Both Flickr and Dropbox (and things like youtube, facebook,twitter) use oauth for there desktop applications. Once you get past this, the api is fairly easy.

Well just managed to access my dropbox from a windows cmd app ive made, again this app will cross compile on to OS4, atm im just working out how Dropbox makes a hash of the directory to prove if its been modified.

So in terms on a uploader, it could be very close :)

_________________
Cross-developer on Windows, OS3, OS4, Linux; Current Projects:-
Nephele Cloud App OS4
UserProfile System OS4
AmigaOneXE OS4.1.6

TaoSoftwareBlog Youtube

 Status: Offline
Profile     Report this post  
Goto page ( 1 | 2 | 3 | 4 Next Page )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle