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

Exception on hpy.heap() #13

Closed
juan-carvajal opened this issue Oct 23, 2019 · 2 comments
Closed

Exception on hpy.heap() #13

juan-carvajal opened this issue Oct 23, 2019 · 2 comments

Comments

@juan-carvajal
Copy link

juan-carvajal commented Oct 23, 2019

Getting exception output after this:

from guppy import hpy
h=hpy().heap()
print(h)

This is the exception:

Traceback (most recent call last):
  File "C:\Users\juan0\Anaconda3\envs\tensor-cpu\lib\site-packages\guppy\etc\Glue.py", line 216, in getattr2
    x = self.data[name]
KeyError: 'hv'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\juan0\Anaconda3\envs\tensor-cpu\lib\site-packages\guppy\etc\Glue.py", line 281, in getattr3
    x = getattr(Clamp, name)
AttributeError: type object '_GLUECLAMP_' has no attribute 'hv'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\juan0\Documents\GitHub\VMIwithDRL\VMIwithDRL\src\implementation\VMImodel.py", line 2, in <module>
    from agent_model.training_agent import TrainingAgent
  File "C:\Users\juan0\Documents\GitHub\VMIwithDRL\VMIwithDRL\src\agent_model\training_agent.py", line 8, in <module>
    h=hpy().heap()
  File "C:\Users\juan0\Anaconda3\envs\tensor-cpu\lib\site-packages\guppy\heapy\Use.py", line 181, in heap
    h = self.View.heap()
  File "C:\Users\juan0\Anaconda3\envs\tensor-cpu\lib\site-packages\guppy\heapy\View.py", line 353, in heap
    self.root = objs
  File "C:\Users\juan0\Anaconda3\envs\tensor-cpu\lib\site-packages\guppy\etc\Glue.py", line 53, in __setattr__
    return self._share.setattr(self, name, value)
  File "C:\Users\juan0\Anaconda3\envs\tensor-cpu\lib\site-packages\guppy\etc\Glue.py", line 371, in setattr
    im(inter, value)
  File "C:\Users\juan0\Anaconda3\envs\tensor-cpu\lib\site-packages\guppy\heapy\View.py", line 191, in _set_root
    self.hv.root = root
  File "C:\Users\juan0\Anaconda3\envs\tensor-cpu\lib\site-packages\guppy\etc\Glue.py", line 50, in __getattr__
    return self._share.getattr(self, name)
  File "C:\Users\juan0\Anaconda3\envs\tensor-cpu\lib\site-packages\guppy\etc\Glue.py", line 209, in getattr
    d = self.getattr2(inter, dct, owner, name)
  File "C:\Users\juan0\Anaconda3\envs\tensor-cpu\lib\site-packages\guppy\etc\Glue.py", line 227, in getattr2
    x = self.getattr3(inter, name)
  File "C:\Users\juan0\Anaconda3\envs\tensor-cpu\lib\site-packages\guppy\etc\Glue.py", line 321, in getattr3
    x = f()
  File "C:\Users\juan0\Anaconda3\envs\tensor-cpu\lib\site-packages\guppy\heapy\View.py", line 162, in _get_hv
    is_hiding_calling_interpreter=self.is_hiding_calling_interpreter)
  File "C:\Users\juan0\Anaconda3\envs\tensor-cpu\lib\site-packages\guppy\heapy\View.py", line 394, in new_hv
    hv = self.heapyc.HeapView(root, heapdefs)
TypeError: heapdefs must be a capsule object
@zhuyifei1999
Copy link
Owner

Hi

I updated the description to show the blocks more clearly.

What is the Python version? And could you print out the value of heapdefs right before the erroring line hv = self.heapyc.HeapView(root, heapdefs)?

Currently guppy3 loads attribute _NyHeapDefs_ across all Python modules and expect them to be sane.

@zhuyifei1999
Copy link
Owner

zhuyifei1999 commented Nov 10, 2019

For future reference: Installing the set of packages that https://github.com/juan-carvajal/VMIwithDRL imports, I see this is the tensorboard.compat.tensorflow_stub.pywrap_tensorflow module.

Reproducing the failure with latest release of guppy3:

(base) zhuyifei1999@zhuyifei1999-ThinkPad-T480 /tmp/VMIwithDRL/VMIwithDRL/src $ pip install -I guppy3
Collecting guppy3
  Using cached https://files.pythonhosted.org/packages/fc/bf/107811a412cc4bf9428088b926c32e7087f43e054160fdc0abbb1a753226/guppy3-3.0.8-cp37-cp37m-manylinux1_x86_64.whl
Installing collected packages: guppy3
Successfully installed guppy3-3.0.8
(base) zhuyifei1999@zhuyifei1999-ThinkPad-T480 /tmp/VMIwithDRL/VMIwithDRL/src $ PYTHONPATH=. python -i implementation/VMImodel.py 
Traceback (most recent call last):
  File "/tmp/VMIwithDRL/VMIwithDRL/src/optimizer/AllocationOptimizerCplexDocPlex.py", line 90, in allocate
    mdl.solve()
  File "/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/docplex/mp/model.py", line 4152, in solve
    return self.fatal("CPLEX runtime not found: please install CPLEX or solve this model on DOcplexcloud")
  File "/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/docplex/mp/model.py", line 884, in fatal
    self._error_handler.fatal(msg, args)
  File "/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/docplex/mp/error_handler.py", line 210, in fatal
    raise DOcplexException(resolved_message)
