Skip to content
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

maximum recursion depth exceeded while calling a Python object #39

Open
chenmingzhang opened this issue Apr 9, 2018 · 4 comments
Open

Comments

@chenmingzhang
Copy link

chenmingzhang commented Apr 9, 2018

when i was trying to install pywafo by running

python setup.py bdist_wheel -d dist

according to README

it shows:

loc2 = e.tryParse( instring, loc )
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/_vendor/pyparsing.py", line 1421, in tryParse
    return self._parse( instring, loc, doActions=False )[0]

File "/usr/local/lib/python2.7/dist-packages/pkg_resources/_vendor/pyparsing.py", line 1383, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions )
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/_vendor/pyparsing.py", line 2779, in parseImpl
ret = ParseResults(result.group())
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/_vendor/pyparsing.py", line 359, in init
if isinstance(toklist, list):
RuntimeError: maximum recursion depth exceeded while calling a Python object
error in wafo setup command: Error parsing /home/osboxes/Downloads/git2/pywafo/setup.cfg: RuntimeError: maximum recursion depth exceeded while calling a Python object

@axelande
Copy link

axelande commented Apr 11, 2018

I have the similar problems running the setup on Windows.. (Also I had to remove "SetuptoolsVersion" from the .egg folder \pyscaffold\utils.py row 207 "from pkg_resources import parse_version, SetuptoolsVersion".

"use_pyscaffold" is called until the recursion depth is maximum..

I tried both 32, 64 bits Python3.5 and Python3.6.

@axelande
Copy link

axelande commented Apr 13, 2018

For me I "solved" the problem by using a newer version of pyscaffold in the setup_requires and also I had to compile it with a Intel Fortan compilator.

One question though, why is only the data and wafo/data set to be built in add_data_dir? Why not the entire wafo folder? I changed it to include the wafo folder and was finally able to built it, now I can import it and work with it, however I get the following errors:

C:\Python36_32\lib\site-packages\wafo\kdetools\demo.py:15: UserWarning: fig import only supported on Windows
warnings.warn('fig import only supported on Windows')
C:\Python36_32\lib\site-packages\wafo\gaussian.py:14: UserWarning: mvn not found. Check its compilation.
warnings.warn('mvn not found. Check its compilation.')
C:\Python36_32\lib\site-packages\wafo\gaussian.py:19: UserWarning: mvnprdmod not found. Check its compilation.
warnings.warn('mvnprdmod not found. Check its compilation.')
C:\Python36_32\lib\site-packages\wafo\gaussian.py:24: UserWarning: rindmod not found. Check its compilation.
warnings.warn('rindmod not found. Check its compilation.')
C:\Python36_32\lib\site-packages\wafo\spectrum\core.py:42: UserWarning: Compile the cov2mod.pyd again!
warnings.warn('Compile the cov2mod.pyd again!')
fig import only supported on Windows

@chenmingzhang
Copy link
Author

i am running this under a linux machine and your solution may not work for me.

@acoat
Copy link

acoat commented Apr 23, 2018

Hi had the same error and I solved it by using setuptools<39.0.0 setuptools_scm<2.0.0 and pbr<4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants