Closed retsyo closed 6 years ago
no.
that's great to hear! maybe some explanation would be helpful.
has anyone been able to solve this?
Maybe you have not installed SMOP by easy_install
nor python setup.py install
?
Due to L9 of setup.py, setup.py will automatically generate version.py for you.
If this is the case, you can create version.py which includes following line in it:
__version__="0.34"
Although this will solve this issue, you will be faced with issue #110 ...
Py 3 doesn't come with version installed. You have to download the module.
I think I fixed it. Anybody volunteers to reproduce?
Fixed in 0.40
I have tried many different tricks to get the correct version number and none of them work.
Along the way I’ve noted a few points: 1) I’m not an experienced github user so until nowI download the zip file and use that stand alone. I wonder how many others do that? Is the git tag available in the zip file?
2) After a crash course in using github and installing “SmartGit” I downloaded smop to my git repository and used "pip -e …” to install from there into my Anaconda3 environment. Still no joy, every Version number comes out as 0.32 xxxxx.
Looking at the Git Journal in SmartGit I cannot see any tag value of 0.40. Is it missing in your repo perhaps?
3) Your installation instructions and the setup.py file seem to rely on the "git describe —tags” command working correctly. I far as I can tell this means that non git users will strike trouble every time!
4) Your instructions suggest using pip to install smop. I think that is ambiguous and can be clarified.
There are two options for a pip install: a) “pip install smop” will download and install the current version available to pip. Currently 0.35 for python2
b) downloading first from github, and then install using “pip -e
5) It is learning curve stuff, but I frequently have PATH problems when using smop due to inexperience.
One problem is the "import libsmop” instruction.
This only works if smop is on PATH or PYTHONPATH and has been setup before smop is called.
I think it would be helpful to include libsmop by default in the smop output folder where it will be found every time by a python call, irrespective of the PATH setup. This removes one more learning curve problem for new users. It also makes the smop output python code more transportable.
I hope these comments are helpful to you
Regards Rob
RobBWilkinson@gmail.com
On 11/06/2018, at 14:27, tarakobeam notifications@github.com wrote:
Still have this issue as mentioned in #124 https://github.com/victorlei/smop/issues/124 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/victorlei/smop/issues/111#issuecomment-396105755, or mute the thread https://github.com/notifications/unsubscribe-auth/AGLYJgcRS7dxzxVqTNlxMX2QHhfwR_Cxks5t7dV0gaJpZM4OEzD4.
What a mess... Thanks so much for spending time on this. Today will give it another try
On Wed, Jun 13, 2018 at 6:02 AM, Rob Wilkinson notifications@github.com wrote:
I have tried many different tricks to get the correct version number and none of them work.
Along the way I’ve noted a few points: 1) I’m not an experienced github user so until nowI download the zip file and use that stand alone. I wonder how many others do that? Is the git tag available in the zip file?
2) After a crash course in using github and installing “SmartGit” I downloaded smop to my git repository and used "pip -e …” to install from there into my Anaconda3 environment. Still no joy, every Version number comes out as 0.32 xxxxx.
Looking at the Git Journal in SmartGit I cannot see any tag value of 0.40. Is it missing in your repo perhaps?
3) Your installation instructions and the setup.py file seem to rely on the "git describe —tags” command working correctly. I far as I can tell this means that non git users will strike trouble every time!
4) Your instructions suggest using pip to install smop. I think that is ambiguous and can be clarified.
There are two options for a pip install: a) “pip install smop” will download and install the current version available to pip. Currently 0.35 for python2
b) downloading first from github, and then install using “pip -e <path-to smop-download>. Currently this will install version 0.40 for python3 (but with an unresolved version problem).
5) It is learning curve stuff, but I frequently have PATH problems when using smop due to inexperience. One problem is the "import libsmop” instruction. This only works if smop is on PATH or PYTHONPATH and has been setup before smop is called.
I think it would be helpful to include libsmop by default in the smop output folder where it will be found every time by a python call, irrespective of the PATH setup. This removes one more learning curve problem for new users. It also makes the smop output python code more transportable.
I hope these comments are helpful to you
Regards Rob
RobBWilkinson@gmail.com
On 11/06/2018, at 14:27, tarakobeam notifications@github.com wrote:
Still have this issue as mentioned in #124 < https://github.com/victorlei/smop/issues/124> — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/victorlei/smop/issues/111#issuecomment-396105755>, or mute the thread https://github.com/notifications/unsubscribe-auth/ AGLYJgcRS7dxzxVqTNlxMX2QHhfwR_Cxks5t7dV0gaJpZM4OEzD4.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/victorlei/smop/issues/111#issuecomment-396798787, or mute the thread https://github.com/notifications/unsubscribe-auth/AEhsG5kJyO3UdyJOtb_QhF5wMWAsKp-Iks5t8IDagaJpZM4OEzD4 .
-- Calligraphy of geese / Against the sky / The moon seals it / (Buson/Hass)
Rob
There is a great program called teamview which allows remote access and remote debugging. I suggest an interactive session today. What is your time zone? Mine is GMT+2 (Jerusalem)
Victor
On Wed, Jun 13, 2018 at 7:45 AM, Victor victorlei@gmail.com wrote:
What a mess... Thanks so much for spending time on this. Today will give it another try
On Wed, Jun 13, 2018 at 6:02 AM, Rob Wilkinson notifications@github.com wrote:
I have tried many different tricks to get the correct version number and none of them work.
Along the way I’ve noted a few points: 1) I’m not an experienced github user so until nowI download the zip file and use that stand alone. I wonder how many others do that? Is the git tag available in the zip file?
2) After a crash course in using github and installing “SmartGit” I downloaded smop to my git repository and used "pip -e …” to install from there into my Anaconda3 environment. Still no joy, every Version number comes out as 0.32 xxxxx.
Looking at the Git Journal in SmartGit I cannot see any tag value of 0.40. Is it missing in your repo perhaps?
3) Your installation instructions and the setup.py file seem to rely on the "git describe —tags” command working correctly. I far as I can tell this means that non git users will strike trouble every time!
4) Your instructions suggest using pip to install smop. I think that is ambiguous and can be clarified.
There are two options for a pip install: a) “pip install smop” will download and install the current version available to pip. Currently 0.35 for python2
b) downloading first from github, and then install using “pip -e <path-to smop-download>. Currently this will install version 0.40 for python3 (but with an unresolved version problem).
5) It is learning curve stuff, but I frequently have PATH problems when using smop due to inexperience. One problem is the "import libsmop” instruction. This only works if smop is on PATH or PYTHONPATH and has been setup before smop is called.
I think it would be helpful to include libsmop by default in the smop output folder where it will be found every time by a python call, irrespective of the PATH setup. This removes one more learning curve problem for new users. It also makes the smop output python code more transportable.
I hope these comments are helpful to you
Regards Rob
RobBWilkinson@gmail.com
On 11/06/2018, at 14:27, tarakobeam notifications@github.com wrote:
Still have this issue as mentioned in #124 < https://github.com/victorlei/smop/issues/124> — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/victorlei/smop/issues/111#issuecomment-396105755>, or mute the thread <https://github.com/notificati ons/unsubscribe-auth/AGLYJgcRS7dxzxVqTNlxMX2QHhfwR_Cxks5t7dV0gaJpZM4OEzD4 .
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/victorlei/smop/issues/111#issuecomment-396798787, or mute the thread https://github.com/notifications/unsubscribe-auth/AEhsG5kJyO3UdyJOtb_QhF5wMWAsKp-Iks5t8IDagaJpZM4OEzD4 .
-- Calligraphy of geese / Against the sky / The moon seals it / (Buson/Hass)
-- Calligraphy of geese / Against the sky / The moon seals it / (Buson/Hass)
Just noticed your note on Jun13. Did not see it until now, apologies
It works for me by using: from smop.libsmop import *
However, when I tried to convert matlab functions e.g pchip, it directly converts it as pchip, which seems not there...
Hi Everyone, I can succesfully translated matlab file to python file. when i'm running translated matlab file, its showing 'module not found error'.
Traceback (most recent call last):
File "adnet_train.py", line 2, in
what does it mean? and how can i solve this issue.
Thanks in advance.
I am travelling away from my home computer so cannot verify my following comment before posting it.
Smop version 0.41 and up runs in Python 3 but produces Python 2.7 + Code which is not fully compatible with Python 3. You have hit such a case with a python 2. “From libsmop import * ” command which generates an “import builtins” (a python 2 command) being issued to Python 3 which does not recognise such a command.
Try running your smop generated code under Python 2.7 Or if you want to experiment, use the Python 3 “futurize” feature on your smop generated code.
Hope my memory of what I tried a couple of months ago is helpful.
Regards Rob Wilkinson
On 5/09/2018, at 10:32, avvaruvenkatsai notifications@github.com wrote:
Hi Everyone, I can succesfully translated matlab file to python file. when i'm running translated matlab file, its showing 'module not found error'.
Traceback (most recent call last): File "adnet_train.py", line 2, in from smop.libsmop import * File "/home/venchi/anaconda3/lib/python3.6/site-packages/smop-0.41-py3.6.egg/smop/libsmop.py", line 6, in ModuleNotFoundError: No module named 'builtin'
what does it mean? and how can i solve this issue.
Thanks in advance.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
File "e:\prg\py\pure_pylib_bridge\SmallMatlabtoPythoncompiler\smop\options.py ", line 4, in
from version import version
ImportError: No module named version