docplex.mp.utils.DOcplexException: CPLEX runtime not found: please install CPLEX or solve this model on DOcplexcloud

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "implementation/VMImodel.py", line 97, in <module>
    agent.run(validateRuns=10
  File "/tmp/VMIwithDRL/VMIwithDRL/src/agent_model/training_agent_torch.py", line 90, in run
    state, action, next_state, reward, terminal = self.model.model_logic(current_state, action)
  File "implementation/VMImodel.py", line 63, in model_logic
    rep = opt.allocate()
  File "/tmp/VMIwithDRL/VMIwithDRL/src/optimizer/AllocationOptimizerCplexDocPlex.py", line 112, in allocate
    a[h][r] = 0
UnboundLocalError: local variable 'a' referenced before assignment
>>> __import__('guppy').hpy().heap()
/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py:100: UserWarning: torch.distributed.reduce_op is deprecated, please use torch.distributed.ReduceOp instead
  warnings.warn("torch.distributed.reduce_op is deprecated, please use "
Traceback (most recent call last):
  File "/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/guppy/etc/Glue.py", line 216, in getattr2
    x = self.data[name]
KeyError: 'hv'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/guppy/etc/Glue.py", line 281, in getattr3
    x = getattr(Clamp, name)
AttributeError: type object '_GLUECLAMP_' has no attribute 'hv'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/guppy/heapy/Use.py", line 181, in heap
    h = self.View.heap()
  File "/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/guppy/heapy/View.py", line 353, in heap
    self.root = objs
  File "/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/guppy/etc/Glue.py", line 53, in __setattr__
    return self._share.setattr(self, name, value)
  File "/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/guppy/etc/Glue.py", line 371, in setattr
    im(inter, value)
  File "/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/guppy/heapy/View.py", line 191, in _set_root
    self.hv.root = root
  File "/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/guppy/etc/Glue.py", line 50, in __getattr__
    return self._share.getattr(self, name)
  File "/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/guppy/etc/Glue.py", line 209, in getattr
    d = self.getattr2(inter, dct, owner, name)
  File "/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/guppy/etc/Glue.py", line 227, in getattr2
    x = self.getattr3(inter, name)
  File "/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/guppy/etc/Glue.py", line 321, in getattr3
    x = f()
  File "/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/guppy/heapy/View.py", line 162, in _get_hv
    is_hiding_calling_interpreter=self.is_hiding_calling_interpreter)
  File "/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/guppy/heapy/View.py", line 394, in new_hv
    hv = self.heapyc.HeapView(root, heapdefs)
TypeError: heapdefs must be a capsule object
>>> 

Trying to install latest commit:

(base) zhuyifei1999@zhuyifei1999-ThinkPad-T480 /tmp/VMIwithDRL/VMIwithDRL/src $ pip install -I https://github.com/zhuyifei1999/guppy3/archive/master.zip
Collecting https://github.com/zhuyifei1999/guppy3/archive/master.zip
  Downloading https://github.com/zhuyifei1999/guppy3/archive/master.zip
     / 2.1MB 1.5MB/s
Building wheels for collected packages: guppy3
  Building wheel for guppy3 (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/zhuyifei1999/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-y9490o0o/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-y9490o0o/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-3of2lepl --python-tag cp37
       cwd: /tmp/pip-req-build-y9490o0o/
  Complete output (100 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.7
  creating build/lib.linux-x86_64-3.7/guppy
  copying guppy/__init__.py -> build/lib.linux-x86_64-3.7/guppy
  creating build/lib.linux-x86_64-3.7/guppy/etc
  copying guppy/etc/xterm.py -> build/lib.linux-x86_64-3.7/guppy/etc
  copying guppy/etc/tkcursors.py -> build/lib.linux-x86_64-3.7/guppy/etc
  copying guppy/etc/textView.py -> build/lib.linux-x86_64-3.7/guppy/etc
  copying guppy/etc/etc.py -> build/lib.linux-x86_64-3.7/guppy/etc
  copying guppy/etc/cmd.py -> build/lib.linux-x86_64-3.7/guppy/etc
  copying guppy/etc/__init__.py -> build/lib.linux-x86_64-3.7/guppy/etc
  copying guppy/etc/RE_Rect.py -> build/lib.linux-x86_64-3.7/guppy/etc
  copying guppy/etc/RE.py -> build/lib.linux-x86_64-3.7/guppy/etc
  copying guppy/etc/KnuthBendix.py -> build/lib.linux-x86_64-3.7/guppy/etc
  copying guppy/etc/KanExtension.py -> build/lib.linux-x86_64-3.7/guppy/etc
  copying guppy/etc/IterPermute.py -> build/lib.linux-x86_64-3.7/guppy/etc
  copying guppy/etc/Help.py -> build/lib.linux-x86_64-3.7/guppy/etc
  copying guppy/etc/Glue.py -> build/lib.linux-x86_64-3.7/guppy/etc
  copying guppy/etc/FSA.py -> build/lib.linux-x86_64-3.7/guppy/etc
  copying guppy/etc/Descriptor.py -> build/lib.linux-x86_64-3.7/guppy/etc
  copying guppy/etc/Code.py -> build/lib.linux-x86_64-3.7/guppy/etc
  copying guppy/etc/Cat.py -> build/lib.linux-x86_64-3.7/guppy/etc
  creating build/lib.linux-x86_64-3.7/guppy/gsl
  copying guppy/gsl/__init__.py -> build/lib.linux-x86_64-3.7/guppy/gsl
  copying guppy/gsl/XHTML.py -> build/lib.linux-x86_64-3.7/guppy/gsl
  copying guppy/gsl/Text.py -> build/lib.linux-x86_64-3.7/guppy/gsl
  copying guppy/gsl/Tester.py -> build/lib.linux-x86_64-3.7/guppy/gsl
  copying guppy/gsl/SpecNodes.py -> build/lib.linux-x86_64-3.7/guppy/gsl
  copying guppy/gsl/Main.py -> build/lib.linux-x86_64-3.7/guppy/gsl
  copying guppy/gsl/Latex.py -> build/lib.linux-x86_64-3.7/guppy/gsl
  copying guppy/gsl/Html.py -> build/lib.linux-x86_64-3.7/guppy/gsl
  copying guppy/gsl/Help.py -> build/lib.linux-x86_64-3.7/guppy/gsl
  copying guppy/gsl/Gsml.py -> build/lib.linux-x86_64-3.7/guppy/gsl
  copying guppy/gsl/Filer.py -> build/lib.linux-x86_64-3.7/guppy/gsl
  copying guppy/gsl/FileIO.py -> build/lib.linux-x86_64-3.7/guppy/gsl
  copying guppy/gsl/Exceptions.py -> build/lib.linux-x86_64-3.7/guppy/gsl
  copying guppy/gsl/DottedTree.py -> build/lib.linux-x86_64-3.7/guppy/gsl
  copying guppy/gsl/Document.py -> build/lib.linux-x86_64-3.7/guppy/gsl
  creating build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/pbhelp.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/__init__.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/View.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/Use.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/UniSet.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/Target.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/Spec.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/RemoteConstants.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/Remote.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/RefPat.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/RM.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/Prof.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/Path.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/Part.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/OutputHandling.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/Monitor.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/ImpSet.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/Doc.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/Console.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  copying guppy/heapy/Classifiers.py -> build/lib.linux-x86_64-3.7/guppy/heapy
  creating build/lib.linux-x86_64-3.7/guppy/heapy/test
  copying guppy/heapy/test/test_sf.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
  copying guppy/heapy/test/test_menuleak.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
  copying guppy/heapy/test/test_heapyc.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
  copying guppy/heapy/test/test_gsl.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
  copying guppy/heapy/test/test_dependencies.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
  copying guppy/heapy/test/test_all.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
  copying guppy/heapy/test/test_View.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
  copying guppy/heapy/test/test_UniSet.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
  copying guppy/heapy/test/test_Spec.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
  copying guppy/heapy/test/test_RetaGraph.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
  copying guppy/heapy/test/test_RefPat.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
  copying guppy/heapy/test/test_Path.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
  copying guppy/heapy/test/test_Part.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
  copying guppy/heapy/test/test_OutputHandling.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
  copying guppy/heapy/test/test_ER.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
  copying guppy/heapy/test/test_Classifiers.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
  copying guppy/heapy/test/support.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
  copying guppy/heapy/test/__init__.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
  creating build/lib.linux-x86_64-3.7/guppy/sets
  copying guppy/sets/test.py -> build/lib.linux-x86_64-3.7/guppy/sets
  copying guppy/sets/__init__.py -> build/lib.linux-x86_64-3.7/guppy/sets
  running build_ext
  building 'guppy.sets.setsc' extension
  creating build/temp.linux-x86_64-3.7
  creating build/temp.linux-x86_64-3.7/src
  creating build/temp.linux-x86_64-3.7/src/sets
  gcc -pthread -B /home/zhuyifei1999/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/zhuyifei1999/anaconda3/include/python3.7m -c src/sets/sets.c -o build/temp.linux-x86_64-3.7/src/sets/sets.o
  gcc -pthread -B /home/zhuyifei1999/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/zhuyifei1999/anaconda3/include/python3.7m -c src/sets/bitset.c -o build/temp.linux-x86_64-3.7/src/sets/bitset.o
  gcc -pthread -B /home/zhuyifei1999/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/zhuyifei1999/anaconda3/include/python3.7m -c src/sets/nodeset.c -o build/temp.linux-x86_64-3.7/src/sets/nodeset.o
  gcc -pthread -shared -B /home/zhuyifei1999/anaconda3/compiler_compat -L/home/zhuyifei1999/anaconda3/lib -Wl,-rpath=/home/zhuyifei1999/anaconda3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/sets/sets.o build/temp.linux-x86_64-3.7/src/sets/bitset.o build/temp.linux-x86_64-3.7/src/sets/nodeset.o -o build/lib.linux-x86_64-3.7/guppy/sets/setsc.cpython-37m-x86_64-linux-gnu.so
  /home/zhuyifei1999/anaconda3/compiler_compat/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib64/crti.o: unable to initialize decompress status for section .debug_aranges
  /home/zhuyifei1999/anaconda3/compiler_compat/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib64/crti.o: unable to initialize decompress status for section .debug_aranges
  /home/zhuyifei1999/anaconda3/compiler_compat/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib64/crti.o: unable to initialize decompress status for section .debug_aranges
  /home/zhuyifei1999/anaconda3/compiler_compat/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib64/crti.o: unable to initialize decompress status for section .debug_aranges
  /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib64/crti.o: file not recognized: file format not recognized
  collect2: error: ld returned 1 exit status
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for guppy3
  Running setup.py clean for guppy3
Failed to build guppy3
Installing collected packages: guppy3
  Running setup.py install for guppy3 ... error
    ERROR: Command errored out with exit status 1:
     command: /home/zhuyifei1999/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-y9490o0o/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-y9490o0o/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-p0uvcigh/install-record.txt --single-version-externally-managed --compile
         cwd: /tmp/pip-req-build-y9490o0o/
    Complete output (100 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/guppy
    copying guppy/__init__.py -> build/lib.linux-x86_64-3.7/guppy
    creating build/lib.linux-x86_64-3.7/guppy/etc
    copying guppy/etc/xterm.py -> build/lib.linux-x86_64-3.7/guppy/etc
    copying guppy/etc/tkcursors.py -> build/lib.linux-x86_64-3.7/guppy/etc
    copying guppy/etc/textView.py -> build/lib.linux-x86_64-3.7/guppy/etc
    copying guppy/etc/etc.py -> build/lib.linux-x86_64-3.7/guppy/etc
    copying guppy/etc/cmd.py -> build/lib.linux-x86_64-3.7/guppy/etc
    copying guppy/etc/__init__.py -> build/lib.linux-x86_64-3.7/guppy/etc
    copying guppy/etc/RE_Rect.py -> build/lib.linux-x86_64-3.7/guppy/etc
    copying guppy/etc/RE.py -> build/lib.linux-x86_64-3.7/guppy/etc
    copying guppy/etc/KnuthBendix.py -> build/lib.linux-x86_64-3.7/guppy/etc
    copying guppy/etc/KanExtension.py -> build/lib.linux-x86_64-3.7/guppy/etc
    copying guppy/etc/IterPermute.py -> build/lib.linux-x86_64-3.7/guppy/etc
    copying guppy/etc/Help.py -> build/lib.linux-x86_64-3.7/guppy/etc
    copying guppy/etc/Glue.py -> build/lib.linux-x86_64-3.7/guppy/etc
    copying guppy/etc/FSA.py -> build/lib.linux-x86_64-3.7/guppy/etc
    copying guppy/etc/Descriptor.py -> build/lib.linux-x86_64-3.7/guppy/etc
    copying guppy/etc/Code.py -> build/lib.linux-x86_64-3.7/guppy/etc
    copying guppy/etc/Cat.py -> build/lib.linux-x86_64-3.7/guppy/etc
    creating build/lib.linux-x86_64-3.7/guppy/gsl
    copying guppy/gsl/__init__.py -> build/lib.linux-x86_64-3.7/guppy/gsl
    copying guppy/gsl/XHTML.py -> build/lib.linux-x86_64-3.7/guppy/gsl
    copying guppy/gsl/Text.py -> build/lib.linux-x86_64-3.7/guppy/gsl
    copying guppy/gsl/Tester.py -> build/lib.linux-x86_64-3.7/guppy/gsl
    copying guppy/gsl/SpecNodes.py -> build/lib.linux-x86_64-3.7/guppy/gsl
    copying guppy/gsl/Main.py -> build/lib.linux-x86_64-3.7/guppy/gsl
    copying guppy/gsl/Latex.py -> build/lib.linux-x86_64-3.7/guppy/gsl
    copying guppy/gsl/Html.py -> build/lib.linux-x86_64-3.7/guppy/gsl
    copying guppy/gsl/Help.py -> build/lib.linux-x86_64-3.7/guppy/gsl
    copying guppy/gsl/Gsml.py -> build/lib.linux-x86_64-3.7/guppy/gsl
    copying guppy/gsl/Filer.py -> build/lib.linux-x86_64-3.7/guppy/gsl
    copying guppy/gsl/FileIO.py -> build/lib.linux-x86_64-3.7/guppy/gsl
    copying guppy/gsl/Exceptions.py -> build/lib.linux-x86_64-3.7/guppy/gsl
    copying guppy/gsl/DottedTree.py -> build/lib.linux-x86_64-3.7/guppy/gsl
    copying guppy/gsl/Document.py -> build/lib.linux-x86_64-3.7/guppy/gsl
    creating build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/pbhelp.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/__init__.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/View.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/Use.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/UniSet.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/Target.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/Spec.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/RemoteConstants.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/Remote.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/RefPat.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/RM.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/Prof.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/Path.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/Part.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/OutputHandling.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/Monitor.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/ImpSet.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/Doc.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/Console.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    copying guppy/heapy/Classifiers.py -> build/lib.linux-x86_64-3.7/guppy/heapy
    creating build/lib.linux-x86_64-3.7/guppy/heapy/test
    copying guppy/heapy/test/test_sf.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
    copying guppy/heapy/test/test_menuleak.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
    copying guppy/heapy/test/test_heapyc.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
    copying guppy/heapy/test/test_gsl.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
    copying guppy/heapy/test/test_dependencies.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
    copying guppy/heapy/test/test_all.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
    copying guppy/heapy/test/test_View.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
    copying guppy/heapy/test/test_UniSet.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
    copying guppy/heapy/test/test_Spec.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
    copying guppy/heapy/test/test_RetaGraph.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
    copying guppy/heapy/test/test_RefPat.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
    copying guppy/heapy/test/test_Path.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
    copying guppy/heapy/test/test_Part.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
    copying guppy/heapy/test/test_OutputHandling.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
    copying guppy/heapy/test/test_ER.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
    copying guppy/heapy/test/test_Classifiers.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
    copying guppy/heapy/test/support.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
    copying guppy/heapy/test/__init__.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
    creating build/lib.linux-x86_64-3.7/guppy/sets
    copying guppy/sets/test.py -> build/lib.linux-x86_64-3.7/guppy/sets
    copying guppy/sets/__init__.py -> build/lib.linux-x86_64-3.7/guppy/sets
    running build_ext
    building 'guppy.sets.setsc' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/src
    creating build/temp.linux-x86_64-3.7/src/sets
    gcc -pthread -B /home/zhuyifei1999/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/zhuyifei1999/anaconda3/include/python3.7m -c src/sets/sets.c -o build/temp.linux-x86_64-3.7/src/sets/sets.o
    gcc -pthread -B /home/zhuyifei1999/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/zhuyifei1999/anaconda3/include/python3.7m -c src/sets/bitset.c -o build/temp.linux-x86_64-3.7/src/sets/bitset.o
    gcc -pthread -B /home/zhuyifei1999/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/zhuyifei1999/anaconda3/include/python3.7m -c src/sets/nodeset.c -o build/temp.linux-x86_64-3.7/src/sets/nodeset.o
    gcc -pthread -shared -B /home/zhuyifei1999/anaconda3/compiler_compat -L/home/zhuyifei1999/anaconda3/lib -Wl,-rpath=/home/zhuyifei1999/anaconda3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/sets/sets.o build/temp.linux-x86_64-3.7/src/sets/bitset.o build/temp.linux-x86_64-3.7/src/sets/nodeset.o -o build/lib.linux-x86_64-3.7/guppy/sets/setsc.cpython-37m-x86_64-linux-gnu.so
    /home/zhuyifei1999/anaconda3/compiler_compat/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib64/crti.o: unable to initialize decompress status for section .debug_aranges
    /home/zhuyifei1999/anaconda3/compiler_compat/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib64/crti.o: unable to initialize decompress status for section .debug_aranges
    /home/zhuyifei1999/anaconda3/compiler_compat/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib64/crti.o: unable to initialize decompress status for section .debug_aranges
    /home/zhuyifei1999/anaconda3/compiler_compat/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib64/crti.o: unable to initialize decompress status for section .debug_aranges
    /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib64/crti.o: file not recognized: file format not recognized
    collect2: error: ld returned 1 exit status
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/zhuyifei1999/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-y9490o0o/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-y9490o0o/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-p0uvcigh/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

Ok compile failure; let's build a wheel with a non-anaconda Python:

(venv) zhuyifei1999@zhuyifei1999-ThinkPad-T480 ~/guppy3 $ python setup.py bdist_wheel
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/guppy
copying guppy/__init__.py -> build/lib.linux-x86_64-3.7/guppy
creating build/lib.linux-x86_64-3.7/guppy/etc
copying guppy/etc/Cat.py -> build/lib.linux-x86_64-3.7/guppy/etc
copying guppy/etc/Code.py -> build/lib.linux-x86_64-3.7/guppy/etc
copying guppy/etc/Descriptor.py -> build/lib.linux-x86_64-3.7/guppy/etc
copying guppy/etc/FSA.py -> build/lib.linux-x86_64-3.7/guppy/etc
copying guppy/etc/Glue.py -> build/lib.linux-x86_64-3.7/guppy/etc
copying guppy/etc/Help.py -> build/lib.linux-x86_64-3.7/guppy/etc
copying guppy/etc/IterPermute.py -> build/lib.linux-x86_64-3.7/guppy/etc
copying guppy/etc/KanExtension.py -> build/lib.linux-x86_64-3.7/guppy/etc
copying guppy/etc/KnuthBendix.py -> build/lib.linux-x86_64-3.7/guppy/etc
copying guppy/etc/RE.py -> build/lib.linux-x86_64-3.7/guppy/etc
copying guppy/etc/RE_Rect.py -> build/lib.linux-x86_64-3.7/guppy/etc
copying guppy/etc/__init__.py -> build/lib.linux-x86_64-3.7/guppy/etc
copying guppy/etc/cmd.py -> build/lib.linux-x86_64-3.7/guppy/etc
copying guppy/etc/etc.py -> build/lib.linux-x86_64-3.7/guppy/etc
copying guppy/etc/textView.py -> build/lib.linux-x86_64-3.7/guppy/etc
copying guppy/etc/tkcursors.py -> build/lib.linux-x86_64-3.7/guppy/etc
copying guppy/etc/xterm.py -> build/lib.linux-x86_64-3.7/guppy/etc
creating build/lib.linux-x86_64-3.7/guppy/gsl
copying guppy/gsl/Exceptions.py -> build/lib.linux-x86_64-3.7/guppy/gsl
copying guppy/gsl/__init__.py -> build/lib.linux-x86_64-3.7/guppy/gsl
copying guppy/gsl/Document.py -> build/lib.linux-x86_64-3.7/guppy/gsl
copying guppy/gsl/DottedTree.py -> build/lib.linux-x86_64-3.7/guppy/gsl
copying guppy/gsl/FileIO.py -> build/lib.linux-x86_64-3.7/guppy/gsl
copying guppy/gsl/Filer.py -> build/lib.linux-x86_64-3.7/guppy/gsl
copying guppy/gsl/Gsml.py -> build/lib.linux-x86_64-3.7/guppy/gsl
copying guppy/gsl/Help.py -> build/lib.linux-x86_64-3.7/guppy/gsl
copying guppy/gsl/Html.py -> build/lib.linux-x86_64-3.7/guppy/gsl
copying guppy/gsl/Latex.py -> build/lib.linux-x86_64-3.7/guppy/gsl
copying guppy/gsl/Main.py -> build/lib.linux-x86_64-3.7/guppy/gsl
copying guppy/gsl/SpecNodes.py -> build/lib.linux-x86_64-3.7/guppy/gsl
copying guppy/gsl/Tester.py -> build/lib.linux-x86_64-3.7/guppy/gsl
copying guppy/gsl/Text.py -> build/lib.linux-x86_64-3.7/guppy/gsl
copying guppy/gsl/XHTML.py -> build/lib.linux-x86_64-3.7/guppy/gsl
creating build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/Target.py -> build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/Classifiers.py -> build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/Console.py -> build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/Doc.py -> build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/ImpSet.py -> build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/Monitor.py -> build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/OutputHandling.py -> build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/Part.py -> build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/Path.py -> build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/Prof.py -> build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/RM.py -> build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/RefPat.py -> build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/Remote.py -> build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/RemoteConstants.py -> build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/Spec.py -> build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/UniSet.py -> build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/Use.py -> build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/View.py -> build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/__init__.py -> build/lib.linux-x86_64-3.7/guppy/heapy
copying guppy/heapy/pbhelp.py -> build/lib.linux-x86_64-3.7/guppy/heapy
creating build/lib.linux-x86_64-3.7/guppy/heapy/test
copying guppy/heapy/test/__init__.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
copying guppy/heapy/test/test_RetaGraph.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
copying guppy/heapy/test/test_Spec.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
copying guppy/heapy/test/support.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
copying guppy/heapy/test/test_Classifiers.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
copying guppy/heapy/test/test_ER.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
copying guppy/heapy/test/test_OutputHandling.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
copying guppy/heapy/test/test_Part.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
copying guppy/heapy/test/test_Path.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
copying guppy/heapy/test/test_RefPat.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
copying guppy/heapy/test/test_UniSet.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
copying guppy/heapy/test/test_View.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
copying guppy/heapy/test/test_all.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
copying guppy/heapy/test/test_dependencies.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
copying guppy/heapy/test/test_gsl.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
copying guppy/heapy/test/test_heapyc.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
copying guppy/heapy/test/test_menuleak.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
copying guppy/heapy/test/test_sf.py -> build/lib.linux-x86_64-3.7/guppy/heapy/test
creating build/lib.linux-x86_64-3.7/guppy/sets
copying guppy/sets/__init__.py -> build/lib.linux-x86_64-3.7/guppy/sets
copying guppy/sets/test.py -> build/lib.linux-x86_64-3.7/guppy/sets
running build_ext
building 'guppy.sets.setsc' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/src
creating build/temp.linux-x86_64-3.7/src/sets
x86_64-pc-linux-gnu-gcc -pthread -fPIC -I/home/zhuyifei1999/guppy3/venv/include -I/usr/include/python3.7m -c src/sets/sets.c -o build/temp.linux-x86_64-3.7/src/sets/sets.o
x86_64-pc-linux-gnu-gcc -pthread -fPIC -I/home/zhuyifei1999/guppy3/venv/include -I/usr/include/python3.7m -c src/sets/bitset.c -o build/temp.linux-x86_64-3.7/src/sets/bitset.o
x86_64-pc-linux-gnu-gcc -pthread -fPIC -I/home/zhuyifei1999/guppy3/venv/include -I/usr/include/python3.7m -c src/sets/nodeset.c -o build/temp.linux-x86_64-3.7/src/sets/nodeset.o
x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=7 -fuse-linker-plugin -falign-functions=32 -pipe -ggdb -fno-finite-math-only -L. build/temp.linux-x86_64-3.7/src/sets/sets.o build/temp.linux-x86_64-3.7/src/sets/bitset.o build/temp.linux-x86_64-3.7/src/sets/nodeset.o -L/usr/lib64 -lpython3.7m -o build/lib.linux-x86_64-3.7/guppy/sets/setsc.cpython-37m-x86_64-linux-gnu.so
building 'guppy.heapy.heapyc' extension
creating build/temp.linux-x86_64-3.7/src/heapy
x86_64-pc-linux-gnu-gcc -pthread -fPIC -I/home/zhuyifei1999/guppy3/venv/include -I/usr/include/python3.7m -c src/heapy/heapyc.c -o build/temp.linux-x86_64-3.7/src/heapy/heapyc.o
x86_64-pc-linux-gnu-gcc -pthread -fPIC -I/home/zhuyifei1999/guppy3/venv/include -I/usr/include/python3.7m -c src/heapy/stdtypes.c -o build/temp.linux-x86_64-3.7/src/heapy/stdtypes.o
x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=7 -fuse-linker-plugin -falign-functions=32 -pipe -ggdb -fno-finite-math-only -L. build/temp.linux-x86_64-3.7/src/heapy/heapyc.o build/temp.linux-x86_64-3.7/src/heapy/stdtypes.o -L/usr/lib64 -lpython3.7m -o build/lib.linux-x86_64-3.7/guppy/heapy/heapyc.cpython-37m-x86_64-linux-gnu.so
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/guppy
copying build/lib.linux-x86_64-3.7/guppy/__init__.py -> build/bdist.linux-x86_64/wheel/guppy
creating build/bdist.linux-x86_64/wheel/guppy/etc
copying build/lib.linux-x86_64-3.7/guppy/etc/Cat.py -> build/bdist.linux-x86_64/wheel/guppy/etc
copying build/lib.linux-x86_64-3.7/guppy/etc/Code.py -> build/bdist.linux-x86_64/wheel/guppy/etc
copying build/lib.linux-x86_64-3.7/guppy/etc/Descriptor.py -> build/bdist.linux-x86_64/wheel/guppy/etc
copying build/lib.linux-x86_64-3.7/guppy/etc/FSA.py -> build/bdist.linux-x86_64/wheel/guppy/etc
copying build/lib.linux-x86_64-3.7/guppy/etc/Glue.py -> build/bdist.linux-x86_64/wheel/guppy/etc
copying build/lib.linux-x86_64-3.7/guppy/etc/Help.py -> build/bdist.linux-x86_64/wheel/guppy/etc
copying build/lib.linux-x86_64-3.7/guppy/etc/IterPermute.py -> build/bdist.linux-x86_64/wheel/guppy/etc
copying build/lib.linux-x86_64-3.7/guppy/etc/KanExtension.py -> build/bdist.linux-x86_64/wheel/guppy/etc
copying build/lib.linux-x86_64-3.7/guppy/etc/KnuthBendix.py -> build/bdist.linux-x86_64/wheel/guppy/etc
copying build/lib.linux-x86_64-3.7/guppy/etc/RE.py -> build/bdist.linux-x86_64/wheel/guppy/etc
copying build/lib.linux-x86_64-3.7/guppy/etc/RE_Rect.py -> build/bdist.linux-x86_64/wheel/guppy/etc
copying build/lib.linux-x86_64-3.7/guppy/etc/__init__.py -> build/bdist.linux-x86_64/wheel/guppy/etc
copying build/lib.linux-x86_64-3.7/guppy/etc/cmd.py -> build/bdist.linux-x86_64/wheel/guppy/etc
copying build/lib.linux-x86_64-3.7/guppy/etc/etc.py -> build/bdist.linux-x86_64/wheel/guppy/etc
copying build/lib.linux-x86_64-3.7/guppy/etc/textView.py -> build/bdist.linux-x86_64/wheel/guppy/etc
copying build/lib.linux-x86_64-3.7/guppy/etc/tkcursors.py -> build/bdist.linux-x86_64/wheel/guppy/etc
copying build/lib.linux-x86_64-3.7/guppy/etc/xterm.py -> build/bdist.linux-x86_64/wheel/guppy/etc
creating build/bdist.linux-x86_64/wheel/guppy/gsl
copying build/lib.linux-x86_64-3.7/guppy/gsl/Exceptions.py -> build/bdist.linux-x86_64/wheel/guppy/gsl
copying build/lib.linux-x86_64-3.7/guppy/gsl/__init__.py -> build/bdist.linux-x86_64/wheel/guppy/gsl
copying build/lib.linux-x86_64-3.7/guppy/gsl/Document.py -> build/bdist.linux-x86_64/wheel/guppy/gsl
copying build/lib.linux-x86_64-3.7/guppy/gsl/DottedTree.py -> build/bdist.linux-x86_64/wheel/guppy/gsl
copying build/lib.linux-x86_64-3.7/guppy/gsl/FileIO.py -> build/bdist.linux-x86_64/wheel/guppy/gsl
copying build/lib.linux-x86_64-3.7/guppy/gsl/Filer.py -> build/bdist.linux-x86_64/wheel/guppy/gsl
copying build/lib.linux-x86_64-3.7/guppy/gsl/Gsml.py -> build/bdist.linux-x86_64/wheel/guppy/gsl
copying build/lib.linux-x86_64-3.7/guppy/gsl/Help.py -> build/bdist.linux-x86_64/wheel/guppy/gsl
copying build/lib.linux-x86_64-3.7/guppy/gsl/Html.py -> build/bdist.linux-x86_64/wheel/guppy/gsl
copying build/lib.linux-x86_64-3.7/guppy/gsl/Latex.py -> build/bdist.linux-x86_64/wheel/guppy/gsl
copying build/lib.linux-x86_64-3.7/guppy/gsl/Main.py -> build/bdist.linux-x86_64/wheel/guppy/gsl
copying build/lib.linux-x86_64-3.7/guppy/gsl/SpecNodes.py -> build/bdist.linux-x86_64/wheel/guppy/gsl
copying build/lib.linux-x86_64-3.7/guppy/gsl/Tester.py -> build/bdist.linux-x86_64/wheel/guppy/gsl
copying build/lib.linux-x86_64-3.7/guppy/gsl/Text.py -> build/bdist.linux-x86_64/wheel/guppy/gsl
copying build/lib.linux-x86_64-3.7/guppy/gsl/XHTML.py -> build/bdist.linux-x86_64/wheel/guppy/gsl
creating build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/Target.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/Classifiers.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/Console.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/Doc.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/ImpSet.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/Monitor.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/OutputHandling.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/Part.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/Path.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/Prof.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/RM.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/RefPat.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/Remote.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/RemoteConstants.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/Spec.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/UniSet.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/Use.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/View.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/__init__.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
copying build/lib.linux-x86_64-3.7/guppy/heapy/pbhelp.py -> build/bdist.linux-x86_64/wheel/guppy/heapy
creating build/bdist.linux-x86_64/wheel/guppy/heapy/test
copying build/lib.linux-x86_64-3.7/guppy/heapy/test/__init__.py -> build/bdist.linux-x86_64/wheel/guppy/heapy/test
copying build/lib.linux-x86_64-3.7/guppy/heapy/test/test_RetaGraph.py -> build/bdist.linux-x86_64/wheel/guppy/heapy/test
copying build/lib.linux-x86_64-3.7/guppy/heapy/test/test_Spec.py -> build/bdist.linux-x86_64/wheel/guppy/heapy/test
copying build/lib.linux-x86_64-3.7/guppy/heapy/test/support.py -> build/bdist.linux-x86_64/wheel/guppy/heapy/test
copying build/lib.linux-x86_64-3.7/guppy/heapy/test/test_Classifiers.py -> build/bdist.linux-x86_64/wheel/guppy/heapy/test
copying build/lib.linux-x86_64-3.7/guppy/heapy/test/test_ER.py -> build/bdist.linux-x86_64/wheel/guppy/heapy/test
copying build/lib.linux-x86_64-3.7/guppy/heapy/test/test_OutputHandling.py -> build/bdist.linux-x86_64/wheel/guppy/heapy/test
copying build/lib.linux-x86_64-3.7/guppy/heapy/test/test_Part.py -> build/bdist.linux-x86_64/wheel/guppy/heapy/test
copying build/lib.linux-x86_64-3.7/guppy/heapy/test/test_Path.py -> build/bdist.linux-x86_64/wheel/guppy/heapy/test
copying build/lib.linux-x86_64-3.7/guppy/heapy/test/test_RefPat.py -> build/bdist.linux-x86_64/wheel/guppy/heapy/test
copying build/lib.linux-x86_64-3.7/guppy/heapy/test/test_UniSet.py -> build/bdist.linux-x86_64/wheel/guppy/heapy/test
copying build/lib.linux-x86_64-3.7/guppy/heapy/test/test_View.py -> build/bdist.linux-x86_64/wheel/guppy/heapy/test
copying build/lib.linux-x86_64-3.7/guppy/heapy/test/test_all.py -> build/bdist.linux-x86_64/wheel/guppy/heapy/test
copying build/lib.linux-x86_64-3.7/guppy/heapy/test/test_dependencies.py -> build/bdist.linux-x86_64/wheel/guppy/heapy/test
copying build/lib.linux-x86_64-3.7/guppy/heapy/test/test_gsl.py -> build/bdist.linux-x86_64/wheel/guppy/heapy/test
copying build/lib.linux-x86_64-3.7/guppy/heapy/test/test_heapyc.py -> build/bdist.linux-x86_64/wheel/guppy/heapy/test
copying build/lib.linux-x86_64-3.7/guppy/heapy/test/test_menuleak.py -> build/bdist.linux-x86_64/wheel/guppy/heapy/test
copying build/lib.linux-x86_64-3.7/guppy/heapy/test/test_sf.py -> build/bdist.linux-x86_64/wheel/guppy/heapy/test
copying build/lib.linux-x86_64-3.7/guppy/heapy/heapyc.cpython-37m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/guppy/heapy
creating build/bdist.linux-x86_64/wheel/guppy/sets
copying build/lib.linux-x86_64-3.7/guppy/sets/__init__.py -> build/bdist.linux-x86_64/wheel/guppy/sets
copying build/lib.linux-x86_64-3.7/guppy/sets/test.py -> build/bdist.linux-x86_64/wheel/guppy/sets
copying build/lib.linux-x86_64-3.7/guppy/sets/setsc.cpython-37m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/guppy/sets
running install_egg_info
running egg_info
writing guppy3.egg-info/PKG-INFO
writing dependency_links to guppy3.egg-info/dependency_links.txt
writing top-level names to guppy3.egg-info/top_level.txt
reading manifest file 'guppy3.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'guppy3.egg-info/SOURCES.txt'
Copying guppy3.egg-info to build/bdist.linux-x86_64/wheel/guppy3-3.0.8-py3.7.egg-info
running install_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
creating build/bdist.linux-x86_64/wheel/guppy3-3.0.8.dist-info/WHEEL
creating 'dist/guppy3-3.0.8-cp37-cp37m-linux_x86_64.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'guppy/__init__.py'
adding 'guppy/etc/Cat.py'
adding 'guppy/etc/Code.py'
adding 'guppy/etc/Descriptor.py'
adding 'guppy/etc/FSA.py'
adding 'guppy/etc/Glue.py'
adding 'guppy/etc/Help.py'
adding 'guppy/etc/IterPermute.py'
adding 'guppy/etc/KanExtension.py'
adding 'guppy/etc/KnuthBendix.py'
adding 'guppy/etc/RE.py'
adding 'guppy/etc/RE_Rect.py'
adding 'guppy/etc/__init__.py'
adding 'guppy/etc/cmd.py'
adding 'guppy/etc/etc.py'
adding 'guppy/etc/textView.py'
adding 'guppy/etc/tkcursors.py'
adding 'guppy/etc/xterm.py'
adding 'guppy/gsl/Document.py'
adding 'guppy/gsl/DottedTree.py'
adding 'guppy/gsl/Exceptions.py'
adding 'guppy/gsl/FileIO.py'
adding 'guppy/gsl/Filer.py'
adding 'guppy/gsl/Gsml.py'
adding 'guppy/gsl/Help.py'
adding 'guppy/gsl/Html.py'
adding 'guppy/gsl/Latex.py'
adding 'guppy/gsl/Main.py'
adding 'guppy/gsl/SpecNodes.py'
adding 'guppy/gsl/Tester.py'
adding 'guppy/gsl/Text.py'
adding 'guppy/gsl/XHTML.py'
adding 'guppy/gsl/__init__.py'
adding 'guppy/heapy/Classifiers.py'
adding 'guppy/heapy/Console.py'
adding 'guppy/heapy/Doc.py'
adding 'guppy/heapy/ImpSet.py'
adding 'guppy/heapy/Monitor.py'
adding 'guppy/heapy/OutputHandling.py'
adding 'guppy/heapy/Part.py'
adding 'guppy/heapy/Path.py'
adding 'guppy/heapy/Prof.py'
adding 'guppy/heapy/RM.py'
adding 'guppy/heapy/RefPat.py'
adding 'guppy/heapy/Remote.py'
adding 'guppy/heapy/RemoteConstants.py'
adding 'guppy/heapy/Spec.py'
adding 'guppy/heapy/Target.py'
adding 'guppy/heapy/UniSet.py'
adding 'guppy/heapy/Use.py'
adding 'guppy/heapy/View.py'
adding 'guppy/heapy/__init__.py'
adding 'guppy/heapy/heapyc.cpython-37m-x86_64-linux-gnu.so'
adding 'guppy/heapy/pbhelp.py'
adding 'guppy/heapy/test/__init__.py'
adding 'guppy/heapy/test/support.py'
adding 'guppy/heapy/test/test_Classifiers.py'
adding 'guppy/heapy/test/test_ER.py'
adding 'guppy/heapy/test/test_OutputHandling.py'
adding 'guppy/heapy/test/test_Part.py'
adding 'guppy/heapy/test/test_Path.py'
adding 'guppy/heapy/test/test_RefPat.py'
adding 'guppy/heapy/test/test_RetaGraph.py'
adding 'guppy/heapy/test/test_Spec.py'
adding 'guppy/heapy/test/test_UniSet.py'
adding 'guppy/heapy/test/test_View.py'
adding 'guppy/heapy/test/test_all.py'
adding 'guppy/heapy/test/test_dependencies.py'
adding 'guppy/heapy/test/test_gsl.py'
adding 'guppy/heapy/test/test_heapyc.py'
adding 'guppy/heapy/test/test_menuleak.py'
adding 'guppy/heapy/test/test_sf.py'
adding 'guppy/sets/__init__.py'
adding 'guppy/sets/setsc.cpython-37m-x86_64-linux-gnu.so'
adding 'guppy/sets/test.py'
adding 'guppy3-3.0.8.dist-info/LICENSE'
adding 'guppy3-3.0.8.dist-info/METADATA'
adding 'guppy3-3.0.8.dist-info/WHEEL'
adding 'guppy3-3.0.8.dist-info/top_level.txt'
adding 'guppy3-3.0.8.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
(base) zhuyifei1999@zhuyifei1999-ThinkPad-T480 /tmp/VMIwithDRL/VMIwithDRL/src $ pip install -I ~/guppy3/dist/guppy3-3.0.8-cp37-cp37m-linux_x86_64.whl
Processing /home/zhuyifei1999/guppy3/dist/guppy3-3.0.8-cp37-cp37m-linux_x86_64.whl
Installing collected packages: guppy3
Successfully installed guppy3-3.0.8
(base) zhuyifei1999@zhuyifei1999-ThinkPad-T480 /tmp/VMIwithDRL/VMIwithDRL/src $ PYTHONPATH=. python -i implementation/VMImodel.py 
Traceback (most recent call last):
  File "/tmp/VMIwithDRL/VMIwithDRL/src/optimizer/AllocationOptimizerCplexDocPlex.py", line 90, in allocate
    mdl.solve()
  File "/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/docplex/mp/model.py", line 4152, in solve
    return self.fatal("CPLEX runtime not found: please install CPLEX or solve this model on DOcplexcloud")
  File "/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/docplex/mp/model.py", line 884, in fatal
    self._error_handler.fatal(msg, args)
  File "/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/docplex/mp/error_handler.py", line 210, in fatal
    raise DOcplexException(resolved_message)
docplex.mp.utils.DOcplexException: CPLEX runtime not found: please install CPLEX or solve this model on DOcplexcloud

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "implementation/VMImodel.py", line 97, in <module>
    agent.run(validateRuns=10
  File "/tmp/VMIwithDRL/VMIwithDRL/src/agent_model/training_agent_torch.py", line 90, in run
    state, action, next_state, reward, terminal = self.model.model_logic(current_state, action)
  File "implementation/VMImodel.py", line 63, in model_logic
    rep = opt.allocate()
  File "/tmp/VMIwithDRL/VMIwithDRL/src/optimizer/AllocationOptimizerCplexDocPlex.py", line 112, in allocate
    a[h][r] = 0
UnboundLocalError: local variable 'a' referenced before assignment
>>> __import__('guppy').hpy().heap()
/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py:100: UserWarning: torch.distributed.reduce_op is deprecated, please use torch.distributed.ReduceOp instead
  warnings.warn("torch.distributed.reduce_op is deprecated, please use "
/home/zhuyifei1999/anaconda3/lib/python3.7/site-packages/guppy/heapy/View.py:163: UserWarning: Ignoring non-capsule object tensorboard.compat.tensorflow_stub.pywrap_tensorflow._NyHeapDefs_
  '{}._NyHeapDefs_'.format(n))
Partition of a set of 1070406 objects. Total size = 138181181 bytes.
 Index  Count   %     Size   % Cumulative  % Kind (class / dict of class)
     0 271909  25 38402781  28  38402781  28 str
     1 292748  27 25839176  19  64241957  46 tuple
     2 131079  12 10406396   8  74648353  54 bytes
     3  65907   6  9536720   7  84185073  61 types.CodeType
     4  62179   6  8953776   6  93138849  67 function
     5   6843   1  6875576   5 100014425  72 type
     6   3708   0  5820696   4 105835121  77 dict of module
     7  11314   1  4607376   3 110442497  80 dict (no owner)
     8   6843   1  3677728   3 114120225  83 dict of type
     9   7583   1  1883648   1 116003873  84 dict of function
<2169 more rows. Type e.g. '_.more' to view.>
>>> import tensorboard.compat.tensorflow_stub.pywrap_tensorflow
>>> tensorboard.compat.tensorflow_stub.pywrap_tensorflow._NyHeapDefs_
0
>>> tensorboard.compat.tensorflow_stub.pywrap_tensorflow.foobar
0
>>> 

Relevant code: https://github.com/tensorflow/tensorboard/blob/688aabd67aa6a6f098709643b0a5e672a7d0b01f/tensorboard/compat/tensorflow_stub/pywrap_tensorflow.py#L34

A warning is generated for a faulty module getattr implementation, without aborting heapy. I think I can declare this fixed.

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

2 participants