nightgryphon / gryphon-scan Goto Github PK
View Code? Open in Web Editor NEWThis project forked from 3dstb/horus
Enhanced "Horus" 3D Scanning multiplatform multi-machine desktop application
License: GNU General Public License v2.0
This project forked from 3dstb/horus
Enhanced "Horus" 3D Scanning multiplatform multi-machine desktop application
License: GNU General Public License v2.0
I think some of the packages need to be pinned to specific versions - the error below has some errors - maybe some of the packages (e.g. pyopengl need to be pinned to specific versions?) Do you know which versions you have installed?
pip install -U pip setuptools
pip install -U virtualenv
pip install virtualenv
git clone [email protected]:nightgryphon/gryphon-scan.git
cd gryphon-scan
virtualenv venv
virtualenv venv --system-site-packages
source venv/bin/activate
pip install -U pyserial pyopengl pyopengl-accelerate numpy scipy matplotlib==1.4.0 py2app==0.7.2
pip install -U pyobjc-core==2.5.1 pyobjc-framework-cocoa==2.5.1 pyobjc-framework-quartz==2.5.1 pyobjc-framework-qtkit==2.5.1
./package.sh darwin
./package.sh darwin
/Users/eric/Work/gryphon-scan/venv/lib/python2.7/site-packages/setuptools/dist.py:485: UserWarning: The version specified ('') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
"details." % self.metadata.version
running py2app
creating /Users/eric/Work/gryphon-scan/dar_dist/build
creating /Users/eric/Work/gryphon-scan/dar_dist/build/python2.7-standalone
creating /Users/eric/Work/gryphon-scan/dar_dist/build/python2.7-standalone/app
creating /Users/eric/Work/gryphon-scan/dar_dist/build/python2.7-standalone/app/collect
creating /Users/eric/Work/gryphon-scan/dar_dist/build/python2.7-standalone/app/temp
creating /Users/eric/Work/gryphon-scan/dar_dist/dist
creating dar_dist/build/python2.7-standalone/app/lib-dynload
creating dar_dist/build/python2.7-standalone/app/Frameworks
*** using recipe: virtualenv ***
*** using recipe: sip ***
*** using recipe: matplotlib ***
*** using recipe: pydoc ***
*** using recipe: docutils ***
*** using recipe: scipy ***
*** using recipe: pyopengl ***
Traceback (most recent call last):
File "setup_mac.py", line 39, in <module>
setup_requires=['py2app'])
File "/Users/eric/Work/gryphon-scan/venv/lib/python2.7/site-packages/setuptools/__init__.py", line 162, in setup
return distutils.core.setup(**attrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/Users/eric/Work/gryphon-scan/venv/lib/python2.7/site-packages/py2app/build_app.py", line 520, in run
self._run()
File "/Users/eric/Work/gryphon-scan/venv/lib/python2.7/site-packages/py2app/build_app.py", line 708, in _run
self.run_normal()
File "/Users/eric/Work/gryphon-scan/venv/lib/python2.7/site-packages/py2app/build_app.py", line 783, in run_normal
self.process_recipes(mf, filters, flatpackages, loader_files)
File "/Users/eric/Work/gryphon-scan/venv/lib/python2.7/site-packages/py2app/build_app.py", line 677, in process_recipes
find_needed_modules(mf, packages=rval['packages'])
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/find_modules.py", line 222, in find_needed_modules
m = mf.import_hook(package, None, ["*"])
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 685, in import_hook
m = self.load_tail(q, tail)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 780, in load_tail
result = self.import_module(head, mname, result)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 847, in import_module
m = self.load_module(fqname, fp, pathname, stuff)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 871, in load_module
m = self.load_package(fqname, pathname, packagepath)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 1094, in load_package
self.load_module(fqname, fp, buf, stuff)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 909, in load_module
self.scan_code(co, m)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 1015, in scan_code
imported_module = self._safe_import_hook(name, m, fromlist, level)[0]
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 917, in _safe_import_hook
mods = self.import_hook(name, caller, level=level)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 685, in import_hook
m = self.load_tail(q, tail)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 780, in load_tail
result = self.import_module(head, mname, result)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 847, in import_module
m = self.load_module(fqname, fp, pathname, stuff)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 909, in load_module
self.scan_code(co, m)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 1062, in scan_code
self.scan_code(c, m)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 1062, in scan_code
self.scan_code(c, m)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 1015, in scan_code
imported_module = self._safe_import_hook(name, m, fromlist, level)[0]
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 949, in _safe_import_hook
sm = self.import_hook(name, caller, [sub], level=level)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 688, in import_hook
for s in self.ensure_fromlist(m, fromlist):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 797, in ensure_fromlist
submod = self.import_module(sub, fullname, m)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 847, in import_module
m = self.load_module(fqname, fp, pathname, stuff)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/modulegraph/modulegraph.py", line 883, in load_module
co = compile(contents, pathname, 'exec', 0, True)
File "/Library/Python/2.7/site-packages/OpenGL/EGL/debug.py", line 39
print("P3", file=f)
^
SyntaxError: invalid syntax
chmod: cannot access 'dar_dist/dist/Horus.app/Contents/Resources/res/tools/darwin/avrdude': No such file or directory
chmod: cannot access 'dar_dist/dist/Horus.app/Contents/Resources/res/tools/darwin/avrdude_bin': No such file or directory
chmod: cannot access 'dar_dist/dist/Horus.app/Contents/Resources/res/tools/darwin/lib/': No such file or directory
pkg/darwin/create-dmg/create-dmg: line 129: cd: dar_dist/dist/Horus.app: No such file or directory
Creating disk image...
........................................................................................................................................................................................................
created: /Users/eric/Work/gryphon-scan/dar_dist/rw.Horus_0.2rc1.dmg
Mounting disk image...
Unmounting disk image...
"disk2" ejected.
Mount directory: /Volumes/Horus Installer
Device name: /dev/disk2
Copying background file...
making link to Applications dir
/Volumes/Horus Installer
Copying volume icon file 'res/horus.icns'...
mktemp: too few X's in template ‘createdmg’
./horus
dyld: warning, LC_RPATH @executable_path/../Frameworks in /Users/eric/Library/Python/2.7/lib/python/site-packages/cv2/.dylibs/QtWidgets being ignored in restricted program because of @executable_path (Codesign main executable with Library Validation to allow @ paths)
dyld: warning, LC_RPATH @executable_path/../Frameworks in /Users/eric/Library/Python/2.7/lib/python/site-packages/cv2/.dylibs/QtGui being ignored in restricted program because of @executable_path (Codesign main executable with Library Validation to allow @ paths)
dyld: warning, LC_RPATH @executable_path/../Frameworks in /Users/eric/Library/Python/2.7/lib/python/site-packages/cv2/.dylibs/QtCore being ignored in restricted program because of @executable_path (Codesign main executable with Library Validation to allow @ paths)
dyld: warning, LC_RPATH @executable_path/../Frameworks in /Users/eric/Library/Python/2.7/lib/python/site-packages/cv2/.dylibs/QtTest being ignored in restricted program because of @executable_path (Codesign main executable with Library Validation to allow @ paths)
dyld: warning, LC_RPATH @executable_path/../Frameworks in /Users/eric/Library/Python/2.7/lib/python/site-packages/cv2/.dylibs/QtConcurrent being ignored in restricted program because of @executable_path (Codesign main executable with Library Validation to allow @ paths)
No handlers could be found for logger "horus.util.profile"
Traceback (most recent call last):
File "./horus", line 52, in <module>
main()
File "./horus", line 48, in main
from horus.gui import app
File "./src/horus/gui/app.py", line 12, in <module>
from horus.gui.main import MainWindow
File "./src/horus/gui/main.py", line 17, in <module>
from horus.gui.engine import driver, image_capture, ciclop_scan, scanner_autocheck, \
File "./src/horus/gui/engine.py", line 9, in <module>
from horus.engine.driver.driver import driver
File "./src/horus/engine/driver/driver.py", line 12, in <module>
from horus.engine.driver.camera_usb import Camera_usb
File "./src/horus/engine/driver/camera_usb.py", line 29, in <module>
from uvc.mac import *
File "./src/horus/engine/driver/uvc/mac/__init__.py", line 26, in <module>
from raw import *
File "./src/horus/engine/driver/uvc/mac/raw.py", line 107, in <module>
__uvcc_dll = CDLL(dll_path)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 366, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(res/tools/darwin/uvcc.so, 6): no suitable image found. Did find:
file system relative paths not allowed in hardened programs
A lot of errors around python 2.7 being deprecated next month. Would be good to update to python 3.x
I have downloaded and compiled on OSX Catalina, but it I get:
./horus
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
numpy.core.multiarray failed to import
which I think means at run-time it is trying to load the numpy supplied with OSX, and not the one installed as part of the compile; help!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.