-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing smop #124
Comments
Try to install anaconda first. Once done, install smop with pip If you cut/paste error messages it will make possible to say something more specific |
I’m having problems which appear to be related to the versioning process too. Here are my notes:
Smop version problem
I attach a terminal output script for my attempt at installing smop v0.40. in an Anaconda environment on OsX High Sierra latest version 10.13.5
As you can see setup.py runs into trouble in determining the correct version number.
I executed the first few lines of the setup file step-by-step and found that the problem starts in the try line:
try:
__VERSION__ = os.popen("git describe --tags").read().strip()
My terminal output follows:
Python 3.6.5 | packaged by conda-forge | (default, Apr 6 2018, 13:44:09)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>> import os
>> from setuptools import setup
>> __VERSION__ = os.popen("git describe --tags").read().strip()
>> print(__VERSION__)
0.32-36-g844034e
>>
I have no idea where this version number comes from but it immediately overwrites the value in your version.py file and causes the warning messages that follow.
I forced the situation by writing the version number directly into the setup.py file and compilation was successful except for the 2 Syntax errors from the test programs.
try:
# __VERSION__ = os.popen("git describe --tags").read().strip()
__VERSION__ = "0.40"
However running the octave test produced the following:
(Py36-X) bash-3.2$ cd /Users/robw/OCTest
(Py36-X) bash-3.2$ ls -a
. .. octave-4.0.2.tar.gz octave-workspace
(Py36-X) bash-3.2$ smop -a octave-4.0.2.tar.gz -g '*/scripts/*.m’
WARNING: Couldn't open 'parser.out'. [Errno 20] Not a directory: '/Users/robw/.local/lib/python3.6/site-packages/smop-0.40-py3.6.egg/smop/parser.out'
WARNING: Token 'CLASSDEF' defined, but not used
WARNING: Token 'END_UNEXPECTED' defined, but not used
WARNING: There are 2 unused tokens
Generating LALR tables
WARNING: Couldn't create 'parsetab'. [Errno 20] Not a directory: '/Users/robw/.local/lib/python3.6/site-packages/smop-0.40-py3.6.egg/smop/parsetab.py'
Do these messages mean I should have the octave tar file in the same folder as smop?
Hope you can help.
Regards
Rob
[email protected]
… On 5/06/2018, at 10:38, victorlei ***@***.***> wrote:
Try to install anaconda first. Once done, install smop with pip
If you cut/paste error messages it will make possible to say something more specific
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#124 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AGLYJsGCtfUAYgPrMbe8WBmQC5Ergg6vks5t5bb2gaJpZM4UT6tS>.
|
Rob Regarding versioning problem: my guess is that you have an old version of smop installed ssomewheere in your path. Try find / -name smop -print 2> /dev/null Get rid of old versions and reinstall with pip Regarding the other bugs take a look at http://chiselapp.com/user/victorlei/repository/smop-dev/rptview?rn=1 As you see there are lots of probleems there |
Rob, I really appreciate your effort to debug the versioning scheme. Here is how it works today --- it's entirely possible I overlooked something. The versioning is managed in two files: setup.py and smop/version.py. Every time you run setup.py it goes to git and asks for the latest annotated version. Presumably, you have git installation working. Once git reports with something like "0.40-deadbeef" , setup.py overwrites version.py with the reported version. All this happens during the installation phase, every timie setup.py is run. When smop is used, it imports version.py and loads version variable from version.py. Victor |
At #123 , you kindly suggested to install smop with pip, and check the version by 'smop --version', but I got the following output: Hidetos-MacBook-Air:~ hidetokoizumi$ pip install smop Hidetos-MacBook-Air:~ hidetokoizumi$ smop --version |
Hi,
I'm new to Python, Github and i have some questions regarding the installation. Can I install this tool on windows 10? And how to proceed? I tried anything, but unfortunately not worked.
The text was updated successfully, but these errors were encountered: