Giter Site home page Giter Site logo

OSX - File not found about stacoan HOT 11 CLOSED

vincentcox avatar vincentcox commented on May 22, 2024
OSX - File not found

from stacoan.

Comments (11)

sa7mon avatar sa7mon commented on May 22, 2024 1

Awesome, thanks for the prompt responses. Might I suggest that in addition to using a less-common port you add an argument or config somewhere where the user can specify the port to use?

Also, the Chrome error message is less critical than it seems. The page does open in Firefox after it gives the Chrome error, but the address is file://127.0.0.1:8080 which doesn't work until I change it to http://localhost:8080 so it's not trying to serve from the filesystem as opposed to the webserver.

from stacoan.

vincentcox avatar vincentcox commented on May 22, 2024 1

Ah that's a good thing you mention that. I added that also on the roadmap (use file:// when server is disabled and https:// when server is enabled).

from stacoan.

sa7mon avatar sa7mon commented on May 22, 2024

I get the same 0:38: execution error: File some object wasn’t found. (-43) error.

Running the application in both Python 2.7 and 3.6 gives the same result. Running MacOS 10.13.3

from stacoan.

vincentcox avatar vincentcox commented on May 22, 2024

Thanks for reporting this guys! Are you guys running the release? Or are you running it by downloading the source and executing it via python?

from stacoan.

vincentcox avatar vincentcox commented on May 22, 2024

Keep in mind that this project is only tested on python3. Make sure to invoke python3 stacoan.py -d test-apk.apk instead of python stacoan.py -d test-apk.apk.

from stacoan.

sa7mon avatar sa7mon commented on May 22, 2024

The error seems to happen on both the 0.6 release, and the master branch as of writing (last commit: 49ac37a)

Environment:
OSX 10.13.3
Python: 3.6.4

Stacktrace:

(venv) (venv)sphynx:/Volumes/DATA/Projects/StaCoAn/src $ python3 ./stacoan.py
[INFO] serving report server at port: 8080
[INFO] serving dragdrop server at port: 8000
0:38: execution error: File some object wasn’t found. (-43)
69:77: execution error: Can’t get application "chrome". (-1728)
[INFO] GET / HTTP/1.1 200 -
[INFO] TrueFile '/Volumes/DATA/Projects/StaCoAn/src/com.spotify.apk' upload success!by: ('127.0.0.1', 56254)
[INFO] POST / HTTP/1.1 200 -
[INFO] serving report server at port: 8080
Process Process-1:
Traceback (most recent call last):
  File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/process.py", line 93, in run
    self._target(*self._args, **self._kwargs)
  File "./stacoan.py", line 151, in program
    server(args, server_enabled, DRAG_DROP_SERVER_PORT)
  File "./stacoan.py", line 92, in server
    reportserver = ServerWrapper.create_reportserver()
  File "/Volumes/DATA/Projects/StaCoAn/src/helpers/server.py", line 31, in create_reportserver
    return socketserver.TCPServer(("", ServerWrapper.REPORT_SERVER_PORT), RequestHandlerClass=ServerWrapper.reportserver)
  File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socketserver.py", line 453, in __init__
    self.server_bind()
  File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socketserver.py", line 467, in server_bind
    self.socket.bind(self.server_address)
OSError: [Errno 48] Address already in use

The error about Chrome is probably unrelated and due to the fact that I run Firefox.

from stacoan.

vincentcox avatar vincentcox commented on May 22, 2024

I think I have an idea why this is. The program uses a frequently used port (8080) which in your case is used. Because the program cannot opens this port, the rest of the program doesn't get certain information, causing some objects to not be found by StaCoAn.
I will fix this by changing the port number to something less frequent.

About the chrome thing, it's also a bug (wrong assumption of me that everybody has chrome), thanks for reporting.

Summary: To fix

  • Change default ports to less frequent ones
  • Find a way to open the default browser of the user.

from stacoan.

vincentcox avatar vincentcox commented on May 22, 2024

Can you guys try with the latest update in the development branch?

git clone -b develop https://github.com/vincentcox/stacoan

If both the chrome and the 'File some object wasn’t found'-error is fixed I will push this to master and make a new executable.

from stacoan.

sa7mon avatar sa7mon commented on May 22, 2024

Running with Python 3.6.5 yields the following:

screen shot 2018-04-01 at 09 25 13

from stacoan.

vincentcox avatar vincentcox commented on May 22, 2024

I could reproduce it and I have created a fix in the dev branch. The issue seems fixed for me but I want to confirm this with you guys. Happy easter by the way!

from stacoan.

vincentcox avatar vincentcox commented on May 22, 2024

Feel free to re-open this issue if you still get the error with this new release.

from stacoan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.