bugSimulavr: an AVR simulator - Bugs: bug #39704, _pysimulavr.so doesn't exist

 
 

bug #39704: _pysimulavr.so doesn't exist

Submitter:  Valber <psi13art>
Submitted:  Tue 06 Aug 2013 07:49:24 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  tomk
Open/Closed:  Closed Component Version:  * simulavr
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 15 Oct 2014 04:24:26 PM UTC, comment #3: 

Hi Stefan,

I have now, after some tries, decided to build the python module completely with the pythons built in mechanisms, e.g. completely controlled by setup.py (run swig, compile pysimulavr_wrap.cpp, link with simulavr object to a shared lib) Works with linux and windows (mingw32). One benefit more is to move all statements for this from src/Makefile.am to src/python/Makefile.am. Makes it more easy to understand. I'm not able to check it on Mac, but I assume, that this should also work. Build installable python packages is so also possible. (for example to upload it to PyPi)

The python module is now complete self-contained (just the pysimulavr.py and pysimulavr.so) and doesn't need and extra shared lib object (like libsim.so... or such) And the code parts under src/cmd are also included. So it would be possible to create a python script, which works similar like the simulavr binary. (use as gdb target, but be able by modifying the script to make some adaptions, for example connect pins together)

cu, Thomas

Thomas K. <tomk>
Group administrator
Sat 04 Oct 2014 05:15:11 PM UTC, comment #2: 

Please have a look at patch #8370, it should be a good step in the right direction, at least for linux

Stefan BrĂ¼ns <stefanbruens>
Sat 04 Oct 2014 05:02:46 PM UTC, comment #1: 

Hi,

I can confirm, that there is a problem. Ok so far. :-) But the solution isn't so easy. Especially to support not only linux platform.

Set to in progress but be patient ...

cu, Thomas

Thomas K. <tomk>
Group administrator
Tue 06 Aug 2013 07:49:24 AM UTC, original submission:  

Ubuntu 13.04
swig2.0

source: git 2013-08-04
./bootstrap
./configure LDFLAGS="-L/usr/lib/python2.7" --enable-python
make
sudo make install
cd src
sudo python setup.py install

running install
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
/usr/bin/python -E -c pass
TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
creating pysimulavr.egg-info
writing pysimulavr.egg-info/PKG-INFO
writing top-level names to pysimulavr.egg-info/top_level.txt
writing dependency_links to pysimulavr.egg-info/dependency_links.txt
writing manifest file 'pysimulavr.egg-info/SOURCES.txt'
file pysimulavr.py (for module pysimulavr) not found
reading manifest file 'pysimulavr.egg-info/SOURCES.txt'
writing manifest file 'pysimulavr.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-i686/egg
running install_lib
running build_py
file pysimulavr.py (for module pysimulavr) not found
file pysimulavr.py (for module pysimulavr) not found
warning: install_lib: 'build/lib.linux-i686-2.7' does not exist -- no Python modules to install

installing package data to build/bdist.linux-i686/egg
running install_data
creating build
creating build/bdist.linux-i686
creating build/bdist.linux-i686/egg
error: can't copy '_pysimulavr.so': doesn't exist or not a regular file

Valber <psi13art>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tomk (Posted a comment)
  • -email is unavailable- added by psi13art (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-10-26 tomk StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2014-10-04 tomk StatusNone In Progress
        Assigned toNone tomk

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code