I am trying to build FoxySheep for python. But I am getting the following error:
Here is the log:
~/Downloads/FoxySheep-master$ cd python_target
~/Downloads/FoxySheep-master/python_target$ make
antlr4 -Dlanguage=Python2 -o generated -visitor ../FoxySheep.g4
make: antlr4: No such file or directory
make: *** [generated/FoxySheepParser.py] Error 1
You need to have antlr4 installed on your system. There is a quickstart on http://www.antlr.org that should get you up and running.
Related
I am deploying an web app and It give me an error like:
Command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.8 -i /tmp/8da2073577e7c44 --compress-destination-dir -p virtualenv_name=antenv --log-file /tmp/build-debug.log
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues
Oryx Version: 0.2.20211207.1, Commit: 46633df49cc8fbe9718772a3c894df221273b2af, ReleaseTagName: 20211207.1
Build Operation ID: |k0MN7QhgbkY=.5fbefdfd_
Repository Commit : 6bc0cf64-6a80-4b53-a94d-605798c20ce9
Detecting platforms...
Error: Oops... An unexpected error has occurred.
Error: Oops... An unexpected error has occurred.\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.8 -i /tmp/8da2073577e7c44 --compress-destination-dir -p virtualenv_name=antenv --log-file /tmp/build-debug.log
Can anybody tell me how do I solve this problem
If you are having a VNet integration then suggest to disconnect and then publish.
See similar issue here: Detecting platforms... Error: Oops... An unexpected error has occurred
Try removing unused config variables. In my case I was migrating from Heroku and I had a DISABLE_COLLECTSTATIC variable that wasn't used in my app. After removing it the error went away.
I want to make an app file with py2app. I installed py2app with pip, and proceeded to create the app file in terminal:
$ cd /Users/<username>/Desktop/pytoapp
$ py2applet --make-setup a_py2app.py
Wrote setup.py
Up until this point it went all right, but watch what happened next (skip to the 3 last rows for the relevant information):
$ python setup.py py2app
running py2app
creating /Users/<username>/Desktop/pytoapp/build
creating /Users/<username>/Desktop/pytoapp/build/bdist.macosx-10.14-intel
creating /Users/<username>/Desktop/pytoapp/build/bdist.macosx-10.14-intel/python2.7-standalone
creating /Users/<username>/Desktop/pytoapp/build/bdist.macosx-10.14-intel/python2.7-standalone/app
creating /Users/<username>/Desktop/pytoapp/build/bdist.macosx-10.14-intel/python2.7-standalone/app/collect
creating /Users/<username>/Desktop/pytoapp/build/bdist.macosx-10.14-intel/python2.7-standalone/app/temp
creating /Users/<username>/Desktop/pytoapp/dist
creating build/bdist.macosx-10.14-intel/python2.7-standalone/app/lib-dynload
creating build/bdist.macosx-10.14-intel/python2.7-standalone/app/Frameworks
*** using recipe: virtualenv ***
*** using recipe: sip ***
*** using recipe: email ***
*** filtering dependencies ***
475 total
69 filtered
9 orphaned
406 remaining
*** create binaries ***
*** byte compile python files ***
byte-compiling /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py to _markerlib/__init__.pyc
[…]
[reams of unimportant crap]
[…]
bdist.macosx-10.14-intel/python2.7-standalone/app/collect/test/testrgb.uue
copying file /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/test/floating_points.txt -> /Users/<username>/Desktop/pytoapp/build/bdist.macosx-10.14-intel/python2.7-standalone/app/collect/test/floating_points.txt
*** creating application bundle: a_py2app ***
error: [Errno 1] Operation not permitted: '/Users/<username>/Desktop/pytoapp/dist/a_py2app.app/Contents/MacOS/a_py2app'
I get an error, saying "operation not permitted". How do I resolve this? I'm the admin, and I use Python 3.7.
i want to install vim via brew for python3, but it always failure.
below is the log:
LiuJustins-MacBook-Pro:~ justin$ brew install vim --without-python --with-python3
==> Downloading https://github.com/vim/vim/archive/v8.0.1400.tar.gz
Already downloaded: /Users/justin/Library/Caches/Homebrew/vim-8.0.1400.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.0.1400_4/share
==> make
Last 15 lines from /Users/justin/Library/Logs/Homebrew/vim/02.make:
CF_EXPORT const CFCalendarIdentifier kCFISO8601Calendar API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h:197:63: error: expected ';' after top level declarator
CF_EXPORT const CFCalendarIdentifier kCFIslamicTabularCalendar API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h:198:65: error: expected ';' after top level declarator
CF_EXPORT const CFCalendarIdentifier kCFIslamicUmmAlQuraCalendar API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [objects/os_mac_conv.o] Error 1
make[1]: *** Waiting for unfinished jobs....
20 errors generated.
make[1]: *** [objects/os_macosx.o] Error 1
make: *** [first] Error 2
READ THIS: https://docs.brew.sh/Troubleshooting.html
Error: A newer Command Line Tools release is available.
Update them from Software Update in the App Store.
Solution: Manually download the install package ("Command Line Tools for Xcode.dwg") from https://developer.apple.com/download/more/, and rerun the command "brew install vim --without-python --with-python3". Now it works.
I was trying to build uwsgi+django server. I need to build uwsgi python36_plugin.so for python3.6 using this command:
make PROFILE=nolang
PYTHON=python3 ./uwsgi --build-plugin "plugins/python python36"
It didn't work:
[root#izuf64a9gck81cz uwsgi-2.0.15]# PYTHON=python ./uwsgi --build-plugin "plugins/python python36"
*** uWSGI building and linking plugin from plugins/python ***
[gcc -pthread] python36_plugin.so
/usr/bin/ld: /usr/python3/lib/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6m.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/usr/python3/lib/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6m.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
*** unable to build python36 plugin ***
When i use build python2.7 version,it turns out right
PYTHON=python2.7 ./uwsgi --build-plugin "plugins/python python27"
My problem is I have two version of python 3, the default python3 is python3.4, and the second one is python3.6, and I want to use python3.6 for some of my django project so I need to build the plugins and I got same problem you got.
It took me couple hours to solved this issue. Here is what I did from here:
Reconfigure my python3.6
cd Python-3.6.4/
./configure --enable-shared --enable-optimizations --prefix=/usr/local LDFLAGS="-Wl,--rpath=/usr/local/lib"
Get in to your uwsgi folder and try to build again
PYTHON=python3.6 ./uwsgi --build-plugin "plugins/python python36"
Goodluck! May it solve your prob too!
I tried "brew install pyqt" after checking
How to install PyQt on Mac OS X 10.6 and a bunch of blogsites. Specifially,
> brew install qt --with-developer --env=std
But it failed with this error -
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../../lib/QtCore.framework/QtCore] Error 1
make[1]: *** [release] Error 2
make: *** [sub-corelib-make_default-ordered] Error 2
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:353:in `open_http': 422 Unprocessable Entity (GitHub::Error)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:709:in `buffer_open'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:210:in `block in open_loop'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:208:in `catch'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:208:in `open_loop'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:149:in `open_uri'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:689:in `open'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:30:in `open'
from /usr/local/Library/Homebrew/utils.rb:343:in `open'
from /usr/local/Library/Homebrew/utils.rb:373:in `issues_matching'
from /usr/local/Library/Homebrew/utils.rb:401:in `issues_for_formula'
from /usr/local/Library/Homebrew/exceptions.rb:145:in `fetch_issues'
from /usr/local/Library/Homebrew/exceptions.rb:141:in `issues'
from /usr/local/Library/Homebrew/exceptions.rb:184:in `dump'
from /usr/local/Library/brew.rb:162:in `rescue in <main>'
from /usr/local/Library/brew.rb:65:in `<main>'
Can someone please help me out? I see that there's a problem on the open-uri.rb module, but I have almost no experience with Ruby.
updating homebrew got rid of this error for me:
brew update